-
Notifications
You must be signed in to change notification settings - Fork 137
lead qualification with yes no questions
A yes/no model can read an inbound lead (a contact form, a first email, call notes) and answer the qualification questions a salesperson would ask first: is a budget mentioned, is there a timeline, is the writer the one who decides, does the need match what you sell. Code then compares any amounts and dates against your own criteria, and a person makes the call on who gets a meeting. The model saves the reading, not the judgment.
The trap in lead scoring is asking the model for the score. A lead score is usually points added up across several signals and compared with a cut-off. On the fraud-points task, where a score is added up from six rules, jevos-v4 got 0.50 right against 0.69 for the hosted Jev. Ask the model for each signal, and add the points in code.
This page is the questions, why "not stated" is the most common answer, where numbers go, how code turns signals into a queue, why a person decides, and what local changes for sales data.
{
"model": "jev-latest",
"state": {
"source": "contact form",
"company_size_field": "51-200",
"message": "We're replacing our ticketing tool before our contract ends in March. I lead support ops and will make the recommendation to our CFO. We have roughly 40k budgeted. Need SSO and an EU data location."
},
"questions": {
"budget_mentioned": {"type": "noul", "instructions": "Does the writer mention a budget or an amount they expect to spend?"},
"timeline_mentioned": {"type": "noul", "instructions": "Does the writer mention when they need to buy or start?"},
"decides": {"type": "noul", "instructions": "Does the writer say they make the buying decision themselves?"},
"influences": {"type": "noul", "instructions": "Does the writer say they recommend or evaluate, while someone else approves?"},
"replacing": {"type": "noul", "instructions": "Does the writer say they are replacing a tool they already use?"},
"needs_sso": {"type": "noul", "instructions": "Does the writer say they need single sign-on?"},
"student_or_job": {"type": "noul", "instructions": "Is the writer asking for a job, an internship or help with coursework?"}
}
}Every question asks what the writer says. "Is this a good lead?" is not in the list, and neither is "is the budget big enough", because both are decisions that belong to your sales team. Separating "decides" from "influences" is deliberate: the example writer recommends and a CFO approves, which is useful to know and would be lost in one "is this a decision maker?" question. Fit questions are one per requirement you can or cannot meet, so a lead that needs something you do not offer is visible at once.
Real inbound messages are short. "Hi, can we get a demo?" states no budget, no timeline and no role. A good qualification pass must say no to all of those, not guess. Questions of the form "does the text say X at all" scored 0.847 on the first jevos's 999 new yes/no questions (per-kind numbers for jevos-v4 are not published). The design of such gate questions is on ask whether the text says it at all.
"Not stated" is information, not a failure. It tells the salesperson which questions to ask on the first call.
"Roughly 40k budgeted" is a number. Whether 40k clears your minimum deal size, whether March is within your sales cycle, and whether 51 to 200 employees is in your target segment are comparisons. On the first jevos's test set, number-against-threshold questions scored 0.654 and arithmetic 0.584, with a lean toward yes when the model cannot work it out (per-kind numbers for jevos-v4 are not published); the measurement is on small LLMs and arithmetic in yes/no questions.
So the model answers "is a budget mentioned?" and your code extracts the amount with a pattern,
or the form asks for it in a field. The company size already arrives as a field; pass it to code
directly and only put it in state if the model needs it as context.
POINTS = {"budget_mentioned": 2, "timeline_mentioned": 2, "decides": 3, "influences": 1,
"replacing": 1}
def qualify(p, lead):
if p["student_or_job"] > 0.8:
return "not a sales lead", 0
score = sum(w for k, w in POINTS.items() if p[k] > 0.6)
if lead.get("budget") is not None and lead["budget"] < MIN_DEAL:
score -= 3
if lead["company_size_field"] in TARGET_SIZES:
score += 2
missing = [k for k in ("needs_sso",) if p[k] > 0.6 and not WE_OFFER[k]]
if missing:
return "review: needs something we lack", score
return ("sales call" if score >= 6 else "nurture"), scoreThe points are illustrative. What matters is where each part lives: the model's probabilities
become yes or no per signal, the points and the comparison with MIN_DEAL are code, and a lead
that needs something you lack goes to a person rather than being silently dropped. When you want
to change the scoring, you change a dictionary, not a prompt, and you can re-run last quarter's
leads to see what the change would have done.
The output of this page is a sorted queue with reasons, not an accept or reject. Three reasons to keep it that way:
- The model reads; it does not know your market. A lead with no budget stated can be the biggest deal of the year.
- Errors lean toward yes. On the first jevos's 999-question set, wrong yeses outnumbered wrong noes 152 to 91. A wrong "decides: yes" sends a salesperson after someone who cannot sign.
- Decisions about people. Filtering people out automatically may have legal rules attached where you operate. The design pattern of a human review step is discussed on GDPR and automated decision-making with an LLM; ask someone qualified what applies to you.
The middle of the queue ("nurture", "review") is the review band. It is where a salesperson's five minutes are worth the most, and sizing it is covered on human in the loop AI with a review band.
Lead messages contain names, companies, budgets and plans that the writer shared with you, not with a model provider. A local model reads them where they already are, costs nothing per lead, and a message of this length is answered in a fraction of a second on our reference laptop (28 ms for a short request, 130 ms for a long one). Seven questions share one reading of the message.
What local does not fix: jevos reads English only, it has not been measured on sales leads, and it will not know that "our CFO" means a longer cycle at that company. Those are for the person reading the queue.
Can AI qualify sales leads? It can read inbound messages and answer qualification questions (budget, timeline, role, fit). The scoring and the decision should stay with your code and your team.
Should the model give a lead score? No. Ask for each signal and add the points in code; summed scores were the model's weakest shape (0.50 vs 0.69 for the hosted Jev on fraud points).
How does it handle leads that say almost nothing? It should answer no to "is a budget mentioned?" and similar questions. That tells the salesperson what to ask.
Can it compare the budget with our minimum deal size? Extract the amount and compare it in code. Number comparisons are unreliable in a small model.
See also: scores as yes/no thresholds, LLM policy decisions: put the rule in the question and intent detection with a local LLM.
- The six-task comparison (fraud points 0.50 vs 0.69; five of the six sets helped choose the released checkpoint) and latency 28 and 130 ms (measured with jevos-v3, same size and speed as jevos-v4): the jev README.
- Not stated 0.847, number 0.654, arithmetic 0.584, error direction 152 vs 91: our 999-question test set, measured on the first jevos.
- Points and thresholds in the code are illustrative.
From the notes of jev. The model's best answer on a lead form is often "not stated", which is the salesperson's first question.
- Ask a local LLM a yes/no question and get P(yes)
- Zero-shot text classification with yes/no questions
- LLM policy decisions: put the rule in the question
- LLM as a judge on a CPU
- Why a small LLM says yes when the answer is no
- Small LLMs and arithmetic in yes/no questions
- Our held-out benchmark said 0.855, new questions said 0.757
- jevos vs Jev vs Laya for yes/no decisions
- An open-source alternative to Jev for yes/no decisions
- jevos vs the OpenAI API for yes/no classification
- jevos vs Ollama for yes/no decisions
- jevos vs bart-large-mnli for zero-shot classification
- A yes/no LLM vs a fine-tuned BERT classifier
- jevos vs SetFit: zero-shot vs few-shot classification
- jevos vs Llama Guard for content safety checks
- jev serve vs llama.cpp server for classification
- jevos vs LM Studio: a decision server, not a chat app
- Local vs hosted LLM decisions: latency, cost, privacy
- A yes/no LLM vs a business rules engine
- LLM decisions vs keyword rules and regex
- The fastest AI model for yes/no decisions
- What makes a local LLM fast on a CPU
- Why one forward pass beats generating an answer
- Prefill vs decode: where LLM latency comes from
- Why LLM latency grows with the length of the text
- Why a hosted LLM API cannot answer in 50 ms
- Many questions about one text: why the extra ones are cheap
- CPU or GPU for a small LLM
- Latency budgets: where a 200 ms model fits
- Measuring LLM latency: median, p90 and warm-up
- Q4_K_M vs Q8_0: speed and size for a small model
- Throughput vs latency for a decision server
- What P(yes) means, and what it does not
- LLM calibration explained with yes/no answers
- Expected calibration error (ECE), explained
- Temperature scaling for LLM probabilities
- Platt scaling for a yes/no model
- Reading a reliability diagram
- How to choose a threshold for P(yes)
- Thresholds when a wrong yes costs more than a wrong no
- Human in the loop AI with a review band
- Precision and recall at a P(yes) threshold
- Base rates: why a 0.9 yes can still be wrong often
- Combining yes/no answers with AND, OR and NOT
- Logits, log-odds and P(yes)
- LLM confidence scores: probabilities vs self-reports
- How to write yes/no questions an LLM answers well
- Negation in yes/no questions for an LLM
- One condition per question: splitting compound questions
- Ask whether the text says it at all
- Scores as yes/no thresholds: is it at least high?
- Sending JSON as the text: designing the state
- Why wording changes an LLM's answer, and how to test it
- Mainly about: questions for messages with several topics
- Yes/no questions about tone and emotion
- Asking about intent: what does the writer want?
- Yes/no questions about long documents
- Using an English-only LLM with other languages
- Content moderation with a local LLM
- A Discord moderation bot with a local LLM
- Spam detection with yes/no questions
- Review moderation with a local LLM
- Email triage with a local LLM
- Support ticket routing with yes/no questions
- Urgency detection in customer messages
- Sentiment analysis with yes/no questions
- Intent detection with a local LLM
- Lead qualification with yes/no questions
- Fraud case triage with a local LLM
- Phishing email screening with a local LLM
- Log and alert triage with a local LLM
- Checking text for personal data with yes/no questions
- Prompt injection screening with a small model
- Document classification with a local LLM
- Product categorization with yes/no questions
- Contract clause detection with a local LLM
- Refund request triage with a local LLM
- Detecting cancellation intent in customer messages
- RAG evaluation with yes/no questions
- RAG faithfulness check with a local LLM
- Hallucination detection with a local LLM
- LLM regression tests in CI with yes/no checks
- Rubric design for an LLM judge
- Pairwise comparison with a yes/no judge
- LLM judge bias and how to control it
- Evaluation metrics for yes/no classifiers
- Building a yes/no test set for your own data
- Accuracy by kind of question: why one number hides failures
- Generating test questions with answers computed by code
- Benchmark contamination and truly held-out tests
- An LLM router with yes/no questions
- A model cascade: small model first, large model on doubt
- Semantic routing vs yes/no questions
- Gating AI agent tool calls with yes/no checks
- AI agent guardrails with yes/no questions
- Stop conditions for AI agents
- Logging LLM decisions for audit
- Reducing LLM cost with local yes/no decisions
- Replacing chat LLM calls with yes/no questions
- Structured output vs a probability
- A Python client for local LLM decisions
- Calling a local LLM decision server from JavaScript
- Local LLM yes/no decisions in n8n
- A Slack bot that uses local LLM decisions
- Home Assistant automations with local LLM decisions
- A LangChain tool for local yes/no decisions
- Batch decisions from files with jev decide
- Running LLM yes/no checks in GitHub Actions
- Securing a local LLM server with an API key
- curl examples for a local LLM decision API
- Self-hosted AI for decisions
- A private LLM for text classification
- On-premise LLM for business decisions
- GDPR and automated decision-making with an LLM
- Offline AI for decisions: no network needed
- Edge AI decisions on a CPU
- Run an LLM locally without a GPU
- Small language models explained
- When a small model is enough, and when it is not
- An LLM on a laptop: what it can do in real time
- What is GGUF, for someone deploying a classifier
- GGUF quantization types explained: Q4_K_M, Q8_0 and others
- GGUF vs safetensors
- llama.cpp vs Ollama for a classification service
- llama-cpp-python vs calling llama.cpp through ctypes
- llama.cpp on Windows without compiling
- Running llama.cpp CPU only
- Using llama.cpp prebuilt binaries instead of building