AI Lead Qualification Agent
An AI agent that receives inbound inquiries, qualifies leads through follow-up questions, scores them, and routes qualified prospects to the right person on your team.
The Problem
Inbound leads are the highest-intent prospects in your pipeline, and most companies squander them. A potential customer emails your sales address, and the message sits in a shared inbox for hours while someone triages it. By the time a rep responds, the prospect has already started evaluating a competitor.
The qualification step makes this worse. Not every inbound inquiry is sales-ready. A rep needs to figure out if the prospect has budget, authority, a real timeline, and a use case that fits your product. This means a back-and-forth exchange of qualifying questions before anyone can have a real sales conversation — often spread over days of email tag.
This is exactly the kind of structured, conversational task that AI agents excel at. The agent can respond instantly, ask the right questions, score the lead based on the answers, and route it to the right person with full context. The human rep enters the conversation when it actually matters — with a warm, qualified lead and a complete picture of what the prospect needs.
How an Agent Solves This
A lead qualification agent acts as the first responder for every inbound inquiry. It acknowledges the email immediately, asks targeted qualifying questions, evaluates the answers against your ideal customer profile, and routes the lead accordingly. Here is the flow:
- Prospect emails your inquiry address — Robotomail delivers the message to your agent via webhook
- Agent acknowledges receipt and asks 2-3 qualifying questions tailored to what the prospect mentioned
- Prospect replies with answers — the agent processes them and scores the lead against your ICP criteria
- High-score leads are routed to the appropriate rep with a summary, qualification data, and the full thread
- Lower-score leads receive helpful resources (docs, pricing pages, case studies) and are added to a nurture sequence
The entire qualification cycle — from first email to routed lead — can happen in minutes instead of days. Your reps only spend time on prospects who are ready for a real conversation.
How It Works with Robotomail
Robotomail provides the email infrastructure your qualification agent needs: a dedicated mailbox, real-time inbound delivery via webhooks, and threaded reply capability. Here is the flow step by step.
1. Receive the inbound inquiry
When a prospect emails your inquiry address, Robotomail delivers the full message to your agent's webhook endpoint. The payload includes the message body, sender details, and a threadId for tracking the conversation.
# Webhook delivers the inbound inquiry to your agent
{
"event": "message.received",
"data": {
"id": "msg_2k8n4v",
"mailboxId": "mbx_inquiries",
"from": { "email": "[email protected]", "name": "Jamie Park" },
"subject": "Interested in your enterprise plan",
"text": "Hi, we are a 50-person startup looking at your enterprise tier. We need SSO and custom data retention. Can someone walk us through pricing?",
"threadId": "thr_6j3m8r",
"receivedAt": "2026-03-22T11:05:00Z"
}
}2. Ask qualifying questions
The agent analyzes the inquiry and responds with targeted questions. It replies in the same thread using the threadId and inReplyTo fields, so the conversation threads correctly in the prospect's email client.
# Agent asks a qualifying question
curl -X POST https://api.robotomail.com/v1/mailboxes/mbx_inquiries/messages \
-H "Authorization: Bearer rm_live_abc123" \
-H "Content-Type: application/json" \
-d '{
"to": ["[email protected]"],
"subject": "Re: Interested in your enterprise plan",
"inReplyTo": "<[email protected]>",
"bodyText": "Hi Jamie, thanks for reaching out. To make sure I connect you with the right person, a couple of quick questions:
1. What is your expected monthly email volume?
2. Do you need dedicated IP addresses for sending?
3. What is your timeline for getting started?
I will have a tailored proposal ready based on your answers.",
"bodyHtml": "<p>Hi Jamie, thanks for reaching out. To make sure I connect you with the right person, a couple of quick questions:</p><ol><li>What is your expected monthly email volume?</li><li>Do you need dedicated IP addresses for sending?</li><li>What is your timeline for getting started?</li></ol><p>I will have a tailored proposal ready based on your answers.</p>"
}'3. Process the answers
When the prospect replies, the agent receives the answers via webhook. It extracts the qualification data, scores the lead, and decides whether to route or nurture.
# Prospect replies with qualification data
{
"event": "message.received",
"data": {
"id": "msg_5r2w9t",
"mailboxId": "mbx_inquiries",
"from": { "email": "[email protected]", "name": "Jamie Park" },
"subject": "Re: Interested in your enterprise plan",
"text": "1. Around 50k emails/month across our agent fleet\n2. Yes, dedicated IPs would be important for us\n3. We are evaluating this quarter and want to decide by end of April",
"threadId": "thr_6j3m8r",
"receivedAt": "2026-03-22T11:42:00Z"
}
}4. Route the qualified lead
For high-scoring leads, the agent composes a handoff email to the appropriate rep. The summary includes the qualification data, lead score, and the prospect is CC'd for a seamless transition.
# Agent routes the qualified lead to the right rep
curl -X POST https://api.robotomail.com/v1/mailboxes/mbx_inquiries/messages \
-H "Authorization: Bearer rm_live_abc123" \
-H "Content-Type: application/json" \
-d '{
"to": ["[email protected]"],
"cc": ["[email protected]"],
"subject": "Qualified Lead: Jamie Park — startup.io (Enterprise)",
"bodyText": "Routing a qualified enterprise lead:
- Company: startup.io (50 people)
- Volume: ~50k emails/month
- Needs: SSO, custom retention, dedicated IPs
- Timeline: Decision by end of April
- Score: High (budget signals, clear timeline, technical requirements)
Full thread history below. Jamie has been CC'''d on this handoff.",
"headers": {
"x-custom-lead-score": "high",
"x-custom-lead-source": "inbound-email"
}
}'Key Benefits
- Instant first response. Every inbound inquiry gets acknowledged within seconds, not hours. Prospects know they have been heard and are in the pipeline.
- Consistent qualification. The agent asks the same core questions every time, adapted to what the prospect mentioned. No leads slip through because an SDR forgot to ask about timeline.
- Intelligent routing. Leads are scored and routed to the right rep based on deal size, product fit, and urgency. Enterprise leads go to enterprise reps, startup leads go to the SMB team.
- Full context handoff. When a human rep takes over, they get the complete email thread, qualification answers, and a lead score. No cold introductions, no redundant questions.
- 24/7 coverage. The agent qualifies leads at 3 AM on a Sunday just as well as at 10 AM on a Tuesday. International prospects and off-hours inquiries are never left waiting.
See the API documentation for full details on webhooks, threading, and mailbox management. Read the launch post for the backstory, or sign up free and build your qualification agent in an afternoon.
Ready to build this?
Free tier includes a platform mailbox, 50 sends per day, and webhook delivery. No credit card required.
Start building — free