İçeriğe geç

Bot flows

Triggers, steps, conditions and publishing a flow.

A bot flow is a series of steps that runs on its own when something happens: it answers when a customer writes, asks questions, saves the answers, or sends an update when an order comes in. When the bot can’t solve something, it hands the chat to your team. You build and manage flows on the Bot flows screen.

The flow list

The top of the screen shows today’s summary: Runs today, Resolved by the bot, Handed to an agent and Average flow time. For each flow the list shows its status (Live, Draft, Paused), what starts it, today’s runs, and its completion and handoff rates over the last 7 days. The tabs above take you to Variables, Conversions and Promo codes.

Every workspace comes with two built-in flows. The welcome flow runs in new conversations that don’t match any other flow (the list says “Messages that match no other flow”). The fallback flow shows in the list as “When the bot doesn’t understand the reply”. You can edit and pause these two, but you can’t delete them.

Create a new flow

  1. On Bot flows, select Create flow.
  2. Choose Blank flow. You can also choose Start from a ready flow to begin with a common scenario (Ready-made flows), or Import from a JSON file to load an exported flow.
  3. The flow is created as “New flow” and opens in the editor. Click the name at the top to give it a clear name.
  4. Select the Start step on the canvas and set What starts the flow in the settings on the right.
  5. Drag steps from the palette on the left onto the canvas, or click one to add it after the selected step. Connect steps through their outputs.
  6. Fill in each step’s settings. A step with missing fields shows “N fields missing”.
  7. When you’re ready, select Publish as v1 at the top right. The flow goes live.

Finding your way in the editor

  • Step palette (left): steps are grouped. Use Search steps or apps to find one by name.
  • Flow canvas (middle): zoom, Fit to screen, or line steps up with Tidy up. To remove a connection, hover over it and select Delete connection.
  • Settings (right): the fields of the selected step. With nothing selected, the Flow summary lists steps with missing fields and steps not connected to the start.
  • Undo (⌘Z) and Redo (⇧⌘Z) step through your recent changes.

What starts a flow

The What starts the flow window lists sources on the left and that source’s events on the right:

SourceEventWhen it starts
WhatsAppEventWhen the incoming message matchesWhen it startsWhen the first message of a new conversation matches your conditions. For each condition you pick a comparison (equals, contains, starts with, ends with, is empty…) and a Value, and you link several conditions with and / or.
WhatsAppEventEvery new conversationWhen it startsThis is the welcome flow’s start. In any other flow it doesn’t start on its own; it runs only when another flow calls it (the list says “Started only from another flow or a broadcast”).
InstagramEventInstagram commentWhen it startsWhen someone comments on your Instagram post.
SchedulerEventOn a scheduleWhen it startsEvery few minutes or hours, every day, on certain weekdays, or once a month. Times follow the workspace time zone.
WebhookEventWhen a request arrives (webhook)When it startsWhen your form, payment system or a service like Zapier sends a POST request to the flow’s Webhook address. Anyone with the address can start the flow, so keep it private and use Replace if needed.
AppsEventShopify, WooCommerce, Google Sheets, Gmail and other apps that have triggersWhen it startsWhen the event you pick happens: a new, paid or cancelled order, an order status change, a new row in a sheet, a new email… You need a connection; see Integrations.

Step types

GroupSteps
WhatsApp: sendStepsSend message, Button message (up to 3 buttons), List message (up to 10 rows), Send template, Send image, Send video, Send audio, Send document, Send sticker
WhatsApp: wait for replyStepsAsk for text, Ask for phone number, Ask for email, Ask for date, Ask for number, Ask for location, Ask for image, Ask for audio, Ask for video, Wait for any reply
InstagramStepsQuick replies, Card carousel, Instagram sticker, Reply to comment
AIStepsAsk ChatGPT, Describe image, Search knowledge base, AI agent
FlowStepsCondition, Wait, Wait for event, Go to another flow, Run flow and return, Hand over to agent, Track goal, Retry, Generate promo code, Validate promo code, Run code, Loop, Router, Data store, Map data, Approval links, Wait for approval, Webhook response
AppsStepsActions from the apps you can connect: add a row to a sheet, send an email, add a calendar event, send an HTTP request and more. Search by app or action name in the palette’s Apps section.

Question steps check the answer: on an invalid reply they ask again up to Times to ask again, and they write the answer to the variable in Save the reply. Other steps write their result to a variable through Save result, and later steps can use it. See Flow variables.

Branches and outputs

  • In button and list messages, each button or row is its own output. If they should all lead to the same place, turn on Continue from one output.
  • In question steps, if no valid answer arrives the flow continues from If no valid answer.
  • A Condition step compares a variable with a value and has If, Else if and If none match outputs.
  • A Router keeps several named branches and runs the First matching branch or Every matching branch. Afterwards the flow carries on from After the branches.
  • Wait pauses for up to 10 seconds. To wait longer, or to wait for the customer to write, use Wait for event (seconds, minutes, hours or days).
  • Hand over to agent passes the chat to your team: you set the Message to the customer, Conversation tags and, if you like, routing to a specific agent. See Agents and conversation routing.

Saving, testing and publishing

  • Changes are saved to the draft automatically; the top bar says “Draft saved at …”. If a step has missing fields, the draft isn’t saved and the top bar tells you so.
  • Test opens the test console. It runs steps that call outside services (code, Google Sheets find rows, Apify, Shopify or Instagram triggers) one at a time, and you can pick their output as a variable in later steps. To try message steps, publish the flow and message it from your own number.
  • The publish button shows the version number (for example Publish as v2). The live version doesn’t change until you publish again; when the draft has changes, you’ll see “Unpublished changes”.
  • The Runs tab lists every run with its status (Completed, Failed, Waiting). Select a run to highlight the path it took on the canvas.

Managing flows from the list

Each row’s action menu has Open in the editor, Publish, Pause, Resume, Duplicate, Export as JSON and Delete flow. A paused flow doesn’t start new chats. You can load an exported file into another workspace with Import (up to 5 MB); the flow is added as a draft, and you re-pick connections and media in the editor.

Common issues

Frequently asked

Conditional flows are checked only on the first message of a new conversation. If the person still has a conversation that isn’t closed (even one marked resolved), a new message doesn’t start a flow. Also make sure the flow is live and not paused. For when conversations close, see Closing conversations automatically.
Only one: the most recently published flow is checked first. Write conditions that tell your flows apart.
The flow starts from a schedule, a webhook or an app event. Make the first message step Send template and pick an approved template. Once the customer replies, later messages can be free-form.
On WhatsApp, free-form messages can only go out within 24 hours of the customer’s last message. Once that window closes, you need a template. See Sending messages and the 24-hour window.

Didn’t find what you need?

Write to us; we’ll look into it and update these guides if needed.

Send an email