import { choice, noul, score, TypeSafeClient } from "@typesafe-ai/sdk";
const client = new TypeSafeClient();
const { answers } = await client.systemOne({
state: "I was charged twice for my payment, reply by today!",
questions: {
department: choice("Which team should handle it?", {
billing: "Payments or subscriptions",
technical: "Bugs or integration issues",
sales: "Pricing or sales questions",
}),
frustration: score("How frustrated is the customer?", [
"Calm, states the facts",
"Frustrated but polite",
"Very angry",
]),
urgent: noul("The message needs action today"),
},
});