Documentation Index
Fetch the complete documentation index at: https://docs.voxworks.ai/llms.txt
Use this file to discover all available pages before exploring further.
What is a Flow Step?
A Flow Step transfers control to another flow:- Save position — Current location is pushed to the flow stack
- Enter sub-flow — Execution begins at the sub-flow’s first step
- Execute sub-flow — The sub-flow runs until completion
- Return — Control returns to the parent flow
- Continue — Parent flow proceeds based on sub-flow outcome
Flow Step Structure
| Property | Description |
|---|---|
next_flow_id | Which sub-flow to invoke |
conditions | Navigation based on sub-flow result |
script property — they navigate directly to the sub-flow. Global variables are automatically available to all flows and sub-flows.
Returning from Sub-Flows
When a sub-flow completes, it returns control to the parent flow with either a success or failure result. The parent flow step’s conditions determine what happens next:Ending the Conversation
If a flow step is in the Main Flow and the sub-flow returns, the main flow continues. When the main flow itself reaches an end condition, the entire conversation ends and the call terminates. Sub-flows never end the call directly — they always return to their parent flow first.Use Cases
Reusable Modules
Create sub-flows for common tasks:- Booking Flow — Used by multiple scripts
- Contact Collection — Gather email and phone
- Objection Handling — Standard responses to concerns
Best Practices
- Keep sub-flows focused — Each should accomplish one goal
- Document inputs/outputs — Make it clear what data is expected
- Handle both outcomes — Always have conditions for success and failure
- Name flows clearly — Use descriptive names like “Appointment Booking Flow”
- Test the full chain — Verify parent-child flow transitions work correctly
Next Steps
- Sub-Flows — Design reusable conversation modules and learn how sub-flows return to parent flows
- Main Flows — Understand how conversations end when the main flow completes
- Variables — Learn about global variables
- Steps Overview — See all step types

