For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workflows

Build your agent's behavior using visual, step-by-step graphs

Workflows are the building blocks of your agent. Each workflow is a visual graph that defines how your agent processes input and responds to users — step by step, node by node. An agent can contain many workflows, each responsible for a different part of its functionality. Think of them as modular pieces of logic you compose together.

Navigate to Designer > AI Workflows to build, configure, and manage your workflows and everything connected to them.

What Is a Workflow

A workflow is a directed graph made up of two elements:

Nodes

Building blocks that each perform a discrete action or logic step

Edges

The connections between nodes that define the execution sequence

Your agent executes the graph step by step, starting from the Start node and chaining through each connected node. A workflow ends when it reaches a node with no outgoing edge or a Redirect node that transfers execution to another workflow.

Types of Workflows

When you create a new workflow, you select one of four types. Each type comes with a preconfigured template and may enable specialized nodes.

The standard workflow type. Build custom conversation logic using any combination of message, prompt, action, and logic nodes.

Creating a Workflow

1

Go to Designer > AI Workflows > Flows

2

Add a New Workflow

Click the Add Flow button

3

Configure the Workflow

Enter a descriptive name (e.g., Order Tracking or Greeting) and select the workflow type.

4

Create the Workflow

Select Create flow. The new workflow is added to the agent and you can now start building your logic in the canvas.

Managing a Workflow

You can manage a workflow using the Action column buttons.

Icon
Function
Description

Edit

Open the workflow on the canvas

Delete

Permanently remove the workflow

Clone

Duplicate the workflow into the same or a different agent

Preview

Run the workflow in isolation

Favourite

Set this workflow as the default for the flow preview

Editing a Workflow

Use the Canvas to design your workflow visually. Simply drag and drop nodes, then connect them to define the execution path. To edit a workflow, either select it in Designer > AI Workflows > Flows or click the respective edit action button.

The canvas enforces various rules to keep your workflows valid. For example:

  • Every node must be connected; you cannot leave detached nodes in the workflow

  • Only valid connections between compatible node types are allowed

  • A node cannot have multiple outgoing edges to different children (unless using a control flow node)

If you try to exit the canvas with errors, you get a warning highlighting the issues. You need to fix all errors before saving a workflow.

The Workflow Lifecycle

Each workflow executes according to the visual path established in the graph.

1

Start node

Whenever a workflow is triggered the execution flow begins from the Start node. There is only one Start node per workflow, it cannot be removed and it is automatically created for every new workflow.

2

Step-by-Step Execution

The workflow chains through nodes one at a time, following the edge direction. At each step, the next node is determined by the outcome of the current one. If a node branches into multiple outgoing paths, the workflow follows a single path based on the result. The result is an execution flow that adapts to each conversation rather than following a fixed sequence.

3

End or Redirect

The workflow concludes automatically upon reaching either a node with no further outgoing paths or a Redirect node, which hands off the execution to another workflow.

A single agent response can span multiple workflows chained through Redirect nodes. The response completes when the last workflow in the chain reaches a terminal node.

How the Agent Picks a Workflow

Every agent comes with built-in triggers that decide which workflow runs at a given moment:

Start Workflow

The initial workflow triggered the moment a user begins a new conversation.

Default Workflow

The main workflow that triggers automatically whenever a new message pops up from a user in the chat interface.

Interrupts

Keyword rules that redirect to a target workflow as soon as a user message matches

Each one targets a workflow you have built, but they differ in what triggers them, where they apply, and where you configure them:

Start Workflow
Default Workflow
Interrupts

Purpose

Greets the user when a conversation begins

Responds to any new user message

Redirects the conversation when a keyword matches

Trigger

Conversation opens (before any user input)

User input

User message matches an Interrupt keyword

Scope

Per deployment

Global (applies to all deployments)

Agent-wide

Where to set

Deployment settings

Designer > AI Workflows > Default Flow

Designer > AI Workflows > Interrupts

Availability

Depends on the channel

All channels

Modern agents only

Start Workflow

The start workflow is the initial workflow triggered the moment a user begins a new conversation. It defines the agent's first impression, allowing you to establish context or gather information before the main logic takes over.

Keep It Short

Orient the user in 1–2 messages, not overwhelm them with information

Match the Channel

A Webchat start workflow can be more visual, while a Viber start workflow should stay text-focused

Descriptive Name

Use names like Welcome - EN or Onboarding - Support so they are easy to identify

Understanding the Start Workflow

This workflow is triggered when the user first accesses the agent, such as when they open a webchat interface in their browser. Because this workflow can be any flow you have built, it offers a high degree of flexibility for personalizing the user experience.

Common uses for a start workflow include:

  • Send a personalized welcome message

  • Set specific variables to track user context

  • Ask for initial feedback or user preferences

  • Introduces the agent's capabilities

The start workflow is set per deployment, not globally. Different deployments can trigger different workflows, even on the same channel.

Channel Availability

The availability of the start workflow varies depending on the specific channel you choose for deployment. Some channels do not support the concept of a 'new conversation' session, while others restrict introductory messages to a one-time initial interaction.

Channel
Start Workflow Available

Webchat

Yes

API

No

Microsoft Teams

No

Slack

No

WhatsApp

No

Viber

Yes

Messenger

Yes

Instagram

No

Unity

No

Configure a Start Workflow

You choose the start workflow when you create a deployment in Designer. If you need to update the initial experience, you can change the assigned workflow at any time from the deployment configuration settings.

