Skip to the content

Workflow building blocks

Every node, field, transition and setting of the workflow editor, with the rules the editor checks and the limits it holds to.

Where
Assistant menuConfigureWorkflow
Permission
Needs Change assistant setup
Time
12 min read
Markdown
01 / 05Seven kinds of node. Add lists every node type with what it does. Start is already there, once.
  1. Seven kinds of node. Add lists every node type with what it does. Start is already there, once.
  2. A stage's own setup. Instructions, its first move, model, voice, tools, knowledge and procedures.
  3. When to move: AI decides. A label and a plain condition. The AI follows it only when it clearly holds.
  4. Check and Result need no model. A Check reads saved values. A Result follows a tool or a transfer.
  5. Two settings for the whole graph. With nothing selected, the panel shows the workflow's settings and the issues list.

Node types

A workflow is made of nodes joined by transitions. Add opens the palette. For how a workflow runs, see Workflow.

NodeWhat it doesWaits for the customer
StartWhere every conversation begins. There is exactly one, and it cannot be deleted.No
StageYour assistant, set up for one phase.Yes
SayAn exact line, or one the assistant words.Only with Wait for the reply
ToolAlways run a tool, then branch on the result.No
Set variablesStore values for later steps.No
Hand to a personHand the conversation to your team.Yes
Transfer callTransfer a phone call to a number.Yes
EndEnd the conversation.Yes
Every node3 controls
NameText
Shown on the card. An empty name or two nodes with the same name give a warning.
Limit 80 characters
Transitions outList
The transitions that leave this node, in the order they are tried. Move up and Move down change it.
Delete this nodeButton
Removes the node and its transitions. Not on Start.

The message editor

Say, a stage's first line, Hand to a person and End all use the same editor for what the customer hears.

Message4 controls
Exact text / GuidedChoice
Exact text is said as written. Guided is an instruction the assistant words in the customer's language.
Options Exact textGuided
Exact textText
For example Welcome to the Grand Hotel! Use {{var}} for saved values.
Limit 4,000 characters
TranslationsList
The same exact text in other languages. The customer's language is picked when it matches. Translations of a Guided line are not used, and Check warns you.
Limit 20 languages
GuidedText
For example Welcome them warmly and ask how you can help.
Limit 4,000 characters

Stage

Instructions3 controls
Add to the agent's / Replace themChoice
Add this stage's instructions to the assistant's own, or use only this stage's instructions.
Default Add to the agent's
Added for this stageText
With Add to the agent's: what the assistant does in this stage, for example Help the guest choose a room. Confirm the dates before checking availability. Use {{var}} for values saved earlier.
Limit 20,000 characters
This stage's own instructionsText
With Replace them: required.
Limit 50,000 characters
When the stage begins3 controls
AnswerChoice
The assistant answers the customer's message in this stage.
Default Selected
Say a line firstChoice
The First line (required, in the message editor) is the reply when the stage begins.
Switch quietlyChoice
Entered after a reply, the stage says nothing until the customer writes again.
Model1 controls
ModelChoice
The model this stage uses. Any model from the workspace model library that can call tools.
Default The agent's model
Voice and language3 controls
Use a different voice in this stageSwitch
Picks a voice for this stage. Voice changes apply on calls only. If the voice provider cannot change voices during a call, the panel says so.
Default Off
SpeedSlider
How fast this stage's voice speaks.
Limit 0.7× to 1.2×, in steps of 0.05
LanguageChoice
Pins the language this stage speaks.
Default Follow the customerOptions Follow the customerarenfrdeesitptrutrurhifazhja
Tools3 controls
Use the agent's toolsSwitch
Keep the assistant's tools in this stage.
Default On
Also allowList
Adds tools for this stage, including ones set to be available only inside procedures.
Hide in this stageList
Removes tools for this stage. The tools for procedures, the tools for showing cards and the stage's own tool for saving details are never removed.
Knowledge2 controls
Use the agent's knowledgeSwitch
Keep the assistant's documents in this stage.
Also use these documentsList
Adds documents for this stage. They must be attached to the assistant.
Procedures for this stage2 controls
Procedures for this stageList
This stage's own procedures. All procedures stay available everywhere.
Start them when the stage beginsSwitch
Starts them as the conversation enters the stage. At most one structured procedure can start this way. Free-form procedures started by a stage unload when the conversation leaves it.
Default On
Details to collect5 controls
Variable nameText
Lowercase letters, digits and _, starting with a letter. Unique within the stage.
TypeChoice
Values are checked against the type; a value in the wrong format is not saved.
Options TextNameEmailPhoneNumberYes / noDateTime
What it isText
A short description that helps the assistant recognise the detail.
Limit 300 characters
RequiredSwitch
The assistant is told which required details are still missing.
Add a detail / Remove this detailButton
Adds or removes a row.
Limit 8 details per stage

