Skip to the content

Workflow

Plan a whole conversation in stages. Each stage is your assistant set up for one phase, and the steps between them say exact lines, run tools, hand over or end the conversation exactly as you drew them.

Where
Assistant menuConfigureWorkflow
Permission
Needs Change assistant setup
Time
13 min read
Markdown
01 / 05Plan the conversation. Stages are the assistant set up for one phase. The steps between them run exactly as drawn.
  1. Plan the conversation. Stages are the assistant set up for one phase. The steps between them run exactly as drawn.
  2. Open a stage. Click a node to edit it. A stage has its own instructions, model, voice, tools, knowledge and procedures.
  3. Collect details. The stage saves each detail as the guest gives it. A Check transition moves on once the last one is known.
  4. Check it. Check lists anything that would block publishing, and the workflow's two settings.
  5. Publish. Publish makes the draft live from each conversation's next message.
The story

How a conversation moves through a workflow

Follow Maria's booking at Saffron Bay from her first message to the end node.

1

The conversation enters at Start

Maria writes to Saffron Bay on WhatsApp. Because the workflow is published and switched on, her conversation starts at Start and follows its transition into the Welcome stage.

Welcome is set to Say a line first, so its first line is the reply. A stage is a waiting node: the conversation stays there until Maria writes again.

2

A transition moves her on

Every customer message is first checked against the current node's transitions. Here an AI decides transition, Wants to book, clearly holds, so the conversation moves to the Booking stage.

Booking answers the same message with its own instructions. It saves the details Maria already gave, check_in and nights, and asks for the one still missing.

3

Saved details trigger the next step

After the assistant's reply, transitions that depend on what the turn did are checked again. The stage has saved guests, so the Check transition guests is known holds. A Check reads saved values: no model call.

The conversation moves to the Tool node, which always runs its tool. Its Say before it runs line keeps Maria informed while it works.

4

The result decides the path

A Tool node leaves by Result transitions: Success or Failure. hold_room succeeded, so the conversation reaches the End node, which says its goodbye and closes the conversation with the outcome Success.

Had the tool failed, the Failure transition would have handed Maria to the front desk, with a reason your team sees.

5

You see the path afterwards

Open the conversation and its Workflow tab lists the stages it went through and what each did.

On the Workflow page, Analytics shows for each node how many conversations entered, how long they stayed and where they went next.

01 / 05The conversation enters at Start. On the first message the conversation starts at Start and follows the first transition that applies.
  1. The conversation enters at Start. On the first message the conversation starts at Start and follows the first transition that applies.
  2. A transition moves her on. Before the assistant answers, the Welcome stage's transitions are checked. The new stage answers this same message.
  3. Saved details trigger the next step. Once the last detail is saved, a Check transition holds and the Tool runs in the same turn.
  4. The result decides the path. Success leads to the End node. A failure would have gone to the front desk.
  5. You see the path afterwards. The conversation's Workflow tab lists each stage it went through. Analytics counts every node.

What a workflow is

A workflow is one graph per assistant that plans the conversation. Its stages are the same assistant set up for one phase, each with its own instructions, model, voice and language, tools, knowledge, procedures and details to collect. Between stages, steps run deterministically: say an exact line, run a tool, set variables, hand over to a person, transfer a call or end the conversation. Transitions decide when to move from one node to the next.

Use a workflow when a conversation has clear phases: greet, qualify, book, confirm. Use it when a step must always happen, such as checking availability before confirming, or when different phases need a different model, voice or set of tools.

Workflow or procedures?

Workflow
  • One per assistant: the path of the whole conversation
  • Stages change instructions, model, voice, tools and knowledge
  • Moves by transitions you draw
  • Good for phases: welcome, qualify, book, close
Procedures
  • Many per assistant: one task each
  • Load extra instructions only while the task runs
  • Start when a customer's message matches a trigger
  • Good for tasks that can come up at any point

They work together. A stage can list procedures of its own and start them when the stage begins, and every procedure stays available everywhere. An app event can also start a conversation at a node of the workflow.

Who can do what

