Skip to content

Flow steps reference

Every trigger and step the flow builder offers, what each one does, its settings and the exits it leaves by.

This page lists every step in the builder's Add a step list, grouped as the list groups them. For each step you'll find what it does, its settings and its exits (the connections it can leave by).

Exits marked optional may be left unconnected: a run that leaves by an unconnected exit stops there. Every other exit must be connected before you can publish.

Start when (triggers)

A trigger starts a run for one contact. Every trigger sets {{triggered_at}}. Each trigger has a single exit, next.

Several triggers let you tick Only messages to these numbers (or Only conversations on these numbers / Only chats opened with these numbers). None ticked means every WhatsApp number of your organisation; you can tick at most 50. See Flows and WhatsApp numbers.

TriggerStarts whenSettingsSets
Customer sends a messageA customer's message arrives.Start on: Any message, or A message that is exactly a keyword (up to 20 keywords of up to 64 characters), with Start even while a person is handling the chat for a keyword. When. Numbers.{{message_text}}, and WhatsApp Flow answers
Conversation opensA new conversation starts, from a customer's message or a team member's direct message.When. Numbers.—
Customer opened the chatA customer opens a chat with your number for the first time.When. Numbers.—
Tag added to a contactA contact is given the chosen tag.Tag.—
Tag removed from a contactThe chosen tag is taken off a contact.Tag.—
Contact field changesThe chosen custom field gets a new value.Contact field.—
Webhook receivedYour system posts to an inbound webhook.Inbound endpoint, Where the contact's WhatsApp number is, Copy from the delivery.Your mapped variables
On a scheduleOnce, or every week at a set time.How often (Once or Every week), When or At + On (days) + Time zone.—
Started by a personA team member starts it for one contact from the Runs tab.Nothing to set.—
Intent detectedA customer message is read as one of your intents.Intents (leave empty for every intent; up to 50). When. Numbers.{{message_text}}, {{intent}}
Conversation attributedA new conversation is known to come from an ad, a tracked link or a campaign.Sources: A Click-to-WhatsApp ad, A Facebook or Instagram post, A tracked link, A reply to one of our campaigns (none ticked = any source). Tracked links (optional). When. Numbers.{{source_kind}}, {{source_id}}
Customer sends a cartA customer's order message arrives from a product list.Only carts worth at least (optional). Numbers.{{cart_id}}, {{amount_micros}}, {{currency}}
Payment receivedThe payment gateway confirms a payment link was paid.Numbers.{{order_id}}, {{payment_link_id}}, {{amount_micros}}, {{currency}}
Payment failedA payment link was declined, mismatched, errored or expired.Failures (none ticked = any). Numbers.As Payment received, plus {{payment_failure}}
Cart abandonedA cart has had no order for the time you set.Consider a cart abandoned after (10 minutes to 24 hours). Numbers.{{cart_id}}, {{amount_micros}}, {{currency}}
Button replyA customer taps a button or list row that no running flow is waiting for, such as a template's quick reply.Start on: Any button or list row, A button with one of these titles or A button with one of these IDs (up to 20). When. Numbers.{{button_title}}, {{button_payload}}, {{message_text}}
Campaign replyA customer replies to one of your campaigns: their first message since it, or one quoting it.Campaigns (leave empty for any; up to 50), Within (1 to 72 hours, 24 by default). When. Numbers.{{message_text}}, {{source_kind}}, {{source_id}}
Started by APIYour system starts it for one contact through the API. One per flow.Nothing to set. The panel shows the endpoint.Your variables, from the call

