サポート · basic
サポートルーティング
問い合わせを主なサポートキューへ送り、対応の緊急度も評価します。
choicescore
使用する場面
- Ticket routing
- Queue prioritization
- Support automation
State の例
{
"message": "My card was charged, but the upgrade never appeared.",
"customer_plan": "Starter",
"payment_status": "settled"
}判断の質問
choicequeue
Choose the primary support queue for this case.
billing— Payment, invoice, or charge issueaccount— Account, access, or entitlement issuetechnical— Product behavior or technical failurecancellation— Subscription cancellationother— None is clearly primary
scoreurgency
Score review urgency from 0 to 3.
- 0 — routine; no time-sensitive impact
- 1 — minor impact
- 2 — active customer impact
- 3 — severe or time-critical customer impact
期待される出力
One primary queue plus an expected urgency score from the ordered rubric.
TypeScript
import { choice, score, TypeSafeClient } from "@typesafe-ai/sdk";
const client = new TypeSafeClient();
const result = await client.systemOne({
state: {
message: "My card was charged, but the upgrade never appeared.",
customer_plan: "Starter",
payment_status: "settled",
},
questions: {
queue: choice("Choose the primary support queue.", {
billing: "Payment, invoice, or charge issue",
account: "Account, access, or entitlement issue",
technical: "Product behavior or technical failure",
cancellation: "Subscription cancellation",
other: "None is clearly primary",
}),
urgency: score("Score review urgency.", [
"Routine",
"Minor impact",
"Active customer impact",
"Severe or time-critical impact",
]),
},
});この設計の理由
- A primary-route instruction resolves cases that could plausibly fit multiple queues.
- The urgency rubric is explicit instead of asking for an undefined number.
注意点
- Routing should not silently discard secondary issues.
- Urgency is a triage signal, not a service-level agreement.
公式ソース
2026-09-21
次のステップ: Jev Playground、テンプレート。