Triggers and the start step

What starts a flow: the start step, keyword, new-contact, channel and any-message triggers, and which one wins.

On this page

A flow starts in one of three ways:

  • a trigger of the flow matches a message;
  • a channel uses the flow as its flow (in Channels), for every message no trigger took while no run is under way;
  • another flow continues in it with a Go to flow step.

Triggers and the channel's flow only start live flows: publish first. A paused flow starts nothing.

The start step

The start step is where a run begins when nothing says otherwise: for the channel's flow, a jump into the flow, and test mode. On the canvas it carries a Start badge.

To change it, open a step's panel and press Start the flow here in Start and triggers.

Adding a trigger

In the panel of the step the trigger should start at, open Start and triggers and choose from Add a trigger…. A flow can have several triggers, each starting at a different step: a keyword can jump straight into the booking part, while any other message gets the menu.

The flow's start step and its trigger
TriggerStarts the flow when
KeywordsThe message matches one of your keywords.
A new contactSomeone writes for the first time.
Messages on a channelA message arrives on one of the channels you pick.
Any messageAny message arrives.

Webhook and Schedule are listed but don't start flows yet; the builder says so.

Keywords

Type each keyword and press Enter. Under Match:

  • the whole message: the message is the keyword and nothing else ("menu").
  • anywhere in the message: the keyword appears as whole words anywhere ("I'd like to see the menu, please"). "menu" doesn't match "menus".
  • a regular expression: each keyword is a regular expression, such as ^(hi|hello|hey)\b. Lookarounds and backreferences aren't supported.

Matching ignores case and accents ("Cardápio" matches "cardapio") unless you tick Case-sensitive. Regular expressions ignore case, but not accents.

A new contact

Fires on the first message of someone Ñomongeta hasn't seen before on WhatsApp or e-mail. Website visitors are anonymous, so on the website chat it fires on every new widget conversation.

Messages on a channel

Pick one or more of the workspace's channels. Use it to keep a flow to, say, your WhatsApp number while the website gets something else.

Which trigger wins

When a message could start several flows, one trigger wins, in this order:

  1. Keywords matching the whole message, then anywhere in the message, then regular expressions;
  2. A new contact;
  3. Messages on a channel;
  4. Any message.

On a tie, the flow picked as that channel's flow wins, then the oldest flow.

Triggers apply to every channel of the workspace, the website chat included. See Flows and agents for the full order of who answers a message.

Still stuck?

Ask us. We read every message.

Privacy