Skip to main content

Design a conversation flow

A flow scripts how an agent guides a conversation: a sequence of steps the agent moves through, each with its own instructions, texts, suggestions and tools, instead of a single free-form behaviour. Flows suit guided experiences such as a reception kiosk, a qualification interview or an avatar that leads visitors.

Before you start​

  • You need the Update agents permission to edit a flow (viewing needs View flows).
  • Flows use the agent's tools, so turn on the tool loop. See Agent capabilities.

Steps​

  1. Open the agent and go to its Workflow tab. The editor opens on a canvas with zoom controls and a minimap.
  2. Right-click the canvas and choose Instruction to add a node.
  3. Click the node to configure it:
    • Flow name, and Default flow to make it the flow conversations start with;
    • Intents: what the user says that leads to this step (press ⌘/Ctrl+Enter to add each one);
    • the step's instructions;
    • Texts the agent says, and Suggestions offered to the user, per language;
    • Tools the agent may use at this step;
    • Force exit nodes and Set as default exit node, for where the conversation goes next.
  4. Drag from one node's handle to another to link them. Click a link to choose its type: Entry link, Exit link or Bidirectional.
  5. Click Save.

Result​

You see "Flow saved successfully". Conversations with the agent follow the flow. An avatar application can start it with New experience. To remove a node, select it and confirm Delete node ?.

If something goes wrong​

  • "The default language ({lang}) must be filled in for this node.": fill in the node's texts in the agent's default language.
  • "Loop detected" on a link: two nodes send the conversation back and forth. Check the link types.
  • The conversation doesn't end where you expect: set a default exit node and connect your exits.
  • Nothing happens when you left-click the canvas: nodes are added from the right-click menu.