# How to build a WhatsApp lead qualification funnel

> How to qualify leads automatically on WhatsApp with the Business API: question flow, buttons, scoring, human handover, the 24-hour rule and webhook security.

A **WhatsApp lead qualification funnel** asks a new lead a few questions on WhatsApp, scores the answers, and hands promising leads to a salesperson while nurturing the rest. [Divergit](/ventures/divergit/) builds these for B2B clients with the WhatsApp Business Cloud API and n8n or Make.com.

## 1. Design the questions

Keep it to **three to five questions**, each answerable with a tap:

1. What do you need? (product A, product B, not sure)
2. When do you need it? (this week, this month, just researching)
3. What is your budget range?
4. Where are you located?

Use **reply buttons** (up to three per message) or a **list message** (up to ten rows) instead of free text. Taps are faster for the lead and easier to score.

## 2. Score the answers

Give points per answer, for example "this week" = 3, "this month" = 2, "researching" = 0. Above a threshold, the lead is **hot**; below, it goes to a nurture sequence.

## 3. Hand over to a human

For hot leads, post a summary to the sales team (CRM, Slack or a WhatsApp group) with the answers and a link to the chat, and tell the lead a person will reply shortly. The best funnels make this handover feel seamless.

## 4. Respect the 24-hour window

WhatsApp lets a business send free-form messages only within **24 hours of the customer's last message**. After that, you can only send **pre-approved template messages**. Plan follow-ups as templates and get them approved early.

## 5. Secure the webhook

WhatsApp sends incoming messages to your webhook. Check the **X-Hub-Signature-256** header, an HMAC-SHA256 of the request body using your app secret, before trusting any message:

```python
import hmac, hashlib

def is_valid(body: bytes, header: str, app_secret: str) -> bool:
    expected = "sha256=" + hmac.new(app_secret.encode(), body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, header or "")
```

## 6. Measure

Track how many leads start, finish, score hot, and turn into calls. The question with the biggest drop-off is the first one to rewrite.