Good to know:

  • When (on the message, conversation, chat-opened, intent, attribution, button-reply and campaign-reply triggers): Any time, Only while the number is open, or Only while the number is closed or on holiday, by the business hours of the number the customer wrote to. A number with no hours is always open.
  • Keywords match the whole message. "order" does not start the flow on "cancel my order". Case and extra spaces are ignored. Opt-out words can't be used as keywords: opting out always wins.
  • Messages sent by a flow never start a flow. Only your customers' messages do.
  • Customer opened the chat does not open the 24-hour window, so reply with a template. The builder warns you if a free-form step follows this trigger before any template step.
  • Button reply, Campaign reply and Started by API each have their own article: taps, campaign replies and your system.
  • Tag and field triggers can be set off by another flow's tag change, up to five flows deep; past that the chain stops.
  • On a schedule runs have no contact, so they can't message anyone. They can call your systems. To message a list of contacts on a schedule, use a broadcast.
  • Webhook received finds the contact by the WhatsApp number at the path you give (for example customer.wa_id), which must belong to an existing contact. See Inbound webhooks.
  • Intent detected relies on the AI classifier, so it only fires when AI is switched on for your workspace. See Intents.

Message

All message steps go through the same checks as any other message: the contact's consent, the 24-hour window and template approval. While a person owns the conversation, a flow's messages are not sent. Most message steps have a Send from setting; see Flows and WhatsApp numbers.

Send buttons

A message with up to three reply buttons. Each button is its own exit.

  • Header (optional, up to 60 characters), Message (up to 1,024), Footer (optional, up to 60).
  • Reply buttons: up to 3, each with a title of up to 20 characters. Titles must all differ.
  • Options from data (optional): Build buttons from a list builds buttons from a List variable, after the ones you typed, three in all. See Buttons and lists from your data.
  • Wait for a reply for: 1 minute to 24 hours (default 24 hours).
  • Send from.

Exits: one per button you typed; with built buttons, picked from the list for any of them and list was empty (optional); no reply (optional: the wait ran out, or the 24-hour window closed); failed (optional: the send was refused or failed).

A customer can tap a button or type its exact title. Any other reply leaves the run waiting.

Send a list

A menu that opens a list of up to 10 options. Each row is its own exit.

  • Header, Message, Footer as above; Menu button (the label that opens the list, up to 20 characters).
  • List rows: up to 10 rows in total, grouped into up to 10 sections. Row titles up to 24 characters, with an optional Description of up to 72. Section titles up to 24 characters, required when there is more than one section.
  • Options from data (optional): Build rows from a list builds rows from a List variable, in a section of their own after the ones you typed, ten in all. That section needs a Section title when you also typed sections, and then every typed section needs one too.
  • Wait for a reply for, Send from.

Exits: one per row you typed; with built rows, picked from the list and list was empty (optional); no reply; failed.

After a pick of a built button or row, {{pick.item}}, {{pick.item.<field>}}, {{pick.index}} and {{pick.id}} read it, and When a built option is picked, save copies its fields into your variables. See When the customer picks one.

Ask a question

Sends a question, waits for a typed answer, checks it and saves it in a variable.

  • Question (up to 4,096 characters).
  • Expect: Any text, A number, An email address, A phone number or A date.
  • Save the answer in: a variable you declared whose type fits the answer.
  • Ask again: Never to 5 times (default 2). When the answer does not fit, say: optional; otherwise the question is repeated.
  • Also save it on the contact: optional contact field.
  • Wait for a reply for, Send from.

Exits: answered; invalid answer (optional: still wrong after the retries); no reply; failed.

Send a message

Free-form text. Sent only inside the 24-hour window after the customer last wrote.

  • Message: the text, with variables.
  • Each item (optional): Add a line for each item of a list writes a line per item of a List variable after the text, with Each item as, Between items and Show at most (up to 100). The Message is then optional. See One message from a list.
  • Send from.

Exits: sent; refused (optional: outside the window, opted out, a person owns the conversation, and similar); failed (optional).

Send a template

An approved message template, which can be sent outside the 24-hour window.

  • Send from: choose this first, because it decides which templates are offered.
  • Template: an approved template.
  • One value per template variable ({{1}}, {{2}}, ...): Text, A variable, or A fixed number or true/false. Fill them in order.
  • Coupon code: shown only for a template with a copy-code button, and then required. It can be The same code for everyone, A variable or contact field, or Text with variables; up to 15 characters.

Exits: sent; refused; failed.

A variable with no value refuses the step rather than sending a message with a gap. If a template has an image, video or document header, set its default header media on the template (see Template variables and buttons); the step has no media picker.