ToYou need
See the workflowSee assistant setup
Edit the draft, switch it on or off, run CheckChange assistant setup
Publish and restore a versionPublish changes
TestPermission to use the Playground

Build your first workflow

GoalA published workflow your conversations follow.

  1. 1

    Open ConfigureWorkflow and click Add the first stage

    The canvas starts with a Start node. Every conversation begins there.

  2. 2

    Set the stage up

    Click the stage to open its panel. Name it, add instructions for this phase, and choose what happens When the stage begins.

  3. 3

    Add the next nodes

    Click Add, or the + under a node (Add a step after this one). See Workflow building blocks for every node type.

  4. 4

    Draw the transitions

    Drag from a node's bottom handle to another node. Click the new transition to choose when it applies: AI decides, Check, Result or Otherwise.

  5. 5

    Click Check

    Fix every error. Warnings are worth a look but do not block publishing.

  6. 6

    Click Test

    The Playground opens on the draft. Select a node first to test from that node.

  7. 7

    Click Publish and make sure Workflow on is on

    Conversations start following it on their next message.

Stages

A Stage is your assistant, set up for one phase. While a conversation is in it, the stage can add to the assistant's instructions or replace them, use another model, speak with another voice or language on calls, use a different set of tools and documents, start its own procedures, and collect named details. A stage is where the conversation waits for the customer.

With Regions by customer country on (Settings › General), a stage can also set its own currency and timezone, and hide the business profile. A transition can then send customers to a stage by their WhatsApp number's country: check {{customer_region}}, for example equals gcc. Turn the setting off and both are ignored.

When the stage beginsWhat happens
Answer (the default)The assistant answers the customer's message in this stage.
Say a line firstThe stage's First line is the reply when the stage begins.
Switch quietlyEntered after a reply, the stage says nothing until the customer writes again.

Every field of the stage panel is on Workflow building blocks.

The canvas

Each node is a card with its icon, name and a one-line summary. Nodes have an input handle on top (except Start) and an output handle at the bottom (except End). A node with problems shows how many errors or warnings it has. Transitions that go back up the graph are drawn dashed.

  • Add a node: Add in the top bar, or the + under a node to add one right after it.
  • Connect: drag from the bottom handle to another node. The first transition out of a node is Otherwise; out of a Tool or Transfer call, the first two are Success and Failure; any more are AI decides.
  • Edit: click a node or a transition to open it in the panel. With nothing selected, the panel shows the workflow's settings. Close the panel and Show panel hide and show it.
  • Delete: Delete this node removes the node and its transitions. Start cannot be deleted.
⌘/CtrlZUndo, when you are not typing in a field
⌘/CtrlShiftZRedo
Top bar13 controls
Live v… / Never publishedShown
The live version.
DraftShown
Shown when there are unpublished changes.
Workflow onSwitch
Off: no conversation follows the workflow.
Default On
AddButton
Opens the node palette. Editors only.
Undo / RedoButton
Steps back and forward through your edits.
Tidy upButton
Lays the graph out neatly, then fits it to the screen.
Zoom in / Zoom out / Fit to screenButton
Moves the view.
AnalyticsSwitch
Shows counts on every node.
Default 30 daysOptions 7 days30 days
CheckButton
Opens the panel with the issues list and settings. Reads Errors: n in red when something blocks publishing.
TestButton
Saves, then opens the Playground on the draft, from the selected node if one is selected.
Discard draftButton
Only when a published workflow has unpublished changes. Goes back to the live version; your changes are lost.
VersionsButton
Every published version, with Restore.
PublishButton
Makes the draft live. Disabled while there are errors or no changes.

Transitions in short

WhenApplies whenCosts a model call
AI decidesA plain-language condition clearly holdsYes, one quick call per customer message for all of a node's AI-decided transitions
CheckSaved values pass the checksNo
ResultThe tool or transfer succeeded or failedNo
OtherwiseNothing else appliesNo

Checks and results are tried in your order, then the AI-decided ones together, then Otherwise. Details are on Workflow building blocks.

Check and Test

