Build Your Agent

Workflows

Build chatbot workflows so your AI agent follows the same steps every time — refunds, returns, onboarding — using triggers, steps, actions, and conditions.

Open Build › Workflows. A workflow is a set of step-by-step instructions the agent follows when a chat matches a trigger — for example, “Customer wants a refund”. An agent can have up to 30 workflows, each with up to 20 steps.

  1. 1

    Start from a template or blank

    Under Templates (Support, E-commerce, Billing, Sales), click Use template — it's added to My workflows as a draft, with its steps already using your matching actions. Or click Add workflow to start from scratch.

  2. 2

    Name it and set the trigger

    Click the name at the top to rename it. Open the Trigger card and describe when the workflow applies, in plain words. Add an optional Description for your team, and the Time zone for times in your steps (like “9 AM to 5 PM”).

  3. 3

    Add steps

    Click + on a line in the canvas and choose Step (an instruction, or one of your actions) or If / Else. In the step's panel, pick an Action — your actions are grouped by type, with search and + Create an action — or keep Instruction when the agent only says or asks something. Then write What it is for.

  4. 4

    Branch with If / Else and Else if

    An If / Else has a Condition; add steps on its Yes and No sides (a side can stay empty). Click Add Else if to check another condition when the first is No — up to 3 per decision. Quick picks A team member is available / No team member is available let the agent offer live chat or open a ticket.

  5. 5

    Test and publish

    Click Save, then Test to try it in the Playground (only the Playground runs drafts). Then Publish. Unpublish puts it back to draft.

The My workflows list shows each workflow's name, trigger, number of steps, status (Live or Draft), Runs in the last 30 days, Finished (the share of ended runs the agent finished without your team), and when it was updated. Filter by status, search, and use the row menu to Edit workflow, Duplicate workflow, Pause workflow or Publish workflow, and Delete workflow. Click the runs number to see each run.

Variables

Steps and conditions can use variables, filled in for each chat. Click a chip under a step's text or a condition to insert one where the cursor is.

VariableFilled in with
{{contact.name}}, {{contact.email}}, {{contact.phone}}The visitor's details from your Contacts when they're signed in, otherwise what they gave in this chat.
{{contact.your_field}}A contact's own field (for example {{contact.plan}}).
{{agentAvailable}}“true” when someone from your team can take the chat right now, otherwise “false”.

A variable that isn't known reads “(not known)” to the agent, so it asks the visitor instead. Example step: “Greet {{contact.name}} and ask for the order number.”

Actions that need fixing

When an action a step uses has a problem, the step's action picker and its card on the canvas show it:

MarkerMeaningWhat to do
ReconnectThe account the action uses (Shopify, Slack, HubSpot…) is signed out.Click Reconnect to open the action and sign in again.
Finish setupThe action is missing details.Click Finish setup to add what's missing.
OffThe action is switched off.Turn it on in Actions, if it isn't off on purpose.
FailingIts latest call in this workflow's runs failed.Open Runs to see the error.

Publish stays off until the workflow can go live: it needs a trigger, a condition for each If, and for each step with an action, one that exists and is switched on. A Fix this before you publish list shows what's left; click an item to jump to its step. A live workflow can't save changes until they're fixed.

Warning icons: a live workflow that isn't working shows a warning triangle before its name in My workflows, and next to Workflows in the agent's menu. Hover it to see exactly why. Drafts are never marked.

IconMeaningWhy
Red triangleBlocked — the agent won't use this workflow; chats that match get a normal answer instead.An action it uses is switched off or deleted, or it has no trigger, no steps, or an If without a condition.
Amber triangleNeeds attention — it runs, but some steps fail or will fail.An action's account needs reconnecting, an action needs Finish setup, or 3 or more step actions failed in real chats in the last 24 hours.

Failing steps: when step actions fail in real chats, the My workflows list shows a warning with how many failed in the last 24 hours and the latest error. Click See runs to find the chats.

Alerts: you also get an email when an app a live workflow uses (Shopify, HubSpot, Slack…) gets signed out — once, with a Reconnect button — and when 3 or more step actions fail in real chats within 24 hours (at most one a day, for each agent). It goes to the agent's owner. To send it to other people (up to 5) or turn it off, click Alerts above the list. Playground tests don't count.

How workflows run in chats

  • When a visitor's message matches a live workflow's trigger, the agent starts it before answering and follows its steps in order, asking for anything a step needs. The visitor isn't told about workflows.
  • One workflow runs at a time. If a visitor asks for two things at once, the agent starts the second after the first is done.
  • A workflow ends when its steps are done, when the visitor clearly moves on to something else, when another workflow starts, when the chat goes to your team, or after an hour without messages.
  • A workflow whose actions can't all run in a chat is skipped there — for example, a custom form on Email or Slack, or an Escalation limited to other channels.
  • Actions used only by workflows: turn on Only use [action] in workflows in the step's panel — the agent then won't use that action in normal chats.

See workflows in chats

  • In Chat logs and Helpdesk tickets, the conversation shows Started workflow …, the step actions under each reply (worked, or failed and why), and Workflow ended · result. The Workflows tab lists each workflow the chat followed.
  • Filter Chat logs by workflow and result, and export chats with their workflows.
  • From a workflow's Runs, Open chat opens the chat where the workflow started.

Insights and Review with AI

  • Show insights in the editor shows runs, how many the agent finished, how many went to your team, runs where an action failed, and runs per day.
  • Runs can be filtered by channel (website chat, share link, or Playground preview) and period (last 7, 30, or 90 days).
  • Review with AI reads your steps and the last 30 days of runs, spots where chats fail, stall, or go to your team, and suggests one improvement. You confirm before anything changes, and can undo it. You get 20 free reviews a day per agent, then each uses 1 AI credit.

Tip

Keep workflows for processes with a fixed order. For simple facts, a Q&A in the Knowledge Base is enough.

Was this page helpful?

Need help? Contact support — we reply within one to two business days.