Decide

Business hours

Asks whether you are open right now. Whose hours: This number's hours (the number the customer wrote to: its own hours, or the organisation default), A schedule, or A department's hours. Set hours under Settings → Business hours; see Business hours in a flow.

Exits: open; closed; holiday (optional; unconnected, a holiday leaves by closed). Leaving by closed or holiday sets {{next_open_at}}; a holiday also sets {{holiday_name}}.

Condition

Branches the run. Click Add branch for each path; branches are tried in order and the first whose rules match is taken. If none match, the run leaves by otherwise.

Each branch has an Exit name (shown on the canvas), Match: All of these rules or Any of these rules, and rules added with Add rule. A rule can test:

SubjectTests
A variableis, is not, is more than, is at least, is less than, is at most, contains the text, starts with the text, has a value, has no value
A contact taghas the tag, does not have the tag
Business hoursA department is open now / is closed now
The time of dayis before / is after a time, in a time zone you choose
The day of the weekis one of / is not one of the days you tick
How an earlier step wentA step went / did not go through, refused or failed

Exits: one per branch, plus otherwise.

Consent is not something a condition can test: a flow can't branch around an opt-out.

A rule's variable can be any variable, a contact field or a system value such as {{contact.phone}} or {{conversation.opened_at}}: see Variables in flows.

Variables

Set variable

Sets up to 10 declared variables without calling anything: copy a value, join values into text, add, subtract, multiply or divide numbers, use a fallback when a value is empty, write out a date in one of eight formats and a time zone, change text to upper or lower case or trim its spaces, count a list's items or a text's characters, or take a list's first item or the item at a position. Click Add assignment, choose the variable to Set, what to set it To, and its inputs. Assignments run in order and are all or nothing. See Work a value out: the Set variable step.

A value kept for the whole chat is saved for every later flow in the chat, and one saved to the contact changes the contact's field. Whether the contact agreed to messages can't be used in this step.

Exits: next; refused (optional): a value an input needs is empty; failed (optional): a result of the wrong type, a division by zero, a date that can't be read or a value too large to keep. Nothing the step set is saved when it leaves by refused or failed.

Wait

Wait

Pauses the run. Choose Wait:

ModeContinues
For a set timeAfter the time you set (1 minute to 30 days).
Until a date and timeAt that moment, or at once if it has passed.
Until the time in a variableAt the time in a Date and time variable, or at once if empty or past.
Until a department's business hoursWhen the department is open (at once if it already is).
Until a person releases the conversationBy released when nobody owns the conversation, or by timed out after the limit you set.

Exits: next, or released and timed out for the last mode.

Tip: Any loop in a flow must include a For a set time wait (or a step that waits for the customer's reply). Without one, publishing is refused, so a loop can't repeat instantly.

People

Assign

Gives the conversation to A department, A queue or A person through your routing rules, and carries on.

Exits: assigned; queued (nobody was free, so it waits in the queue); refused; failed. Once a person owns the conversation, the flow's later messages are not sent, so nobody is talked over.

Hand over to a person

Assigns like Assign, then the flow stays silent while a person owns the conversation.

  • Give the conversation to.
  • Continue the flow when the person releases the conversation: off, the flow ends here; on, the flow pauses until nobody owns the conversation or until Pause for at most (required) passes.

Exits: with the switch on, released and timed out; always If closed, If no agent is free, refused and failed (all optional).

After the handover. The chat goes to the inbox first, whichever way the step leaves. Two optional exits let the flow say something straight after, instead of ending or waiting:

  • If closed: the chat is waiting in a queue, or nobody is free, while the routed department's business hours (or else the number's) are closed or on a holiday. It isn't taken when routing assigned someone: a person has the chat. Sets {{next_open_at}}, and {{holiday_name}} on a holiday. Checked first.
  • If no agent is free: routing found nobody to take the chat, so it waits in its queue.

Not connected, the step behaves as before: the flow ends at the handover or, with Continue the flow when the person releases the conversation on, pauses until the person releases the chat. A message to start the If closed exit with: "Thanks for your message. We’re closed right now: an agent will reply when we open at {{next_open_at}}." The step's settings have a Copy message button for it.

