Skip to content

Collects as they arrive, acts daily

Recover abandoned carts on WhatsApp

Shoppers who leave checkout without paying get a WhatsApp reminder an hour later, and your team sees each attempt in Slack.

Runs
Collects as they arrive, acts daily
Apps
Slack, WhatsApp Business
AI
Not needed
Access
whatsapp_business_messaging; chat:write

Send this to your assistant

Create a ClickRuntime automation: when a checkout starts, remember it; an hour later, if it hasn't been paid, send the shopper my approved WhatsApp cart reminder and post it in #sales.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Most online shops lose a large share of checkouts at the last step. Some shoppers got distracted, some had a question, some were comparing prices. Reminder emails help, but they're easy to ignore.

A WhatsApp message an hour after the shopper left, from a shop they've just been browsing, is far more likely to be read, and the Slack log lets your team see what recovery attempts are going out.

What you get out of it

  • More completed orders

    A timely reminder brings back shoppers who simply got distracted.

  • Read, not ignored

    WhatsApp messages are opened far more often than marketing email.

  • Paid orders left alone

    Shoppers who complete their order never get a reminder.

  • Visible to the team

    Each reminder is logged in Slack, so the team knows what's been sent.

How it works

What happens, step by step

  1. Your shop tells ClickRuntime when a checkout starts and when it's paid.

  2. Each started checkout is remembered with the time and the shopper's number.

  3. Every hour it looks for checkouts started over an hour ago that still aren't paid.

  4. Those shoppers get your approved WhatsApp reminder, and the attempt is posted to Slack.

  5. Each checkout gets one reminder only.

Before it runs live

  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Connect WhatsApp Business
  • Paste your automation's link into the other app's webhook settings

What you get

RunsCollects as they arrive, acts daily
Recover abandoned carts on WhatsApptoday, 9:00Succeeded
Slack · #sales:shopping_trolley: Cart reminder sent to Riley (£86.00)

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Slack and WhatsApp Business steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
abandoned_cart_recovery_on_whatsapp_with_slack_log.pyexample
import time
from clickruntime import on_event, on_trigger, credentials, http, notify, state

WA = "https://graph.facebook.com/v20.0/your-phone-number-id/messages"

def wa_template(to, name, params):
    body = {"messaging_product": "whatsapp", "to": to, "type": "template", "template": {"name": name, "language": {"code": "en"},
            "components": [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}]}}
    return http.post(WA, headers={"Authorization": f"Bearer {credentials.secret('WHATSAPP_TOKEN')}"}, json=body).json()

@on_event
def handle(event):
    c = event.json or {}
    carts = state.get("carts") or {}
    if c.get("status") == "paid":
        carts.pop(c.get("id"), None)
    elif c.get("phone") and c.get("opt_in"):
        carts[c["id"]] = {"phone": c["phone"], "name": c.get("name", "there"), "total": c.get("total"), "at": time.time()}
    state.set("carts", carts)
    return {"open": len(carts)}

@on_trigger
def run(event):
    carts = state.get("carts") or {}
    due = {k: v for k, v in carts.items() if time.time() - v["at"] > 3600}
    for cid, c in due.items():
        wa_template(c["phone"], "cart_reminder", [c["name"]])
        notify.slack(f":shopping_trolley: Cart reminder sent to {c['name']} ({c['total']})", channel="#sales")
        carts.pop(cid)
    state.set("carts", carts)
    return {"reminded": len(due)}

FAQ

Common questions

Do shoppers need to agree to WhatsApp messages?
Yes. Only message shoppers who opted in at checkout. A checkbox next to the phone field is the usual way.
How long does it wait?
One hour by default. You can choose any delay.
Does it send more than one reminder?
One by default, to avoid annoying shoppers. You can add a second reminder later if you like.
What permissions does it need?
whatsapp_business_messaging; chat:write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Recover abandoned carts on WhatsApp” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.