The assistant saves details as the customer gives them, and Check transitions can read them. While details are missing, the stage tells the assistant which ones are still needed.

Say

Say3 controls
What to sayText
Required. Exact text or Guided, in the message editor.
Wait for the replySwitch
The turn ends here; the customer's answer decides what comes next.
ChoicesList
Shown as buttons where the channel can draw them. Only useful with Wait for the reply on.
Limit 2 to 10 choices, 1 to 60 characters, no repeats

Tool

Tool7 controls
ToolChoice
The tool to run, connected or built-in.
Instruction (optional)Text
Helps the assistant fill in the inputs it decides.
InputsList
An input name and where its value comes from. Inputs left out are filled in by the assistant; a required input that cannot be filled makes the tool fail.
Options Fixed valueFrom a variableAssistant decidesLimit 30 inputs
Save the result as (optional)Text
The whole result, for later steps.
Save parts of the resultList
A variable and its Path in the result, like data.id.
Limit Paths up to 6 parts deep
Say before it runsText
A line sent before the tool runs, such as One moment while I check that. Callers hear it while they wait.
Show the resultSwitch
As cards where the channel can draw them.

A Tool needs a Success transition (or Otherwise). Without a Failure transition, a failed tool hands the conversation back to the assistant, and Check warns you. A Tool node runs once each time it is entered, even if a turn is retried.

Set variables

Set variables4 controls
VariableText
The name to store. Not a built-in variable name.
Value modeChoice
Read from the conversation uses one model call per variable.
Options FixedFrom a variableRead from the conversation
ValueText
The fixed value, the variable to copy, or what to read, for example The booking reference the customer gave.
Add a variable / Remove this variableButton
Adds or removes a row.
Limit 1 to 10 per node

Hand to a person

Hand to a person2 controls
Reason for your teamText
Shown to whoever picks the conversation up.
Limit 300 characters
What to tell the customerText
For example I'm connecting you with our team now. Empty: the assistant's handover message from Hand over to a person, or a default line.

Transfer call

Transfer call (Phone calls only)3 controls
Transfer toChoice
A destination set up on the assistant's Voice settings. With none set up, add them there first.
What the caller hearsText
Leave empty and the assistant tells them in their language.
Briefing for the person taking the callText
Read to them on a briefed transfer. Use {{var}} for saved values.

Off a phone call, or when the transfer fails, the Failure transition runs. A transfer that is refused or not completed within 90 seconds counts as failed.

End

End2 controls
OutcomeChoice
Counted in the analytics.
Default SuccessOptions SuccessFailure
GoodbyeText
For example Thanks for calling. Goodbye! Empty: a brief, warm goodbye worded by the assistant.

Transitions

Drag from a node's bottom handle to another node to add a transition, then click it to choose When it applies. Delete this transition removes it.

When4 controls
AI decidesChoice
Checked on each customer message, in one quick call outside the assistant's prompt. Label (required, up to 80 characters, such as Wants to book) and Condition (required, up to 1,000 characters, such as The customer asks to book a room or check availability.). Describe it plainly; the AI follows it only when it clearly holds.
CheckChoice
A plain check on saved values: no model call. Checks rows of a variable, an operator and a Value, matching All of them or Any of them.
Limit 1 to 8 checks
ResultChoice
Whether the tool or the transfer worked: Success or Failure. Only out of a Tool or a Transfer call.
OtherwiseChoice
Taken when nothing else applies. Out of a stage, on the customer's next message.
Limit One per node
OperatorTakes a value
is, is notYes
containsYes (on a list: whether the list holds it)
is more than, is at least, is less than, is at mostYes
is known, is unknownNo

