Overview
While accessible to non-engineers, the Visual IDE exposes granular control over:- System prompts and AI behavior
- Variable states and data flow
- Tool definitions and integrations
- Conditional logic and workflows
- Multi-language conversation paths
Core components
Scripts
Scripts are the fundamental building blocks of your agent’s behavior. Each script contains:- Nodes - Individual conversation steps or actions
- Edges - Connections defining the flow between nodes
- Variables - Data storage accessible throughout the script
- General settings - Metadata like name and description
Nodes
Nodes represent discrete steps in your conversation flow. Each node has:- A unique ID for reference
- A position on the canvas (X, Y coordinates)
- Type-specific configuration
- Input and output ports for connections
Edges
Edges connect nodes together to define conversation flow. Each edge specifies:- Source node and port
- Target node and port
- Conditional routing based on user responses
- Multiple outcomes from DTMF input
- Dynamic navigation with GoToNode
Variables
Variables store data throughout the conversation lifecycle. Each variable includes:Alphanumeric identifier with underscores (e.g.,
customer_pin)Used in Scriban templates as {{ variables.customer_pin }}Data type:
String, Number, or BooleanInitial value, converted at runtime based on Type
If
true, the variable is injected into the LLM system promptIf false, hidden from the AI (useful for sensitive data like PINs)If
true, the AI can modify this variable via extraction or tool outputIf false, the variable is read-onlyMulti-language descriptions explaining the variable’s purpose
Building your first script
Create a new script
Navigate to your agent and create a new script. Every script automatically includes a Start Node.
Add conversation nodes
Drag nodes from the palette onto the canvas:
- AI Response - What the agent should say
- User Query - What you expect the user to ask
- System Tools - Actions like End Call, DTMF Input, Send SMS
Connect the flow
Draw edges between nodes to define the conversation path. The flow always starts from the Start Node.
Configure node details
Click each node to configure its behavior, including multi-language content and examples.
Multi-language support
The Visual IDE natively supports parallel language contexts. Most content fields (like Response, Query, Examples) are multi-language dictionaries:Design patterns
Modular scripts
Break complex agents into smaller scripts:- Main script - Greeting and routing logic
- FAQ script - Common questions handler
- Payment script - Secure transaction flow
Error handling
Always provide fallback paths:- Add timeout handling on DTMF Input nodes
- Create “I didn’t understand” responses
- Include escape routes to human transfer
Variable management
Organize variables by visibility:- Public variables - Visible to AI for context
- Private variables - Hidden from AI, set by deterministic tools
- Constants - Read-only data like business hours
Best practices
- Use descriptive node IDs - Makes debugging easier
- Provide examples - Help the AI understand expected patterns
- Test edge cases - Verify all paths work as expected
- Keep scripts focused - One script per major conversation goal
- Document variables - Add descriptions for team collaboration
Next steps
Agent configuration
Configure personality, integrations, and settings
Script nodes
Learn about all available node types
Action flows
Build deterministic workflows
Secure sessions
Collect sensitive data securely