Conversation and logic steps
Reference for the Trigger, Collect, Reply, Validate, IF condition and Decide steps: what each does, its settings and outputs.
Every workflow step is a node. This page covers the steps that run the conversation and choose the route. The rest are in Data, trust, records and ending steps.
Trigger
Teach your AI agent when to start this workflow. Every workflow starts here; it has no input and one output.
| Setting | What to write | Limit |
|---|---|---|
| In which situation should this workflow be triggered? (required to publish) | Plain words, as you would brief a new team member, for example "Use this whenever a customer wants to cancel an order." | 2,000 characters |
| Example customer messages that trigger this workflow | One per line: "I want to cancel my order", "Can I get my money back?" | Up to 10, 500 characters each |
| When should the AI NOT use this? (optional) | For example "Don't use this for questions about the refund policy." | 2,000 characters |
Good triggers have 3 to 5 real examples and a clear "not when". Several workflows can exist; the agent picks by comparing what the customer said with each Trigger, so keep them distinct.
Collect
Details the AI should gather from the customer. One output.
- What to collect: a list of details. For each, a label, a type (Text, Email, Phone, File (photo or document), Number) and required to continue. The AI reuses anything already shared in the chat and asks only for what is missing.
- Notes for the AI: optional coaching on how to ask, such as "Be brief. If they already gave part of this, thank them and only ask for the rest." It is not a scripted message.
Collected details are what you reference later as {{collected.<name>}}.
Reply
Send a message to the visitor, then continue. One output.
- Message to the visitor: shown in chat as written. Use Insert detail chips to include what the customer shared.
Validate
Check collected values before continuing. One output.
| Setting | Meaning |
|---|---|
| Which detail to check | One of the collected details |
| Rule | Required, Email format, Phone format or Custom (notes) |
| Error message | What the visitor is told when the check fails |
| Custom notes | For a custom rule, describe it in words |
IF condition
Send the conversation down a Yes or No path. Two outputs: Yes and No.
| Setting | Options |
|---|---|
| What should we look at? | A collected detail, Whether we found a match in the last look up, or A value from the last look up (then name the value, for example status) |
| Rule | is, is not, contains, is empty, is not empty; for lookups, was found, was not found |
| Compare to | A value I type (for example cancelled) or Another detail |
IF is deterministic: the same inputs always take the same path.
Decide
Let the AI choose the Yes or No path from the conversation. Two outputs.
| Setting | Example |
|---|---|
| Question | "Should we send a cancellation confirmation email now?" |
| Choose Yes when… | "The customer clearly wants to cancel and we already have their email and order id." |
| Choose No when… | "They're only asking about the policy, or we're still missing key details." |
| Notes for the AI | "If unsure, choose No and ask one more clarifying question later." |
Use IF when you can state the rule precisely, and Decide when the answer depends on how the customer worded things. Never use Decide for anything that must be exact, such as a verified status.
Choosing between steps
| Goal | Step |
|---|---|
| Ask for details | Collect |
| Say something fixed | Reply |
| Reject bad input | Validate |
| Branch on a fact | IF condition |
| Branch on judgement | Decide |
Create and design a workflow
Create a workflow and use the designer: the palette, canvas, inspector and toolbar. Add and connect steps, and reuse details from earlier steps.
Data, trust, records and ending steps
Reference for Query Source, Call Action, Verify Identity, Confirm, Create Record, Update Record, Query Records, Complete and Escalate.