The order they are tried in

  1. Check and Result transitions, in the order of Transitions out.
  2. All AI-decided transitions together, in one call.
  3. Otherwise, last, wherever it sits in the list.

Rules for drawing

  • Nothing leads into Start, and nothing leaves an End.
  • Only a stage can loop back to itself.
  • Two transitions between the same pair of nodes are not allowed, except Success and Failure out of a Tool or Transfer call.
  • New transitions start as Otherwise (the first out of a node), Success then Failure (out of a Tool or Transfer call), or AI decides.
  • At most 6 AI-decided transitions and one Otherwise per node.

Variables

  • Set by a stage's Details to collect, a Tool's Save the result as (optional) and Save parts of the result, and Set variables.
  • Built-in: the same variables as in procedures, such as {{customer_name}}, {{today}} and, while handling an app event, {{event.data.<field>}}. See Procedures.
  • From structured procedures: a structured procedure started by a stage keeps its answers under its key, as {{key.variable}}, plus {{key.outcome}}. So a variable cannot share a procedure's key.
  • Use them as {{name}} in any text. A variable nothing sets gives a warning and stays empty.

Workflow settings

Workflow settings2 controls
Prevent loopsSwitch
In one turn, never go back to a node already passed. A stage may still loop to itself.
Default On
Most transitions in one turnNumber
A longer chain carries on with the next message.
Default 8Limit 1 to 30

What Check looks for

Errors (block publishing)

  • More than 60 nodes or 150 transitions, or a workflow too large to save.
  • A node name over 80 characters.
  • Stage: empty or too long instructions in Replace them; no first line with Say a line first; a model not in the library or unable to call tools; an unsupported language; a tool, document or procedure that does not exist or is not attached; more than one structured procedure set to start; more than 8 details, or details with bad or repeated names; a description over 300 characters.
  • Say: nothing to say; choices that break the rules.
  • Tool: no tool, or one that does not exist; a fixed input without a value (Give the fixed value.) or a variable input without a variable (Pick the variable.); bad result names or paths.
  • Set variables: none, more than 10, a built-in name, or Read from the conversation with nothing to read (Say what to read from the conversation.).
  • Transfer call: no destination, or one not on the Voice settings.
  • Transitions: into Start (Nothing leads back to Start.); out of an End (An End has no way out.); a non-stage looping to itself (Only a stage can loop back to itself.); AI decides without a label or condition; Check with no checks, more than 8, or a missing operator or value; Result not out of a Tool or Transfer call.
  • Per node: more than 6 AI-decided transitions or more than one Otherwise; a Tool or Transfer call without a success path (Add a transition for when it succeeds.); a step that leads nowhere (This step leads nowhere: add a transition.); a loop that never waits for the customer (From here the workflow never stops to wait for the customer.); Start not connected when other nodes exist (Connect Start to the first node.).
  • A variable named like a built-in variable or a procedure's key.

Warnings (shown only)

  • Unnamed nodes, or nodes sharing a name.
  • A node nothing leads to from Start (Nothing leads here from Start.).
  • Duplicate transitions.
  • A tool switched off for the assistant, or a stage with no tools (This stage has no tools.).
  • A Guided message with translations.
  • Human handoff switched off, so Hand to a person will not hand over.
  • A Transfer call, which only happens on phone calls.
  • A Tool with no Failure path (Nothing happens when it fails: the assistant takes over.).
  • A variable nothing sets.
  • Choices on a Say that does not wait for the reply.
  • A Switch quietly stage reached straight from Start, which says nothing to the customer's first message.
  • A Say right after Start while the voice greeting is on: callers hear two greetings.

Limits

Questions people ask

Keep going
Workflow building blocks · HeyServo Docs