Recipe catalog / objection-kind
Classify sales objection kind
objection-kind is a Jev recipe from the jev-recipes TypeScript package. What primary sales objection does message raise? Use it when you need to tag prospect replies by objection so reps get the right playbook and pipeline reports show why deals stall.
Last updated .
Explore this recipe interactively · Source and implementation guide · Markdown version
How do I 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);
What input does objection-kind take?
| 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
}
}What does a objection-kind result look like?
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
}
}
Input
See shared options and behavior for client configuration, validation, and errors. context is optional and is omitted from the request when absent.
Result
| Verdict | Meaning |
|---|---|
price |
The sender objects to the cost, budget, or value for money. |
timing |
The sender is not ready to proceed now and cites the timing or other priorities. |
authority |
The sender says someone else must decide or approve before proceeding. |
need |
The sender does not see a need for the product or believes the current approach is sufficient. |
trust |
The sender doubts the vendor, the product, or the claims made about it. |
competitor |
The sender prefers or is already using an alternative product or vendor. |
none |
The message raises no objection to proceeding. |
unclear |
The primary objection is not established by the supplied text. |
The result includes verdict, confidence, and all choice probabilities. unclear always requires review, even at high confidence. Other verdicts, including none, can be ready.
Results include model and token usage. Decisions below minConfidence require review. Inspect the outcome as well as the status.
Reuse and calls
Uses the shared choice helper for the Jev call and response parsing. This folder owns its question, verdict criteria, and review policy. A live invocation makes one logical Jev request; SDK retries can add transport attempts.
Limits
Classifies the primary objection the message states, not whether it is genuine or surmountable. A reply that mixes objections, such as a price concern that also defers to a manager, is graded by the one it leads with. Stated reasons can mask other reasons, and a none verdict means no objection was raised, not that the prospect agreed. Playbook selection and stage changes belong in application code.
Example input
demo.json contains editable input and a hand-authored response. After installing jev-recipes, npx jev-recipes demo objection-kind shows the result offline. The fixture is an illustration, not an accuracy measurement. npx jev-recipes describe objection-kind shows the input and result schemas.
How accurate is objection-kind?
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.
What are the limits of objection-kind?
- 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.
Which recipes are related to objection-kind?
- 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.