Recipe catalog / objection-kind
Classify sales objection kind
What primary sales objection does message raise?
You need to tag prospect replies by objection so reps get the right playbook and pipeline reports show why deals stall.
Explore this recipe interactively ยท Source and implementation guide
Use objection-kind in TypeScript
Install with npm install jev-recipes. Requires Node.js 22.9 or newer and ES modules. Set TYPESAFE_API_KEY in your server environment for live calls, which send input to TypeSafe and use API quota. See the installation guide.
import { objectionKind } from 'jev-recipes/objection-kind';
const result = await objectionKind({
"message": "Thanks for the proposal. Honestly the numbers came in well above what we budgeted for this year, so unless there is room to move on the per-seat rate I don't think we can make it work.",
"context": "Reply from a prospect after receiving a quote for 25 seats."
});
console.log(result);
Input contract
| Field | Type | Needed |
|---|---|---|
| message | string | Required |
| context | string | Optional |
| minConfidence | number | Optional |
Full input and result schemas
{
"input": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"message": {
"type": "string"
},
"context": {
"type": "string"
},
"minConfidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"message"
]
},
"result": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"model": {
"type": "string"
},
"usage": {
"type": "object",
"properties": {
"input_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"output_tokens": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"input_tokens",
"output_tokens"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"ready",
"review"
]
},
"verdict": {
"type": "string",
"enum": [
"price",
"timing",
"authority",
"need",
"trust",
"competitor",
"none",
"unclear"
]
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"probabilities": {
"type": "object",
"propertyNames": {
"type": "string",
"enum": [
"price",
"timing",
"authority",
"need",
"trust",
"competitor",
"none",
"unclear"
]
},
"additionalProperties": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"required": [
"price",
"timing",
"authority",
"need",
"trust",
"competitor",
"none",
"unclear"
]
}
},
"required": [
"model",
"usage",
"status",
"verdict",
"confidence",
"probabilities"
],
"additionalProperties": false
}
}Saved example result
This hand-authored response demonstrates the contract. It is not a model accuracy measurement. Run it without an API key: npx jev-recipes demo objection-kind.
{
"model": "demo-fixture",
"usage": {
"input_tokens": 0,
"output_tokens": 0
},
"status": "ready",
"verdict": "price",
"confidence": 0.9,
"probabilities": {
"price": 0.9,
"timing": 0.05,
"authority": 0.01,
"need": 0.01,
"trust": 0.01,
"competitor": 0.01,
"none": 0,
"unclear": 0.01
}
}
Evaluation evidence
No verified live accuracy measurement is available. Evaluate representative cases before using this decision in your workflow.
Use the evaluation guide to measure this decision on your own labeled cases.
Limitations
- Classifies the primary objection the message states. A reply that mixes several objections is graded by the one it leads with, and stated reasons may not be the real ones.
Related recipes
- feedback-kind: Use feedback-kind to classify general product or service feedback from existing users.
- constraint-strength: Use constraint-strength to grade how binding a stated requirement or limit is.