AI Assistant: Flow Generator and Flow Debug
Overview
The Flow Generator is an AI-powered assistant that helps users create new flows or modify existing flows using natural language instructions. Instead of manually building flows node by node, users can simply describe the desired workflow, and the AI generates the flow structure automatically.
The generated flow is created as a draft and displayed on the canvas, allowing users to review, modify, test, and save it before publishing.
Key Benefits
Create flows using natural language
Reduce manual configuration effort
Accelerate flow design and prototyping
Modify existing flows quickly
Automatically generate nodes, agents, goals, and routing logic
How It Works
The Flow Generator uses the following inputs:
Context
Current flow (if modifying an existing flow)
User instructions
Selected AI provider
Supported AI Providers
OpenAI
Anthropic
Output
The AI generates:
A new flow draft
Updated flow structure
Nodes and connections
Agent configurations
Goals and prompts
The generated draft is immediately displayed on the Flow Builder canvas.
User Workflow
Step 1: Create or Open a Flow
Navigate to Flows.
Create a new flow or open an existing flow.
Open the Flow Builder canvas.

Step 2: Open AI Assist
Click the AI-Assist button.


Select the desired AI provider:
OpenAI
Anthropic

Step 3: Enter Instructions
Provide a natural language prompt describing the flow.
Example

Step 4: Generate the Flow
The AI analyzes the instructions and automatically creates:
Welcome message
Menu options
Agent nodes
Routing logic
Connections between nodes

A summary of changes is displayed, including:
Newly added nodes
Updated nodes
Flow modifications
Modifying an Existing Flow
Users can refine generated flows through additional prompts.
Add a third menu option for transferring customers to a human agent.

The AI updates the flow and inserts the required nodes and transitions.

Adding New Flow Components
The Flow Generator can also enhance existing flows by adding new functionality.
Example: Add a Flow Summary node After the Baggage Support Agent.
The AI automatically places the node in the appropriate location and updates the flow connections.

Reviewing Generated Content
After generation, users can inspect all flow elements.
Menu Nodes
Generated menu nodes may include:
System prompts
Menu options
Routing conditions


Agent Nodes
Generated agents may contain:
System instructions
Goals
Data collection requirements


Goals:
Collect flight number
Collect issue description
Assist with baggage-related requests
Flow Summary
Generated summary may contain:
Summary prompt
Output

Testing the Generated Flow
Before testing, save the generated draft.
Steps
Click Save.
Launch the test simulator.
Start a conversation.

Flow Debug
The Debug Inspector is an AI-powered troubleshooting assistant designed to help users investigate flow execution issues and understand runtime behavior.
It analyzes execution data and provides insights regarding failures, errors, and execution patterns.
Purpose
The Debug Inspector helps users:
Identify flow failures.
Diagnose execution issues.
Understand flow behavior.
Investigate runtime anomalies.
Reduce troubleshooting time.
Data Sources Used
The Debug Inspector can access:
Flow Context: The flow definition being analyzed.
Execution Details: Information from previous flow runs.
Session Details: Context associated with the execution session.
Logs: Runtime logs generated during execution.
Metrics: Performance and execution metrics.
Traces: Detailed execution traces that show step-by-step processing.
User Flow
Analyze a Flow Execution
Open a flow.
Select Debug Inspector.
Choose an execution or session to investigate.
Enter a question or troubleshooting request.
Example:Why did this flow fail or find the error that caused the customer verification step to fail.
Submit the request.
The Debug Inspector gathers:
Flow context
Session details
Execution logs
Metrics
Traces
The AI analyzes the information.
A detailed explanation is generated.
Review the identified issues and recommended troubleshooting insights.
Benefits
Flow Generator
Faster flow creation
Reduced manual effort
Natural language-driven design
Rapid prototyping
Easier flow maintenance
Debug Inspector
Faster issue identification
Improved troubleshooting
Better visibility into flow execution
Intelligent analysis of logs and traces
Reduced time to resolution
Conclusion
The Flow Generator simplifies flow creation by allowing users to build and modify flows through natural language instructions. It accelerates development, reduces manual effort, and enables rapid prototyping while maintaining full control over the final flow design.
Last updated
Was this helpful?