
Enabling Debug Mode
Debug Mode can be enabled directly from the bot Flow editor. Navigate to:Debug logs will start appearing in the Live Debug Feed only after Debug Mode is enabled.
What is Debug Mode
Debug Mode is a real-time debugging interface that helps monitor:- Active flows
- Tool execution
- Action execution
- LLM requests and responses
- Errors and warnings
- Custom logs from Function actions
- Execution timing and performance
Why Use Debug Mode
Live Debug Feed
The Live Debug Feed displays all interaction logs in chronological order. Each log entry contains:
Clicking a log entry opens additional details including full JSON payloads, arguments, and execution results.
Session Start Example
User Request Example
Tool Execution Example
- Tool name
- Arguments passed by the LLM
- Tool description
- Tool execution start
Action Execution Example
Tool Completion Example
Bot Response Example
- Final assistant response
- Total generation time
- API provider version
- Model name
Custom Logs in Function Actions
Function actions can send custom logs directly into Debug Mode usinginteraction["_LOGGING"].
Example
Logging Levels
Full Debug Flow Example
Technical Details
- Logs are streamed through Redis pub/sub.
- Events are stored in
events:{interaction_uuid}queue with TTL. - Each log contains:
idtimestamplevelmessage- optional
details - optional nested
children
- Nested logs are displayed in UI as expandable trees.
- Logs remain available during TTL lifetime after interaction completion.
Notes
- Debug Mode is intended for development and troubleshooting.
- Full responses and action results may contain sensitive information.
- Excessive debug logging may affect readability during large interactions.
- Custom Function logs are supported only inside Function-type actions.