Skip to content

Workflows ​

A workflow is an automation you draw on a canvas: something happens → Flows does a few steps. For example: an order ships → send the "Out for delivery" template → wait a day → if it wasn't delivered, ask the customer when they're home.

Open Workflows in the menu to see them all. Click one to open it in the builder.

Steps ​

A workflow is made of steps joined by arrows. Each step has exits (like True and False on an If step), and each exit leads to the next step. An exit with no arrow ends that path.

GroupStepsWhat they do
TriggersManual, Webhook, Message received, Button tapped, Flow completed, ScheduleHow a run begins. See How a workflow starts.
MessagesText, Media, Buttons, List, Link button, Location, Ask for location, Contact card, Reaction, Template, Mark as readSend WhatsApp messages.
FlowSend another FlowSend WhatsApp form screens and wait until the person finishes them.
WaitWait, Wait for replyPause for a while, or until the person answers.
LogicIf, Switch, Filter, A/B split, StopChoose a path.
EmailSend email Added in v1.4Email the person from your own domain. See Email.
DataSet values, Code, Call an API, Update contact, Hand off to chat, Run another workflowWork out values, call your APIs, save details on the contact, or pass the person on.

Click a step to open its settings. The first lines always say what it does and when to use it.

Added in v1.3 Every setting has a label and a line of help under it. Text that WhatsApp limits shows a

counter (like 12/20 for a button). Time limits are typed in minutes, hours or days. A few steps have their own editors:

  • Contact card: a form per card (name, phone, email, company). Edit as JSON is there for anything else.
  • List: choices can be split into titled sections, up to 10 choices in all.
  • Media: send from a public link, or by a media ID already uploaded to WhatsApp.
  • Call an API: lists the API's inputs (Add the API's inputs fills them in) and the fields of its saved sample answer, so you can click one to keep it.
  • Update contact: tags are typed as chips, and your contact fields are suggested as detail names.
  • Wait until a date: pick a date and time, or use a date from the run.

The 24-hour rule ​

WhatsApp only lets you send free-form messages (text, media, buttons and so on) within 24 hours of the person's last message to you. Outside that window, only an approved Template can be sent.

  • A workflow that starts from your system or a schedule should begin with a Template step.
  • Any message step can set a template to send instead when the window is closed: under More options, If the 24-hour window is closed, send this template.

What this workflow sends ​

Each workflow is either:

  • Transactional: updates the person expects, like order or delivery news. It reaches everyone it is sent to.
  • Promotional: offers and marketing. It only reaches people who agreed, and stops when someone opts out.

Set it in the builder under What this workflow sends. When in doubt, choose Promotional. Sending marketing to someone who didn't agree breaks WhatsApp's rules and can get your number limited.

Save and publish ​

  • Save keeps your changes as a draft. Nothing changes for people yet.
  • Publish makes the saved version live. Webhook addresses, schedules and incoming messages only start the published version.
  • A run keeps the version it started with, even if you publish again while it is running.

The builder checks the workflow before it can go live. If something is missing, like a template that WhatsApp hasn't approved yet, it lists what to fix.

Runs ​

Every time a workflow starts, Flows records a run. Open Run in the builder to see recent runs. Each run shows the path it took, step by step, with what each step sent or received, and why a step failed.

A run is…Meaning
RunningSteps are being done now.
WaitingPaused at a Delay, a Wait for reply or a form.
CompletedIt reached the end.
FailedA step failed and no failure path was connected, or a Stop step ended it as failed.
CancelledSomeone stopped it, or the person opted out of a promotional workflow.

A person can have only one open run of the same workflow at a time. A new start for them is refused until that run ends.

Next ​

Flows documentation for v1.x (v1.7.2).