What Are Workflows?
A workflow is a predefined sequence of steps that guides users through a process. Instead of free-form conversation, workflows provide a structured experience. Example workflows:- Onboarding — Walk new users through account setup
- Troubleshooting — Guide users through diagnostic steps
- Returns — Collect all required information for a return request
- Feedback — Gather structured feedback with specific questions
How Workflows Work
- User triggers the workflow — By asking something that matches the workflow’s description
- Agent starts the journey — Presents the first step to the user
- User completes steps — Responds to each prompt in sequence
- Agent guides progress — Moves through steps, optionally calling tools
- Workflow completes — User has completed all steps
Creating a Workflow
Step 1: Open the Workflow Builder
Go to Actions and find the Workflows section. Click Create Journey to open the builder.Step 2: Define the Basics
| Field | Description | Example |
|---|---|---|
| Name | Short, descriptive name | ”New Customer Onboarding” |
| Description | When the agent should use this workflow | ”Use when a new user needs help getting started with the product” |
Step 3: Add Steps
Each step has:| Component | Purpose |
|---|---|
| Step text | What to ask or tell the user |
| Tool (optional) | An action to execute during this step |
- “Welcome! Let’s get you set up. What’s your company name?”
- “Great! How many team members will be using the product?”
- “What’s your primary use case?” (Tool:
createAccount)
Step 4: Save the Workflow
Click Save to create the workflow. It will appear in your workflows list.Managing Workflows
View All Workflows
The Workflows section shows all your journeys with:- Name and description
- Number of steps
- Enable/disable toggle
- Edit and delete buttons
Enable/Disable
Toggle a workflow on or off. Disabled workflows won’t be triggered by the agent.Edit
Click the edit button to modify:- Name and description
- Add, remove, or reorder steps
- Change step text or tools
Delete
Remove a workflow entirely. This action cannot be undone.Writing Good Workflows
Clear Entry Points
Write descriptions that clearly indicate when the workflow should trigger:- Good: “Use when a customer wants to request a refund for an order”
- Bad: “Refund workflow”
Logical Step Progression
Order steps in a way that makes sense:- Gather context first (what’s the issue?)
- Collect required information (order number, reason)
- Take action (process the request)
- Confirm completion (provide next steps)
Conversational Tone
Write step text as natural conversation:- Good: “I’d be happy to help! First, could you share your order number?”
- Bad: “Enter order number:“
Include Confirmations
End workflows with a clear conclusion:- “I’ve submitted your return request. You’ll receive a confirmation email shortly.”
- “Your account is all set up! Is there anything else you’d like to know?”
Using Tools in Steps
You can attach a tool to any step. When the agent reaches that step:- Collects user input for required parameters
- Executes the tool
- Uses the result to continue the conversation
- Step: “What’s your order number?”
- Tool:
getOrderDetails - Result: Agent looks up the order and can reference details in subsequent steps
Example Workflow: Return Request
Best Practices
| Do | Don’t |
|---|---|
| Keep workflows focused on one task | Create overly long workflows |
| Write conversational step text | Use robotic language |
| Include confirmation at the end | Leave users wondering if it worked |
| Test with real scenarios | Deploy without testing |
| Use tools to validate information | Ask for info you could look up |
Troubleshooting
Workflow Not Triggering
- Check that the workflow is enabled
- Review the description — does it match what users are asking?
- Test with specific phrases in the Sandbox
Users Getting Stuck
- Ensure step text is clear about what’s expected
- Add helpful examples in step text
- Allow users to exit if the workflow doesn’t fit their needs
Tools Not Executing
- Verify the tool is enabled in Actions
- Check that required parameters are being collected
- Test the tool independently first
