Enhanced Error Handling, Disconnect Logic
Overview
This release introduces enhanced flow control capabilities that improve how errors, disconnects, and subflows are managed within a conversation flow. These enhancements allow developers to build more resilient and maintainable flows by providing dedicated handling paths for unexpected errors and caller disconnections, while also improving the subflow authoring experience.
Error Handling in Flows
Flows can now leverage a dedicated Error Exit path to gracefully handle failures that occur during execution.
Benefits
Prevents abrupt flow termination when an error occurs.
Allows custom error recovery logic.
Improves customer experience through controlled messaging.
Helps maintain flow continuity after error handling.
How It Works
A flow begins execution from the Start Node.

If an error occurs in a node (for example, an API Call Node), the flow automatically transitions to the Error Exit path.
Custom logic can be configured on the error path, such as:
Playing an error message.
Setting variables.
Logging information.
Redirecting the flow.

Once the error handling sequence completes, the flow can continue with the remaining conversation logic.

Important Notes
Existing flows are not impacted by this enhancement.
Existing error-handling configurations continue to function as before.
Developers can optionally enhance older flows by configuring the new error exit behavior.
Disconnect Handling
A new Disconnect Exit path allows developers to define actions that should execute when a caller disconnects unexpectedly.

Purpose
When a caller leaves the interaction, there is no further opportunity to interact with the user. Instead, the system can execute backend processing tasks before ending the session.
Supported Nodes in Disconnect Logic
Since customer interaction is no longer possible after a disconnect, only non-user-facing nodes are permitted in the disconnect path.
Supported nodes include:
Set Node
API Call Node
Branch Node
Flow Node (Subflow Call)
End Node

Unsupported Actions
The following actions are not allowed in the disconnect path because the caller is no longer present:
Playing prompts
Say nodes
Transfers
Any customer-facing interaction
Error Handling Within Disconnect Logic
To prevent infinite processing loops:
Errors occurring within the Disconnect Exit path do not trigger the Error Exit path.
If an error occurs during disconnect processing, the flow immediately terminates and moves directly to the End Node.
Subflow Error Management
Subflows are responsible for managing their own exceptions.
Key Behavior
Errors occurring inside a subflow must be handled within that subflow.
Error handling does not automatically propagate back to the parent flow.
This ensures clearer ownership and predictable flow behavior.
Recommendation
Always implement proper error handling within individual sub flows to avoid unexpected failures.
Demo Scenario
The following example demonstrates the new functionality:
Flow Execution
The caller enters the main flow.
The flow reaches an API Call Node.
The API call generates an error.
Control transfers to the Error Exit path.
An error message is played to the caller.
After error handling completes, the flow continues normally.
The caller reaches a survey implemented through a Sub flow Node.
The survey subflow executes and returns control to the parent flow.
The interaction completes successfully.
Disconnect Processing
If the caller disconnects during the conversation:
The Disconnect Exit path is triggered.
Backend actions execute, such as:
Variable updates
Business logic execution
API logging calls
The flow reaches the End Node and terminates.
Best Practices
Configure Error Exit paths for critical nodes such as API calls.
Use Disconnect Exit paths for logging, cleanup tasks, and backend processing.
Handle errors within every subflow independently.
Hide transcripts for authentication and security-related subflows.
Utilize direct subflow navigation to speed up development and troubleshooting.
Keep disconnect logic limited to non-customer-facing actions.
Conclusion
These enhancements provide greater flexibility and reliability in flow execution by introducing dedicated error and disconnect handling mechanisms. Combined with improved subflow management features such as transcript hiding and direct navigation, developers can create more secure, maintainable, and fault-tolerant conversation experiences while improving overall development efficiency.
Last updated
Was this helpful?