AI agents are no longer a boardroom concept. In 2026, a two-person business in Jaipur can deploy a fully autonomous lead qualification workflow for ₹1,500/month — and have it running in an afternoon. This guide makes that concrete. By the end, you will have a working AI agent that captures leads, qualifies them with AI, logs them to a spreadsheet, and sends a WhatsApp reply in under 60 seconds — automatically, while you sleep.
What an AI Agent Actually Does (vs. Basic Automation)
A standard automation tool (Zapier, Make.com) follows rigid if-this-then-that rules. If the input does not match exactly, it fails silently. An AI agent understands context. It reads a messy form submission like "hi i need something for my shop, budget maybe 20k, call me anytime" and outputs: Name: Unknown · Budget: ₹20,000 · Urgency: High · Score: Warm. Then it acts on that score — different message for Hot vs. Cold leads, routes to the right sales rep, updates your CRM — all without you writing a rule for every possible input variation.
The Workflow You Are Building Today
A Lead Qualification Agent that does the following end-to-end, with zero human involvement:
- Trigger: New lead submits your contact form (Tally/Typeform/website)
- AI Step: Claude/OpenAI extracts name, budget, urgency, intent — and assigns Hot/Warm/Cold score
- Log Step: Qualified lead added to Google Sheet with score and extracted fields
- Reply Step: Personalised WhatsApp message sent to lead within 60 seconds (or Gmail as fallback)
- Alert Step: Your team gets a Slack/email notification only if score = Hot
Step 1: Set Up n8n (15 Minutes)
n8n is the automation engine. It is open-source, has a visual drag-and-drop interface, and costs ₹0 on the self-hosted version or ₹1,500/month on their cloud. For this guide, use n8n Cloud (no server setup required).
- Go to n8n.io → click "Start for free" → sign up with your Google account
- You land on the n8n dashboard. Click "New Workflow" → name it "Lead Qualification Agent"
- Click the "+" button to add your first node
Step 2: Connect Your Lead Form via Webhook (10 Minutes)
A webhook is a URL that receives data the moment someone submits your form. Think of it as a doorbell — your form rings it, n8n answers.
- In n8n, search for "Webhook" node → add it as your trigger
- Set HTTP Method to POST, Path to "new-lead" → click "Listen for Test Event"
- Copy the webhook URL (looks like: https://your-instance.n8n.cloud/webhook/new-lead)
- In your Tally form: Settings → Integrations → Webhooks → paste the URL → Save
- Submit a test entry in your Tally form. n8n will show you the incoming data structure — note the field names (you will use them in the next step)
Step 3: Add the AI Qualification Node (20 Minutes)
This is the core of the agent — the AI step that reads the raw form submission and extracts structured data from it. Add an "OpenAI" node (or "HTTP Request" node if using Claude API).
- Add an "OpenAI" node → connect it to the Webhook node
- Model: gpt-4o-mini (cheapest, fast, accurate for extraction tasks — roughly ₹0.05 per lead)
- Set "Resource" to "Chat" and "Operation" to "Message" → paste the following system prompt:
System Prompt (copy this exactly):
User Prompt (this pulls in the live form data):
- Add a "Code" node after the OpenAI node to parse the JSON response: const response = JSON.parse($input.first().json.message.content); return [{ json: response }];
- Run a test — you should see clean structured output: name, score, budget_inr, urgency, intent_summary
Step 4: Log Qualified Leads to Google Sheets (5 Minutes)
- Create a Google Sheet with columns: Timestamp · Name · Phone · Email · Budget (INR) · Urgency · Score · Intent · Score Reason
- In n8n, add a "Google Sheets" node → connect to Google account → select "Append Row" operation
- Select your spreadsheet and sheet name → map columns: Name → {{ $json.name }}, Score → {{ $json.score }}, Budget → {{ $json.budget_inr }}, etc.
- For Timestamp, use: {{ new Date().toLocaleString("en-IN", {timeZone: "Asia/Kolkata"}) }}
Step 5: Send the Automatic WhatsApp Reply (15 Minutes)
This is what the lead actually experiences — a personalised reply within 60 seconds. Use Twilio (easiest setup) or WATI (cheaper at scale for Indian businesses). For testing, Gmail works as a fallback.
Option A: WhatsApp via Twilio
- Sign up at twilio.com → get your Account SID and Auth Token from the dashboard
- In n8n, add an "HTTP Request" node → Method: POST
- URL: https://api.twilio.com/2010-04-01/Accounts/YOUR_SID/Messages.json
- Authentication: Basic Auth → Username: your Account SID, Password: your Auth Token
- Body (Form Data): From = whatsapp:+14155238886 (Twilio sandbox number) · To = whatsapp:+91{{ $json.phone }} · Body = the message below
WhatsApp message template (paste into the Body field):
Option B: Gmail Fallback (Simpler, No WhatsApp Setup Needed)
- Add a "Gmail" node → connect your Google account → Operation: Send Email
- To: {{ $json.email }} · Subject: "We received your enquiry — [Your Business]" · Body: same message text as above
Step 6: Alert Your Team Only for Hot Leads
You do not want to be pinged for every Cold enquiry. Add an IF node to filter.
- Add an "IF" node after the Google Sheets node
- Condition: {{ $json.score }} equals "Hot"
- True branch → add a "Gmail" or "Slack" node to alert your sales team with the full lead details
- False branch → leave empty (no alert for Warm/Cold leads — they are in the sheet)
Sales alert email body:
Step 7: Test, Activate, and Go Live
- Run the workflow manually with 5 test submissions — vary them: one hot lead (high budget, urgent), one warm, one vague/cold
- Check your Google Sheet — all 5 rows should appear with correct scores
- Verify the WhatsApp/email reply arrives on your test phone number within 60 seconds
- Confirm the sales alert only fires for the Hot test lead
- Click "Activate Workflow" (toggle in the top right of n8n) — the agent is now live 24/7
Real Cost Breakdown for This Workflow
- n8n Cloud (Starter): ₹1,500/month — handles up to 2,500 workflow runs
- OpenAI API (gpt-4o-mini): ~₹4 per 1,000 leads — effectively free at SMB volume
- Twilio WhatsApp: ₹0.65 per conversation (first 1,000/month free on sandbox)
- Tally form: Free forever for basic forms
- Total for 500 leads/month: ~₹1,900. A human doing this job costs ₹25,000–₹35,000/month.
The 4 Mistakes That Kill Indian SMB AI Agents
- Using US-centric prompts: Always specify "Indian business context, INR currency, IST timezone, Indian communication norms" in your system prompt. GPT defaults to USD and EST otherwise.
- No JSON parsing: The AI returns text that looks like JSON but is not parsed. Always add a Code node to parse the AI output before using it downstream.
- Building complex agents before validating simple ones: Get 50 leads through the basic version first. Only add complexity (multi-step follow-ups, CRM integration) once the core works.
- No error handling: Add an "Error Trigger" workflow in n8n that emails you if any run fails. Agents break silently otherwise — you will not know for days.
What to Build Next
Once your lead qualification agent is running and you have validated it for 2–3 weeks, the next highest-ROI additions are:
- Day 3 follow-up agent: If lead has not responded in 3 days, send a different message automatically
- Invoice follow-up agent: Monitors overdue payments and sends reminders (see our automation cost guide)
For understanding the full cost-benefit of automation vs. hiring, read our AI Automation vs Hiring in India breakdown.
- Customer support agent: Route and auto-answer support tickets (70% can be handled without a human)
Frequently Asked Questions
Do I need to know coding to build this?
No. The only technical step is the Code node in Step 3 — you are copying and pasting one line: JSON.parse($input.first().json.message.content). Everything else is drag-and-drop. If you can use Excel, you can build this.
What if my leads do not provide structured info (budget, timeline)?
The AI handles this. The prompt instructs it to infer urgency and intent from unstructured text. "hi need help asap for my factory" will score as High urgency even without a budget. The system prompt tells it to return null for unknown fields rather than guessing incorrectly.
How do I get WhatsApp Business API access in India?
The fastest routes: (1) Twilio sandbox — live in 15 minutes, free, but sends from a shared number. (2) WATI.io — Indian-focused provider, ₹1,999/month, your own WhatsApp number, takes 1–3 days to verify. (3) Interakt — similar to WATI, ₹999/month. For the first month of testing, use Twilio sandbox or Gmail. Upgrade to WATI once the agent is validated.
If you want this workflow built and deployed for your business without spending time on the setup, SochLabs builds production-ready AI agent stacks for Indian SMBs. See our process or book a free discovery call.