Step-by-step guide to creating and configuring your first AI agent flow
Building your first flow on the platform is a straightforward process. This guide will walk you through each step, from creating a new flow to configuring its states and actions.
Flows are essential to directing your AI agent’s conversation with customers. Each flow is composed of States and Transitions that guide the agent’s responses based on customer input. Setting up flows effectively ensures your AI agent can handle various scenarios and provide an optimal customer experience.
To start, navigate to the Flows section under the Build tab in the sidebar.
Click Create in the top-right corner.
Enter a Name and Description for your flow. The name should be something descriptive, like “Car Cleaning Appointment Flow,” to help identify the flow’s purpose.
After you create the flow, it will appear in your list of flows. Now, you can begin adding states and configuring the flow.
The Initial State is where the flow begins. By default, a flow starts with an “Initial” state that you can edit to define how the agent introduces itself or begins the interaction.
Right-click on the Initial State and select Edit to open the state configuration dialog.
In the Thought section, enter the instructions that guide the agent’s response. For instance, “Welcome the customer and ask how you can assist with their car cleaning needs.” For a in-depth guide on designing Thoughts, check out our Thoughts Guide.
Functions: Add any functions (predefined or custom) that the agent should perform at this state. For example, if you need the agent to verify customer information, select a relevant function from the list.
Tags: Tags help categorize and visually group states in the flow. Assign tags if needed for organization.
When you’re finished, click Save to finalize the state.
Transitions between states are controlled by Events. Events are triggered by function calls. When an event is triggered, the flow moves to the next state based on the event’s conditions.
Drag a line from one state to another to create a transition.
A dialog will appear to configure the event that triggers the transition. The options are limited to possible events output by the functions of the upstream state.
For example, if the customer confirms their address, that function will emit the ‘Address Verified’ event that then triggers a transition to the “Verify Appointment Details” state.
To deploy the flow, you will need to configure a Point-Of-Contact (POC) that connects the flow to a communication channel like Voice, SMS, or Web.Check out our guide on Creating a Point of Contact for detailed instructions on setting up a POC for your flow.
Definition: Triggers that determine when the conversation moves from one state to another.
Example: An event could move the flow from “Confirm Address” to “Confirm Appointment” once the address is verified.
By following this guide, you can set up a flow that effectively manages customer interactions. Building flows with well-defined states, functions, and events will help your AI agent provide consistent and valuable support across various customer scenarios.