REVENUE OPERATIONS / PRACTICAL GUIDE

How to Classify Inbound Leads with AI and Human Review

Follow a fictional HubSpot inquiry through structured AI classification, evidence checks, a human review decision, and separate approval for CRM changes and email.

By Uptune

Last updated:

7 min read Practical guide
Full guide as Markdown - includes every section and setup step.

Use AI to suggest what an inbound request is about and point to the words that support its classification. Apply business rules to those suggestions before routing the request. When a workflow can change a CRM record or send a message, give each action its own approval and execution checks.

Work through a mixed inbound request

The input, classification, and reviewer in this example are fictional. A request comes in from an existing customer. The application reads account status, current owner, and record version from a trusted CRM lookup. The model receives the message text and proposes a classification using excerpts from that text.

{
  "intake_id": "example-1042",
  "message": "Our HubSpot assignments started duplicating. Could someone fix this before next week? We may also want a quote for a new intake flow.",
  "crm_snapshot": {
    "relationship": "active_customer",
    "owner_id": "owner-12",
    "record_version": 23
  }
}

The possible classifications are sales, support, mixed, and unclear. The suggested evidence strength is clear, mixed, or insufficient. Write and send authorization comes from a separate approval record.

{
  "category": "mixed",
  "evidence_strength": "mixed",
  "evidence": [
    "Our HubSpot assignments started duplicating.",
    "We may also want a quote for a new intake flow."
  ]
}

The validator accepts the shape and finds both excerpts in the message. The routing policy sends the case to review because it contains an active support issue and a possible sales inquiry. The current CRM owner stays assigned.

Review decision by Maya Chen, the fictional intake lead. Maya checks the existing account and assigns the case to the support queue. She approves one internal CRM task for the current owner to investigate duplicate assignments. She keeps the owner assignment unchanged and holds the external reply for separate review. The possible new intake flow remains in the review notes for follow-up.

Validate the classification before routing

  1. Check the model’s completion status and parse its structured result. Require the expected fields and types. Reject unknown categories or evidence strengths and bound the number and size of excerpts.
  2. Match each excerpt to the input. Check that the text actually supports the category. An exact quotation can still be irrelevant, so independently verify the proposed route against your definitions and trusted account data.
  3. Treat the evidence strength as a routing signal. Route a result as clear only when the application finds supporting evidence for one category, finds no conflicting intent, and has the required account facts. Send mixed, insufficient, and conflicting cases to review even if the model labels its answer clear.

OpenAI Structured Outputs constrains the shape of supported completed responses. The application still handles refusals, incomplete responses, API errors, and business rules such as whether the evidence supports the classification. OpenAI Structured Outputs documentation

What the workflow seesWhat the operator or workflow does
Ambiguous intent or conflicting evidence
Assign a review owner. Show the relevant excerpts and existing account context so the reviewer can choose the route or ask for clarification.
Required record, owner, or destination is missing
Hold the affected write or send. Resolve the missing field from an authorized source or ask the process owner.
Malformed output, refusal, or incomplete response
Record a validation failure. Keep the intake in the exception queue. For transient provider failures, retry only the classification within a bounded limit. Escalate if it still fails.
Review expires or the primary reviewer is unavailable
Escalate to the designated backup. Record the timeout and keep external actions on hold.

Separate draft review from approval to act

A reviewer can correct the label or approve reply wording in the review queue. Those decisions update the review record. To write to the CRM or send an email, require authorization for the specific action, record or recipient, and payload version.

Before execution, recheck the approver’s permission, the current record version, and whether the action already ran. For email, also check the recipient, suppression and permission status, and the final text. If the owner, recipient, or payload changed since approval, ask for a fresh decision. When a provider times out after receiving a request, reconcile its records before retrying to avoid a duplicate write or send.

For n8n, tool-level human review can pause an AI Agent before a protected tool executes. A workflow using a Wait node can also resume on a webhook or form submission. In that design, check the actual approval state after resumption. A configured timeout can resume execution on its own. n8n human review for tools, n8n Wait node documentation

Keep an audit record keyed by intake ID. Record the source or a restricted reference to it, the model and prompt version, policy version, proposed label and supporting excerpts, validation results, and the final route. Capture who approved or declined each action, when, and which payload version they reviewed. Record the execution result and external ID where available. Limit access to raw messages and retain only the data needed for review and troubleshooting.

Test false positives and false negatives

Define the positive case before measuring it. Here it is a new sales inquiry eligible for the sales queue. Label a representative set of real, de-identified or synthetic requests with the expected route and allowed action. Ask operators to resolve disagreements before using the labels as a baseline.

  • False positive. A support-only request from a current customer goes to the sales queue. Test messages that mention a product, price, or deadline while asking for support.
  • False negative. A genuine new sales inquiry is classified as support. Include short, indirect, and unfamiliar ways customers describe buying intent.
  • Held cases. Count how often genuine sales inquiries wait for review and how long they wait. Track these separately from wrong routes so you can see what the policy catches and what it delays.

Run the examples with CRM writes and outbound delivery disabled. For each case, compare the proposed label, final route, and allowed actions to expectations. Include mixed intent, missing data, malformed responses, reviewer timeouts, stale approvals, and duplicate deliveries. In a sandbox, verify that approving draft wording alone leaves sends disabled. Then approve one action for a test record or inbox and inspect the result and audit entry. Review the wrongly routed and held examples before changing the evidence rules. Rerun the same set after model, prompt, schema, or policy changes.

Inspect the workflow and review gate

Start with the AI inbound lead routing template. It checks the suggested route, confidence threshold, and explicit email match in code. Customer replies are disabled in the default dry run. The review branch can still notify the internal team, so use a test mailbox while evaluating it. The fictional policy in this guide adds per-action approvals for writes and sends. Use the package setup instructions and sample cases to verify its behavior in your own environment. Template setup instructions

For an example of routing with an existing CRM owner and separate send checks, open the HubSpot lead routing template. Use the ICP classification blueprint to plan the lookup and evidence rules, or explore AI automation services if you need help scoping an adaptation.

By Uptune

Uptune publishes practical guides to help teams evaluate, adapt, and test business workflows. Check the linked package for its exact validation scope.

About Uptune · Book a consultation

Editorial standards · Report a correction

Keep building your knowledge.

Find the next system to simplify your work.

All blueprints
FROM IDEA TO NEXT STEP

Need help putting this guide into practice?

Bring your questions and your tools. Let’s talk through the setup for your business.

Book a consultation

Choose your call. We’ll arrange the time.