If routing fails (for example the department has no queue), the chat still goes to the inbox, unassigned, where it waits in Unassigned, and the step leaves by failed.

Tag the contact

Add the tag or Remove the tag, and the Tag. Changing a tag can start other flows (up to five deep). In a test, it starts no other flow.

Exits: next; failed (optional).

AI

AI agent

One of your AI agents answers the customer's latest message from your knowledge, or hands the conversation over to a person.

  • AI agent: any of your agents. The step always uses the agent's live version, so publishing the agent changes what this flow says from the next run on. Open the agent and Manage agents take you to the agent pages.

Exits: answered; handed over (optional; unconnected, the run ends); If closed and If no agent is free (optional); refused; failed.

After the handover. When the agent hands the conversation to a person, it goes through your routing exactly as a Hand over to a person step does, and the step has the same two optional exits, with the same rules:

  • If closed: the chat is waiting in a queue, or nobody is free, while the routed department's business hours (or else the number's) are closed or on a holiday. It isn't taken when routing assigned someone. Sets {{next_open_at}}, and {{holiday_name}} on a holiday. Checked first.
  • If no agent is free: routing found nobody to take the chat, so it waits in its queue.

Not connected, the step leaves by handed over as before. The step's settings show whether each is connected.

Who takes the chat is set on the agent, not on the step: Give the conversation to in the agent's Handover settings. If the agent doesn't say, or routing fails, the chat still goes to the inbox, unassigned, and the step leaves by failed, not handed over. The step's settings, Create your first flow and the publish review warn about an agent like this: about its live version, which your flow uses now, and about its draft, which is what publishing the agent would make live.

The flow can't be published until the chosen agent has a published version, and it is refused if AI is switched off for your workspace. See AI agents overview.

Commerce

These steps need the Commerce features (catalogs and orders). See Catalogs and Orders.

Send products

Sends one product, or a list of 2 to 30 products in one section, from a Catalog. Optional Header, Body, Footer, and a Section title (up to 24 characters) for a list. Inside the 24-hour window only.

Exits: sent; refused; failed.

Creates a payment link for the run's order and sends it as a message. Settings: Gateway, Link expires after (10 minutes to 7 days) and Message (use {{link}} where the link goes; blank uses a standard sentence). The run needs an order: a cart the flow accepted, or a run started by a payment or order trigger.

Exits: sent; refused; failed.

Note: A flow with this step can only be published when payment links are switched on for your workspace.

Update the order

Set the order to: Accept the cart (placed), Fulfilled, Cancelled or Refunded. Only these moves are allowed: paid to fulfilled; placed or paid to cancelled; paid to refunded. "Paid" is never set by hand: an order becomes paid only when the gateway confirms it. Accepting the cart turns it into an order and sets {{order_id}}.

