← Back to library

Qualify web leads with AI that must quote its evidence

Kingsley Ken, an n8n builder, shared a client lead qualifier where Claude scores each inquiry rule by rule and must back every judgment with words from the message. A code step then searches the inquiry for each quote and downgrades any claim it cannot find. Replies wait for Slack approval. We turn it into a reusable pattern.

  • OutcomeRoute every website inquiry through a workflow that removes duplicates and junk, has a model judge each of your qualification rules with a supporting quote from the message, uses plain code to confirm each quote really appears in the inquiry, updates the CRM, drafts a reply that asks only for missing details, and sends nothing until a person approves it in chat.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditKingsley_Ken
View original
Works with
n8nClaudeCustom agent

Published Nov 7, 2026Updated Nov 7, 2026AI dry run on sample input: passed Nov 7, 2026Source verified Nov 8, 2026

When should you use it?

  • Inbound inquiries arrive through a web form and someone triages them by hand
  • You tried AI lead scoring but could not tell why it rated a lead the way it did
  • Replies to prospects must never go out without a person signing off

Not for: Outbound prospect lists, where there is no incoming message to check claims against; Teams with only a few inquiries a week, where reading them directly is faster; Setups without any chat or form step where a person can approve drafts

What do you need, and what do you get?

You need

  • A form or webhook that delivers name, email and message
  • Three to six written qualification rules, such as service area, budget range or project type
  • CRM access for creating or updating contacts and deals
  • A chat channel for approvals

You get

  • A verdict per inquiry: good lead, ask for more information, or decline
  • A per-rule assessment with the supporting quote, saved as a CRM note
  • A short reply draft that asks only for the missing details
  • A logged approval decision for every outgoing message

How does it work, step by step?

  1. Fingerprint each inquiryNormalize the email and message, hash them and skip any fingerprint you have already processed so double submissions never get two replies.
  2. Filter junk before AIDrop entries without a valid address or with a near-empty message before spending a model call on them.
  3. Score rule by ruleAsk the model to mark each rule as satisfied, failed or unclear, with the exact supporting words, using a structured output format.
  4. Check the quotes in codeSearch the original message for every quote. A positive claim whose quote is missing becomes unknown; an absence claim may stand without one.
  5. Draft, approve, then sendWrite a reply that asks only about unknown rules, post it for approval with send, edit or skip options, and record the choice.

The prompt

Our own prompt, inspired by Kingsley_Ken and written to work in n8n, Claude and Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt3 variables
You assess one inbound inquiry for {business_name}.
Rules to check:
{rules}

For each rule return JSON with: rule, status (satisfied, failed or unclear), and evidence, which must be copied character for character from the inquiry.
Leave evidence empty when a rule failed because something is missing, or when it is unclear.
Never infer budget, timing or location that the sender did not write.
Then give an overall result: good lead, ask for more information, or decline.

Inquiry:
{message}

Inspired by Kingsley_Ken: n8n Community: an AI lead qualifier that is not allowed to trust itself. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Requiring a quote for every verdict wrongly penalizes 'not a fit' decisions, since you cannot quote something that is missing. Exempt absence claims.
  • Exact string matching fails on small rewording. Normalize case and spacing, and log near misses for review.
  • Keep prices and availability out of the drafted reply unless a person adds them.
  • Store business rules in one settings step; reusing the build for another client then means changing a single node.

Our take

This is one of the cleanest answers we have seen to the question of how far to trust a model's judgment in a sales workflow. The answer here is: only as far as ordinary code can confirm it. Asking the model to justify each rule with words from the inquiry is common; checking those words against the message in a separate step is not, and it closes the door on invented reasons. The author's own testing story is the most useful part. The first version treated a missing quote as a failure everywhere, which pushed obvious sales pitches into the pile waiting for more information. The fix (positive claims need evidence, absence claims do not) is a rule worth copying into any evidence-checking workflow. Our caution is matching: real inquiries contain typos and pasted text, so loosen the comparison slightly and review near misses. In our dry run with six fictional inquiries for an electrical contractor, a fabricated budget quote was caught and downgraded.

Where the time goes back: Inquiries arrive in the CRM already sorted, with the reasons attached and a reply drafted, so the salesperson spends a minute approving instead of ten minutes reading, judging and typing.

FAQ

Why not just trust the model's score?
A score without evidence cannot be audited. Forcing a quote and checking it with ordinary code means the model cannot invent a reason a lead qualifies.
Which CRM did the author use?
GoHighLevel, through HTTP requests rather than the built-in node, because the build needed upserts and notes. Any CRM with an API for contacts and notes works the same way.
How much of the workflow is AI?
In the posted build, two of twenty-five steps call the model. The rest handles deduplication, checks, CRM updates and the approval gate.

Source and credit

Inspired by Kingsley_Ken. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
n8n Community: an AI lead qualifier that is not allowed to trust itself
Creator
Kingsley_Ken
Published on
n8n Community
Original date
Nov 7, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
n8n
AI dry run
Nov 7, 2026: passed. Dry-run tested by our AI test agent on sample input. Fabricated evidence caught by the code check, absence claims allowed without quotes, drafts ask only for missing details.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Nov 8, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Sales

All 59 Sales playbooks →

Related playbooks

SalesWorkflow✓ AI dry run

Screen new multifamily listings against buyer criteria

Each morning, get the few new apartment listings that fit your buyers' criteria, with rent roll figures pulled out and a rough first pro forma to verify.

Credit: u/tayloravakian_LA on r/CommercialRealEstate

An afternoon+
SalesWorkflow✓ AI dry run

Run a real estate deal desk from your inbox and calendar

Give an agent your inbox and calendar so it surfaces counteroffers fast, compares competing bids, drafts routine deal emails and warns you about clashing deadlines.

Credit: Drew McAllister (@DMAC_19)

An afternoon+
SalesWorkflow✓ AI dry run

Turn emailed video briefs into priced quotes you approve

Build an n8n workflow that reads a client's emailed brief and attachments, has a model pull out the job details, uses plain code to spot missing details and to price the job from your rate card, drafts a follow-up that requests just the missing details, and holds every quote for your approval in Slack before anything reaches the client.

Credit: Kingsley_Ken

An afternoon+
SalesWorkflow✓ AI dry run

Draft a field-service quote with supplier prices checked

Turn job notes, your price book and a dated supplier list into an internal cost worksheet and a customer-facing estimate draft, flagging missing, stale or conflicting supplier figures, refusing to invent labor, margin, tax or a grand total when those inputs are incomplete, and leaving the draft for a salesperson to approve before anyone sends it.

Credit: Tyler Griffin (@TylerGriffin)

Under an hour