← All demos
DECISION WORKFLOW
Lead qualification.
Identify inquiry intent, estimate customer fit, and spot demo interest.
State
Editable sampleQuestions
Sent togetherCHOICE
Intent
What is the primary intent of this inquiry?
NOUL
Demo Interest
Does the sender explicitly ask for a product demo?
SCORE
Fit
How closely does this inquiry match the ideal customer profile?
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 inquiry = DecisionsValue.FromObject(new
{
inquiry = "I'm the operations lead at a 120-person SaaS company. We'd like a demo next week.",
ideal_customer_profile = "Business teams evaluating workflow software for a company with at least 50 employees."
});
var lead = await model.DecideAsync<LeadQualification>(inquiry);
bool salesReady = lead.Intent.Value == LeadIntent.Buying && lead.DemoInterest && lead.Fit.Score >= 1.5;
Console.WriteLine(salesReady ? "Sales follow-up" : $"Standard follow-up (intent {lead.Intent.Value}, fit {lead.Fit.Value})");
public sealed class LeadQualification
{
[Choice("What is the primary intent of this inquiry?", Id = "intent")]
public DecisionChoice<LeadIntent> Intent { get; init; } = null!;
// A bool property is true when the probability reaches MinProbability.
[Noul("Does the sender explicitly ask for a product demo?", Id = "demo_interest", MinProbability = 0.7)]
public bool DemoInterest { get; init; }
[Score("How closely does this inquiry match the ideal customer profile?", Id = "fit")]
public DecisionScore<CustomerFit> Fit { get; init; } = null!;
}
public enum LeadIntent
{
[Description("Evaluating or purchasing workflow software")] Buying,
[Description("General information gathering")] Research,
[Description("Help with an existing product")] Support,
[Description("Another intent")] Other
}
public enum CustomerFit { Little, Some, Strong }