The editor checks the workflow as you build. Check opens the list: errors block Publish, warnings only point things out. When everything is in order it reads No problems found. Clicking an issue takes you to the node or transition.

Test saves the draft and opens the Playground in preview, where the draft workflow runs instead of the live one. If a node is selected, a fresh test conversation starts at that node, so you can try a late stage without replaying the whole conversation.

Drafts, publishing and versions

Every edit saves to the draft by itself. If someone else changes the workflow while you have it open, a banner asks you to Reload; your last edits were not saved.

GoalYour draft becomes the live workflow.

  1. 1

    Click Publish

    The dialog reads Publish version 3.

  2. 2

    Add a Note (optional)

    Up to 300 characters, shown in the versions list.

  3. 3

    Confirm

    The toast reads Workflow v3 is live. If the workflow is switched off, the dialog reminds you to switch it on.

The first publish: conversations start following the workflow on their next message. A later publish: each conversation moves to the new version if its current node still exists there with the same type; the rest finish on the version they started.

Versions lists every published version with its size (nodes and transitions), when it was published and its note. Restore makes that version the draft; the live version does not change until you publish. Discard draft needs a published version to go back to.

Analytics

Switch on Analytics and choose 7 days or 30 days. Each node gains small counts: entries, average turns, and how many conversations ended there. Click a node to see the full numbers in the panel. Only live conversations count; Playground tests are left out.

Analytics for a node7 controls
EnteredShown
How many conversations reached the node.
Average turnsShown
How many turns conversations spent there.
Average timeShown
How long they stayed.
Ended hereShown
Conversations that ended at this node: an End, a conversation that ended there, or one resolved while it was there. For End nodes, split by success and failure.
Came fromList
Where conversations arrived from, including Start, Playground and Scheduled call.
Went toList
How many left by each transition.
See these conversationsButton
Opens the matching conversations.

How a conversation moves

  1. First message: the conversation enters Start and follows the first transition that applies. Steps then run one after another, in the same turn, until the conversation reaches a node that waits for the customer.
  2. Every customer message: before the assistant answers, the current node's transitions are checked: Result and Check in order, then all AI-decided ones in one quick call, then Otherwise. If one holds, the conversation moves and the new stage answers this same message. If none holds, the current stage answers.
  3. After the assistant's reply: transitions that depend on what the turn did (a tool ran, a detail was saved, a structured procedure ended) are checked again. Otherwise is not taken at this point: out of a stage, it waits for the customer's next message.
  4. Steps: Say lines are sent as written, in the customer's language where you added a translation. A line said before the assistant's reply comes first; one said after comes last. Tool nodes run once per entry, at most 6 in one turn.
  5. Stages: entering a stage switches the instructions, tools, knowledge, model and voice, and starts its procedures if set. A structured procedure takes over until it ends; its answers then become {{key.variable}} values.
  6. End: closes the conversation with its outcome, and the workflow stops for that conversation.

The nodes that wait for the customer are Stage, Hand to a person, Transfer call, End, and Say with Wait for the reply on. A chain of steps stops after Most transitions in one turn moves, or after a time budget, and carries on with the next message.

On phone calls

  • A stage's voice, speed and language take effect before anything in that stage is spoken. Leaving for a stage without its own voice returns to the assistant's voice.
  • Lines are streamed, so callers hear them as they are said. A Tool's Say before it runs line fills the wait.
  • Transfer call works only on phone calls. On any other channel, or when the transfer is refused or not completed within 90 seconds, its Failure transition runs. While transferring, the assistant asks the caller to hold.
  • If the assistant already greets callers, a Say right after Start makes callers hear two greetings. Check warns you about this.
  • AI-decided transitions get less time to decide on calls than in text, to keep the call moving.
  • A scheduled or outbound call can start at a chosen node. See Call customers.

Where else the workflow shows up

  • Conversations: a conversation's Workflow tab (Workflow stages) lists the stages it went through and what each did. See Inside a conversation.
  • Guardrails: a rule can be limited to one node with Only in workflow node.
  • Events: an event type set to A workflow stage starts at a node of the published workflow. See Events.

Questions people ask

Keep going
Workflow · HeyServo Docs