1

Create a Workflow

Go to Designer > AI Workflows > Flows and build the workflow you want to use as the start flow. A common pattern is a welcome message followed by quick-reply options.

2

Open the Deployment

Go to Designer > Deployments and select the deployment you want to configure or create a new one.

3

Select the Workflow

Find the Flow dropdown (location and name may vary by channel) and select your workflow.

4

Save

Click Save Changes (or Create Deployment if creating a new one).

Default Workflow

The default workflow is the main starting point of your agent. It is the central sequence that triggers automatically whenever a new message is sent to the agent, ensuring a responsive interaction for every user query.

To configure the default workflow, go to Designer > AI Workflows > Default Flow.

Don't Forget the Redirect

Ensure the workflow ends with a Redirect; without this, the Agent AI won't trigger to process the user's response

Leverage Variables

Use variables like {{user.LastName}} or {{session_topic}} within your response to prove the agent is "listening" rather than just reciting a script

Offline Switch

Use a custom message with a static notification to inform users if and when the agent is available or is undergoing maintenance

Optimize for Brevity

The default workflow should be concise. Let the agent decide how it wants to answer

Understanding the Default Workflow

When a user sends a message, the default workflow is responsible for handling the agent's response. It is defined as a chain of responses that are executed sequentially and you can configure each response separately by selecting one of the four types.

Display customized messages to your users with full support for rich formatting, including emojis and lists. You can personalize the response by including agent-specific variables such as user metadata or the current date and time.

For granular control, you can enable or disable thumb ratings for specific messages, allowing you to override your global agent settings.

There is only one default workflow allowed for each agent to maintain a clear and consistent logic path.

Build a Default Workflow

1

Go to Designer > AI Workflows > Default Flow.

2

Select the Language

Use the language dropdown to choose which language you are configuring.

Each language has its own independent Default Flow

3

Add a Response

Select Add Agent Response above or below the chain. Select the response type (Message, Redirect, Feedback, or Variable) and fill in the fields.

4

Chain Additional Responses

Click Add Agent Response again to append more responses. They execute top-to-bottom in the order shown.

5

Remove Responses

Select the icon next to any response block to remove it from the chain. The remaining responses shift up automatically.

6

Save

Changes save automatically as you edit each response block.

Interrupts

An Interrupt redirects the conversation to a target workflow when a user message matches a trigger keyword. Use them for global escape phrases like cancel, start over, or talk to a human that should work no matter where the user is in a conversation.

To configure interrupts, go to Designer > AI Workflows > Interrupts.

Interrupts are available on modern agents only.

How Interrupts Work

You define an Interrupt by pairing one target workflow with a list of trigger keywords. When a user message arrives, the agent compares it against every keyword in every Interrupt before any other LLM step runs. If a keyword matches, the conversation jumps to that Interrupt's target workflow.

Matching is controlled by two agent-level settings that apply to every Interrupt: a similarity algorithm and a threshold.

The user message must equal a keyword exactly. The threshold is ignored. Best for short, unambiguous commands like cancel or stop.

Toggle Enable Interrupts off to suspend matching across the whole agent without losing the keyword lists.

A few rules to keep in mind:

  • Each workflow can be the target of only one Interrupt

  • A keyword can appear in only one Interrupt; duplicates are rejected on save

  • Deleting a workflow automatically removes any Interrupt that targeted it

Create an Interrupt

1

Open the Interrupts Page

Go to Designer > AI Workflows > Interrupts and select Create Interrupt.

2

Pick a Target Workflow

Use the Select Flow dropdown to choose the workflow this Interrupt redirects to. Workflows that already have an Interrupt are not included here.

3

Add Keywords

Type a keyword and select Add Keyword, or use Import from CSV to load a batch from a file. Imported lists are deduplicated automatically against the keywords already in use by other Interrupts.

CSV format

The file must have a header row with a single column named keywords and one keyword per row:

Duplicates within the current Interrupt are removed silently. Keywords already used by other Interrupts trigger a warning and are skipped.

4

Save

Select Save Changes. The Interrupt is now active for any conversation handled by the agent.

Manage an Interrupt

Each row in the Interrupts table has edit and delete actions. Edit lets you change the target workflow or update the keyword list. Delete removes the Interrupt entirely. Inside the editor, Delete All clears the keyword list without removing the Interrupt itself.

Workflows as Nodes

The Redirect node allows you to trigger a workflow from within another workflow, effectively turning complex sequences into modular "building blocks." This architectural approach is essential for building scalable and maintainable agents.

For example, imagine you have a main routing workflow that acts as a switchboard. Instead of building every single response in one place, you use Redirect nodes to send the user to specialized flows:

  • Main Workflow User asks about a package Redirect to Order Tracking Flow

  • Main Workflow User asks to return an item Redirect to Returns & Refunds Flow

  • Main Workflow User requests a human Redirect to Live Support Flow

Best Practices

  • Keep workflows focused: each workflow should handle one task or conversation path, not the entire agent logic

  • Name descriptively: use names like Order Tracking or Password Reset instead of Flow 1 or Test

  • Set a default workflow: always configure a default workflow to handle unrecognized input gracefully

  • Match the channel: a Webchat starting workflow can be more visual, while a Viber starting workflow should stay text-focused

  • Document your workflow: Sticky notes are available in the canvas sidebar. They are useful for documenting and organizing a workflow and facilitating collaboration between team members.

Last updated

Was this helpful?