WhatsApp Leads for CRM (Cloud API)
Turn WhatsApp conversations into CRM leads: signed Cloud API webhooks, contacts and leads created from incoming messages, replies inside the 24-hour window and approved templates outside it.
What it does
When a customer writes to your WhatsApp business number, Odoo finds or creates the contact, opens a lead for your sales team (or adds to the open one) and posts the message in the lead's chatter.
Your salespeople answer from the lead. Odoo enforces WhatsApp's rules on the server: a free reply only within 24 hours of the customer's last message to that number, otherwise an approved template, and templates only to contacts with a recorded opt-in.
Every webhook must be signed with your app secret (X-Hub-Signature-256); retried deliveries are recognised and never posted twice. Sent messages show sent, delivered, read or failed.
Demo video
The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube
Features
| Feature | What it does |
|---|---|
| Leads from WhatsApp | Contact found by number, phone or business-scoped user id, or created; the open lead reused, or a new one for your team. |
| Signed webhooks | HMAC-SHA256 of the body with your app secret; unsigned or wrongly signed calls are refused before anything is read. |
| No duplicates | Meta retries webhooks for days; each message is recorded once by its message id. |
| 24-hour window | Free replies only while the window the customer opened is open, checked on the server for that contact and number. |
| Approved templates | Read from your account with their placeholders; paused, rejected or removed templates cannot be sent. |
| Opt-in | Recorded on the contact with date and user; required for template messages. |
| Delivery status | Sent, delivered, read or failed with WhatsApp's error code and a note on the lead. |
| History | One row per call and webhook; tokens and secrets visible to administrators only, never logged. |
Setup
- Install the module. In Odoo: CRM > Configuration > WhatsApp > Numbers > New.
- Enter the Phone Number ID and WhatsApp Business Account ID (App Dashboard > WhatsApp > API Setup), a system user Access Token and your app's App Secret (App settings > Basic). Click Test Connection, then Sync Templates.
- In the App Dashboard, configure the webhook: Callback URL and Verify token as shown on the number in Odoo, and subscribe to the messages field. Odoo must be reachable over https.
- Choose the sales team, salesperson and tags for new conversations.
Requirements
- Odoo 17, 18, 19 or 20, Community edition
- Odoo apps: CRM, Discuss
- Python requests on the Odoo server
What it does not do
- Media download and sending (images, documents), interactive messages and media-header templates.
- Creating or editing templates in Odoo (do it in WhatsApp Manager, then sync).
- Opt-out keywords: withdraw the opt-in on the contact.
- It does not need or change Odoo's own WhatsApp app.
Tests
| Odoo | Tests passed | Last run |
|---|---|---|
| 17 | 58 | |
| 18 | 58 | |
| 19 | 58 | |
| 20 | 58 |
The tests ship with the module source, so you can run them on your own server.
Questions
Why can't I send a free text?
WhatsApp allows free replies only within 24 hours of the customer's last message to your number. After that, send an approved template.
Can someone post fake messages into my CRM?
Only calls signed with your app secret are accepted, and only for the numbers that secret belongs to.
Several numbers or companies?
Yes: one record per number, each with its company, team and salesperson.
Usernames instead of phone numbers?
Contacts are also matched by the business-scoped user id Meta sends for users who hide their number.
Questions about the module?
Tell us your account and Odoo version. We reply within one business day.