使用 Switch 的客戶意圖路由
v1.1 Feature展示 v1.1 switch/case 功能——將客戶查詢路由至對應的專責處理器。
4 個節點 · 1 條連接
v1.1switchcustomer-service
ex-switch-intent.osop.yaml
osop_version: "1.1"
id: "switch-intent"
name:"使用 Switch 的客戶意圖路由"
nodes:
- id: "classify"
type: "agent"
name: "意圖分類"
- id: "billing"
type: "agent"
name: "帳務處理"
- id: "tech"
type: "agent"
name: "技術支援"
- id: "fallback"
type: "human"
name: "人工客服"
edges:
- from: "classify"
to: "billing"
mode: "switch"
when: "outputs.classify.intent"
cases:
- value: "billing"
to: "billing"
- value: "technical"
to: "tech"
default_to: "fallback"