3
ui-guide-studio
17
18
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
10
15
15
13
12
11
10
9
8
7
6
5
4
3
2
1
9
8
7
6
5
4
3
2
1
7
6
5
4
3
2
1
6
5
4
3
2
1
Next lesson
Next lesson
In this lesson

In the Studio, the "Workflows" menu is your hub for managing the various paths that dictate how your bot interacts with users. Each workflow represents a distinct segment of your bot's logic.

In Workflows, you'll find a few predefined paths:

  • Main: This is the primary pathway your bot follows during its interactions. Your users start here by default, and most other workflows will exit back into the main workflow.
  • Error: This activates when your bot encounters an issue like unrecognized commands or invalid inputs. Its goal is to inform the user of the error and offer options for recovery, like retrying the action or redirecting back to the main flow.
  • Timeout: The Timeout flow is triggered when a user hasn’t sent a message or taken an action in a defined period of time that you choose, from 1 minute to 24 hours. You can choose to either end the conversation or try to re-engage the user.
  • Conversation End: The Conversation End flow manages the conclusion of interactions. You might thank the user or provide a summary of the conversation. It triggers at the end of each conversation.

You can add new workflows by clicking the "Create Workflow" button at the top of the Workflows menu. This modular approach lets you break down complex interactions into manageable segments. For instance, a full customer service agent might have separate workflows for refunds, support requests, or IT support.

You can organize workflows into folders by clicking the "Add Folder" button. Folders group related workflows, into a logical structure that makes it simpler to navigate within your bot’s development environment.

Workflows are at the heart of a well-designed AI agent, and using them properly helps your agent deliver consistent, user-friendly experiences or reliably automate complex tasks.

Summary
Workflows define how AI agents interact, handling errors, timeouts, and conversations while enabling modular, structured automation.
all lessons in this course