DEV Community

Cover image for Building a Zero-Touch Lead Pipeline: WhatsApp CRM Auto Follow-Up
wapphub
wapphub

Posted on

Building a Zero-Touch Lead Pipeline: WhatsApp CRM Auto Follow-Up

Most WhatsApp automation tutorials stop at "send a bulk message." This one goes further: a full zero-touch pipeline where an inbound WhatsApp message from a lead automatically updates your CRM, notifies your rep, and triggers a follow-up sequence — without anyone touching a keyboard.

Here's the complete architecture and how to build it.

The full pipeline

Lead sends WhatsApp message
        ↓
Sync Chat (Chrome extension) detects new message
        ↓
Fires webhook to n8n
        ↓
n8n: Match contact by phone → Update CRM stage
        ↓
n8n: Keyword check → "pricing" / "interested" / "buy"
        ↓ (if keyword matched)
n8n: Create follow-up task + notify rep on Telegram
        ↓
n8n: After 24hr delay — send follow-up message via WappHub
        ↓
Log entire thread back to CRM contact record
Enter fullscreen mode Exit fullscreen mode

Total manual intervention required: zero, unless the rep chooses to jump in.

Tools used

Tool Role
WappHub Sync Chat WhatsApp Web → webhook, live CRM sync
n8n (self-hosted or cloud) Workflow automation engine
Any CRM with REST API HubSpot, Zoho, Pipedrive, or custom
Telegram Bot Rep notifications
WappHub Bulk Sender Automated follow-up WhatsApp message

Step 1: Configure the Sync Chat webhook

Install the Sync Chat Chrome extension, open settings, and paste your n8n webhook URL. Every new WhatsApp Web message will POST to that endpoint in real time.

Step 2: n8n webhook trigger node

// Incoming payload from Sync Chat
{
  "event": "message_received",
  "contact": {
    "name": "Priya Mehta",
    "phone": "+919876543210"
  },
  "message": {
    "text": "Hi, I want to know more about your pricing",
    "direction": "inbound",
    "timestamp": "2024-07-03T11:14:00Z"
  }
}
Enter fullscreen mode Exit fullscreen mode

Step 3: Match contact + update CRM

// n8n Function node — match by phone, update deal stage
const phone = $input.item.json.contact.phone;
const messageText = $input.item.json.message.text.toLowerCase();

const keywords = ["pricing", "interested", "buy", "purchase", "plan", "demo"];
const isHotLead = keywords.some(k => messageText.includes(k));

return {
  phone,
  isHotLead,
  newStage: isHotLead ? "Hot Lead" : "Engaged",
  note: $input.item.json.message.text
};
Enter fullscreen mode Exit fullscreen mode

Then pass this to an HTTP Request node calling your CRM's REST API to update the contact's deal stage and log the message as a note.

Step 4: Rep notification via Telegram

// Telegram message body (n8n HTTP node)
const msg = `
🔥 Hot Lead Alert
Name: ${contact.name}
Phone: ${contact.phone}
Message: "${messageText}"
CRM stage updated to: Hot Lead
`;
Enter fullscreen mode Exit fullscreen mode

Rep gets a Telegram notification with full context within seconds of the lead's message.

Step 5: Automated 24hr follow-up

Use an n8n Wait node (24 hours) followed by a WappHub API call to send a personalized follow-up WhatsApp message if no reply has been logged in the CRM in that window.

// Check if reply exists before sending follow-up
const lastActivity = await getCRMLastActivity(contact.phone);
const hoursSinceActivity = (Date.now() - new Date(lastActivity).getTime()) / 3600000;

if (hoursSinceActivity >= 24) {
  // Trigger follow-up message via WappHub
  await sendWhatsAppFollowUp(contact.phone, contact.name);
}
Enter fullscreen mode Exit fullscreen mode

What this looks like end-to-end

  1. Lead messages: "Hi, I want to know about pricing"
  2. CRM auto-updates to "Hot Lead" within 3 seconds
  3. Rep gets Telegram notification with full context
  4. If no reply in 24 hours → automated follow-up WhatsApp sends
  5. Every message in the thread is logged to CRM automatically ## Setup time estimate
Step Time
Install + configure Sync Chat 10 min
n8n webhook + CRM update nodes 30 min
Telegram notification node 10 min
Follow-up delay + send logic 20 min
Total ~70 minutes

Cost: Sync Chat from ₹149/mo. n8n self-hosted is free.


Tools used: WappHub Sync Chat for live WhatsApp → CRM sync and webhook support. n8n for workflow automation. Full trial available.

Top comments (0)