Exits: next; refused (a move that isn't allowed); failed.

Call out

Both steps call your own system over https (port 443, a domain name). A call that times out may still have arrived and can be retried, so your system may receive it more than once; every call carries an Idempotency-Key header with the same value each time so your system can ignore repeats. Redirects are never followed.

HTTP request

Calls your system and reads the answer, for example a CRM or order lookup. The values it copies from the answer become variables that later steps can use. For a walk-through from the first call to a list built from the answer, see Call an API from a flow.

  • Method (GET, POST, PUT, PATCH, DELETE) and URL. Variables may go in the path or query, never the host, and each value is encoded for you, so a value can never change the address.

  • Query parameters: a name and a value (text, a variable, or a fixed number or true/false). They're added to the end of the URL in order and encoded for you. A name may repeat, as in tag=a&tag=b.

  • Sign in with: No credential or A stored credential (see Credentials).

  • Headers: stored in plain text, so never put a secret here.

  • Body format and Body fields (not for GET or DELETE): JSON builds a JSON object key by key, a dotted key nesting (customer.phone); Form (x-www-form-urlencoded) sends one name=value pair per field, in order, each name exactly as typed (customer.id is one field). The body format sets Content-Type: a Content-Type header that contradicts it can't be saved, and the step offers Use Form instead. See If your API wants a form.

  • Waiting and trying again:

    • Wait for an answer for at most: 1 to 10 seconds (10 when left blank). A call that takes longer leaves by failed as timed out.
    • If it times out or your system is busy: Don't try again, Try once more or Try twice more. It tries again only after a timeout, a 429 (too many requests) or a 5xx, waiting a moment in between. It's still one step: what comes after runs once, on the last answer.
    • Safe to repeat (not for GET): turn it on only if your system can receive the same request twice without harm, because it ignores a repeat with the same Idempotency-Key or the call changes nothing. A POST, PUT, PATCH or DELETE that tries again without it can't be published, because a request that creates an order or sends an email could do it twice. A GET can always be tried again.
  • Exits by status code (optional, up to 10): Any 2xx, Any 4xx, Any 5xx or One status code such as 404 (a 2xx, 4xx or 5xx: a 3xx is a redirect, which a call never follows), each with an optional name for the canvas. An exact code wins over its class, so 404 goes to its own exit even with an Any 4xx exit. A status no exit matches leaves by Any other status. Adding the first exit replaces success, and a connection from success moves to the Any 2xx exit.

  • Copy from the answer: each row copies one thing into a variable:

    • A field of the body, by a path such as order.status or items[0].sku. items[*].name copies every item's name as a List, and items.length counts the items.
    • The whole body: into a Text variable as text, or into a List or Object variable as the JSON answer itself.
    • The status code, into a Number or Text variable.
    • A response header by name, such as X-Request-Id. Set-Cookie and the sign-in headers can't be copied.

    A variable kept for the whole chat keeps the copied value for every later flow in the chat; one saved to the contact writes it to the contact's field. A field the answer doesn't have leaves the variable empty. A value of the wrong type for its variable fails the step. An answer that isn't JSON can only be copied whole, as text. Without exits by status code, the answer is copied only on a 2xx; with them, on every answer, so a 4xx exit can read your system's error message.

Exits: without exits by status code, success (a 2xx answer); with them, each exit and Any other status. Either way, refused (the address was refused) and failed (a timeout, an answer that can't be read, or, without exits by status code, an error status).

Test this request

At the bottom of the step's settings, Test this request makes one real call to your system with the settings as they are, saved or not.

Note: Owners, Admins and Marketing Managers can test requests. It's a real request, so it can change data in your system.

  1. Under Sample values, fill in a value for each variable the request reads, as a real run would have it. A List or Object takes JSON, such as ["gold", "silver"].
  2. Click Send test request. It isn't tried again, even with retries on, and nothing is kept.
  3. The answer shows its status, how long it took, the exit a run would leave by, the headers and the body. A JSON body is shown as a tree.
  4. Click any field in the tree, or move to it with the arrow keys, to see what you can copy from it: This value, Every item's … (with [*]) for a field inside a list, or How many items for a list. Choose one to add a mapping row with the right path. If the variable doesn't exist yet, it's declared for you with the right type. You can also copy The status code or a header.
  5. What the mapping copies from this answer shows each row's value, or why it would be empty or fail the step. Send again to see rows you've added since.

If a sample value is missing, the test says which one and nothing is called. You can send up to 20 test requests a minute; past that, the test says how long to wait. On a server that can't make calls to outside systems, the test says "Test requests aren't available on this server right now."; runs aren't affected.

Send a webhook

Posts the run's data to your system. URL, Sign in with, Headers, Include the contact's id and WhatsApp number, and Include variables (tick the ones to send).

Exits: delivered (a 2xx answer; its body is ignored); refused; failed.

Finish

End

Finishes the run. Nothing to set up. It has no exits.

Limits worth knowing

  • A run stops after 200 steps and shows Stopped at the step limit.
  • A flow started by another flow (through a tag or field change) can chain at most five deep.

Still need help?

Write to us at [email protected] and tell us what you were trying to do. Already a customer? Sign in to IconEngage — the same articles are under Help in the app.