switch/case statement — if no case matches, the flow takes the Default path.
Behavior
- Reads the specified variable’s value
- Compares against each case using the configured match type
- Routes to the first matching case, or
Defaultif none match - Output handles are dynamic — one handle per case plus a
Defaulthandle
Configuration
Match types
Output handles
Switch output handles are dynamic — each case generates a handle, plus aDefault handle for the fallback:
Use cases
Language routing
Language routing
Switch on
{{language}} with cases en, es, fr, and a Default fallback. Route each to a language-specific TTS greeting.Department selection
Department selection
After an IVR Menu collects a department name via speech input, switch on the transcript to route to Sales, Support, or Billing queues.
API response routing
API response routing
After an API Call, switch on
{{status_code}} with cases 200, 404, 500 to handle different response scenarios.