Browse the docs

Platform

Automations

An automation sends messages and does follow-up work by itself: it starts on a trigger, then runs its steps one after another in that chat. Find them under Messaging > Automations. Seeing automations needs the View automations permission, building them needs Build automations, and starting or stopping one in a chat needs Start automations.

Build an automation

  1. Press New automation.
  2. Under What should start it?, pick a trigger. Or press Skip: only start it by hand or from your system.
  3. Give it a Name.
  4. Add steps on the canvas, and join each one to the step it leads to.
  5. Press Save to keep it as a draft, or Save and switch on to start using it.

On the canvas, select a step to change its fields. Add a step with Add step, or with the + beside a dot that leads nowhere. Drag from the dot on a step's right to another step to say where it leads. A dot joined to nothing ends the automation there. To remove a line, select it and press Delete. Whatever Start is joined to runs first. Full screen gives the canvas the whole window.

Choose what starts it

The Start when… panel lists everything that starts the automation. Press Add a trigger to add more (up to 10). Any one of them starts it.

GroupTriggers
MessagesA new contact writes, A message has a keyword, Any message, A template button is tapped, A contact comes back
Leads and contactsA new lead comes in, A lead is assigned, A lead changes stage, A tag is added, A tag is removed, Added to a group
TimeA follow-up comes due, No reply, On a schedule, On a date from a form
EventsA campaign message is read, Your system sends an event
  • Keywords are separated by commas. Each matches a whole word, in any case: "price" matches "What's the price?" but not "priceless".
  • Triggers that can start for someone who has not written in 24 hours (such as a new lead or a tag) need the first message the automation sends to be a template.
  • On a schedule and On a date from a form use the time zone set in your business hours.
  • Your system sends an event is for developers. See Send an automation event.
  • A team member can also start any automation that is switched on from a chat. See Chat options.

Add steps

Steps come in five groups in the Add step menu.

  • Send: Send a message, Send a template, Send a file, Reply with AI.
  • Ask: Ask with buttons, Ask with a list, Ask with a form. Each answer gets its own dot on the canvas, plus No answer in time and Something else.
  • Wait and branch: Wait for a reply, Wait, If… (branch) (with If it holds and If not).
  • Lead: Assign the lead, Set the lead stage, Set a follow-up, Add or remove tags, Add a note, Update name or email.
  • Connect: Call an API, which looks something up in your own system (with If it works and If it fails).

Text can hold {{name}} and {{phone}}, filled in for each contact.

WhatsApp only delivers free text, buttons, lists and forms within 24 hours of the contact's last message (see The 24-hour window). On those steps, press Add a template for outside the window so the step still reaches people after that. Without one, the automation stops at that step.

Reply with AI only works once an admin has switched on AI replies in Settings. Call an API and Reply with AI depend on your plan.

Set limits and conditions

Two folding sections sit under the triggers.

Only if holds conditions, such as a lead stage, a tag, a group, who it is assigned to, or whether you are open. Whatever starts the automation, it starts only when these hold.

Limits controls how often it starts:

  • Only once per contact, ever.
  • Not again for the same contact for a number of days.
  • Priority: higher starts first when several automations could start at once.
  • Start at most a number of times in one chat in 24 hours. It is 3 unless you change it (up to 1,000), and stopped runs count. Leave it empty for no limit. This keeps two automations from setting each other off for ever.

When the daily limit holds a start back, nothing is sent. The chat still shows in the runs list as Skipped, with "Skipped: daily limit reached" and the time it was First skipped. If it is held back again within 24 hours, the same entry gets another line in its log. Skipped runs never count as starts.

Switch it on

Save and switch on checks the automation first. If something needs fixing, such as a step that may be sent late with no template, it is listed above the editor and the automation stays off. How many automations can be on at once depends on your plan.

Pause switches it off. Pausing, deleting, or saving a change to its steps while it is on stops every chat it is part way through. New chats start with the new steps.

Follow runs and their logs

A run is one chat's journey through an automation. Each automation's page lists Chats it has run in, and the automations list shows Recent activity across all of them. Each row shows the contact, a status and where the run stands.

StatusMeans
RunningWorking through its steps now
WaitingWaiting for a reply, or for a set time
FinishedRan every step
StoppedEnded early, with the reason shown
FailedCould not go on, with the reason shown
SkippedHeld back by the daily start limit

Press What it did to see the run's log, step by step, with times. Press Stop to end a run that is still going. Select the contact's name to open the chat.

What stops a running automation

  • A person replies in the chat. The moment a team member sends a message there, the run stops ("A team member took over the chat."). Messages sent by automations, campaigns and your own systems through the api do not stop it.
  • The contact writes "stop". A message that is exactly stop, unsubscribe or opt out ends the run. A later message can start an automation again.
  • Someone stops it with Stop in the runs list, or Stop it in the chat's Automations window.
  • The automation is paused, changed or deleted.
  • You are closed. With business hours switched on, a contact who writes while you are closed starts no automation and moves no run on. See Set business hours.

Only one automation runs in a chat at a time. While one is going, nothing else starts there.

For developers: Automations in the API