← All demos
DECISION WORKFLOW
Support triage.
Route a customer message, spot urgency, and gauge frustration in one call.
State
Editable sampleQuestions
Sent togetherCHOICE
Team
Which team should handle this customer message?
NOUL
Urgent
Does this customer message need a prompt response?
SCORE
Frustration
How frustrated does the customer sound?
Decision output
Ready when you are
Evaluate the state to see the model’s answers, probabilities, and a demo recommendation here.
View C# example
using System.ComponentModel;
using DecisionsDotNet;
// Decision sets are experimental: add <NoWarn>$(NoWarn);DECISIONS002</NoWarn> to your project.
using var client = OpenRouterDecisionsClient.FromEnvironment();
var model = client.ForModel("typesafe/jev-1.14");
var ticket = DecisionsValue.FromObject(new
{
ticket = "My card was charged twice and I still can't access my account. Can someone fix this today?"
});
// Every property of SupportTriage is a question, all sent in one request.
var result = await model.DecideWithResponseAsync<SupportTriage>(ticket);
var triage = result.Value;
if (triage.Team.SelectedProbability < 0.65)
Console.WriteLine("Human review: the team choice is uncertain.");
else
Console.WriteLine($"Route to {triage.Team.Value}. Urgent: {triage.Urgent}. Mood: {triage.Frustration.Value}.");
Console.WriteLine($"{result.Response.Model} used {result.Response.Usage.InputTokens} input tokens.");
public sealed class SupportTriage
{
[Choice("Which team should handle this customer message?", Id = "team")]
public DecisionChoice<SupportTeam> Team { get; init; } = null!;
[Noul("Does this customer message need a prompt response?", Id = "urgent", MinProbability = 0.7,
WhenTrue = "Explicitly time-sensitive or blocking the customer", WhenFalse = "Can wait for the normal queue")]
public bool Urgent { get; init; }
[Score("How frustrated does the customer sound?", Id = "frustration")]
public DecisionScore<Frustration> Frustration { get; init; } = null!;
}
public enum SupportTeam
{
[Description("Payments, invoices, and refunds")] Billing,
[Description("Product bugs, outages, or access failures")] Technical,
[Description("Plans, profiles, and account changes")] Account,
[Description("Anything outside these teams")] Other
}
// Score levels run lowest first.
public enum Frustration { Calm, FrustratedButCivil, VeryUpset }