Appearance
How a workflow starts
Every workflow begins with a start step. A workflow can have more than one, for example a Webhook for your shop and a Manual start for tests. Each one starts the same steps that follow it.
| Start step | Starts when… | Who the run is for |
|---|---|---|
| Manual | You start it in the app (Run, Send to…), a campaign sends it, or another workflow runs it. | The person you pick, or the person in its data. |
| Webhook | Your system calls the step's address. | The person in the event (customer ID or phone). |
| Message received | Someone sends you a WhatsApp message that matches. | The sender. |
| Button tapped | Someone taps a reply button on a message you sent earlier. | The person who tapped. |
| Flow completed | Someone finishes the WhatsApp form (Flow) of another workflow. | The person who filled it in. |
| Schedule | A set time comes, like every day at 9:00. | No one. Message steps need a Send to. |
Webhook Added in v1.2
The Webhook step is how your other systems start a workflow. Its settings have three parts.
Address to call.
- The Webhook address to give to the other system, with a copy button.
- Copy as cURL, a ready-to-run test command.
The address only starts the published workflow. Send the x-api-key header with a key from Settings › API keys.
Who the event is about. The body fields that name the person:
- Customer ID field,
customerIdby default; - Phone field,
phoneby default.
The person is found by customer ID, or by phone when there is none. A call always starts the workflow, even when the details don't line up. {{ trigger.person.by }} says how the person was found.
Example event (JSON). A sample of what the other system sends:
- Its fields become variables you can pick in later steps.
- Test with this data runs the workflow with it.
- Use the last event received copies the last real call. Added in v1.3 Values are copied as they were; passwords, one-time codes and tokens are left out.
The full contract, with responses and errors, is in Webhooks: start a workflow.
Manual Added in v1.2
The Manual step starts a run from inside Flows. It also has an Example event (JSON). Its fields become {{ trigger.data.… }} variables. Test with this data and Run use it as the run's data.
The person is read from the example's customerId and phone fields when no one is picked. See Testing a workflow.
Because the person may not have written to you lately, start a Manual workflow with a Template step.
Schedule
Runs at set times. Added in v1.3 Pick Repeat (every hour, every day, some days of the week, or once a month) and the time; the step says the schedule back in words, like Every Monday and Friday at 09:00. Custom (cron) takes a cron rule for anything else, for example */15 * * * * for every 15 minutes.
- Time zone (India time by default), picked from a list.
- No person: use it for jobs like reports, or set Send to on message steps.
Message received, Button tapped, Flow completed
These start from what people do on WhatsApp:
- Message received can match any message, or text that equals, contains, starts with or matches a pattern.
- Button tapped can match a button's ID or title.
- Flow completed starts when someone finishes the form screens of another workflow.
When the person is already in the workflow Added in v1.3
By default a person is in a workflow only once at a time: while their run is still open (waiting for a reply, say), a new start for them is skipped. Every start step except Schedule has Start another run anyway under When the person is already in this workflow. Turn it on when each event must get its own run, like one run per order.