Customer Intent Routing with Switch

v1.1 Feature

Demonstrates v1.1 switch/case — route customer queries to specialized handlers.

4 nodes · 1 edges
v1.1switchcustomer-service
Visual
Classify Intentagent
switchBilling
Billingagent
Tech Supportagent
Human Agenthuman
ex-switch-intent.osop.yaml
osop_version: "1.1"
id: "switch-intent"
name: "Intent Routing"
nodes:
  - id: "classify"
    type: "agent"
    name: "Classify Intent"
  - id: "billing"
    type: "agent"
    name: "Billing"
  - id: "tech"
    type: "agent"
    name: "Tech Support"
  - id: "fallback"
    type: "human"
    name: "Human Agent"
edges:
  - from: "classify"
    to: "billing"
    mode: "switch"
    when: "outputs.classify.intent"
    cases:
      - value: "billing"
        to: "billing"
      - value: "technical"
        to: "tech"
    default_to: "fallback"