how to build WhatsApp AI chatbot with n8n and integrate CRM
By Catalina Jaramillo · AI Commerce & Revenue Operations Consultant · 2026-11-22
You can automate WhatsApp conversations by routing incoming messages through n8n, enriching them with an AI model such as OpenAI, and pushing the results into any CRM via its API. The workflow runs on a webhook, calls the AI, then updates contacts, deals or tickets in real time.
What tools do I need to start?
The stack is intentionally lightweight: n8n provides the orchestration, the WhatsApp Business API (or a Twilio sandbox) delivers the messages, an AI provider generates replies, and the CRM receives the structured data.
- WhatsApp Business API access – either directly or through Twilio/MessageBird
- n8n instance – self‑hosted or n8n.cloud
- OpenAI API key (or another LLM provider)
- CRM API credentials (HubSpot, Zoho, GoHighLevel, etc.)
- A server or cloud function to host the webhook (e.g., Render, Railway)
- Basic JSON knowledge for mapping fields
How do I configure n8n to receive WhatsApp messages?
n8n works with webhooks, so the first step is to expose an endpoint that the WhatsApp provider can call when a user sends a message.
- Create a new workflow in n8n and add a **Webhook** node; copy the generated URL.
- In the WhatsApp provider console, set the inbound webhook URL to the n8n endpoint.
- Add a **Set** node to extract the sender phone number and the message text from the payload.
- Optionally, use a **Function** node to normalize emojis or strip formatting.
- Test the flow by sending a WhatsApp message to the business number; the webhook should fire and show the payload in n8n.
Carolina, Catalina's AI agent, reviews your business, shows which system solves it and what it would cost. If there is a fit, she books a call with Catalina.
Tell Carolina about your case →How can I add AI to generate responses?
Once the message is captured, you call an LLM to produce a reply that feels natural and respects your brand tone.
- Add an **HTTP Request** node that calls the OpenAI Chat Completion endpoint.
- Build a prompt that includes the user message and any relevant context (e.g., product catalog, FAQ).
- Set **temperature** low (0.2‑0.4) for consistent answers, or higher for creative replies.
- Capture the AI response in a **Set** node; store it as `aiReply`.
- Add a **Conditional** node to detect fallback scenarios (e.g., low confidence) and route to a human agent if needed.
How do I push conversation data to my CRM?
With the AI reply ready, the next step is to synchronize the interaction with your CRM so sales or support teams have a full history.
- Map the WhatsApp phone number to the CRM contact record (create or update).
- Use the CRM’s **Upsert** endpoint to avoid duplicates – most platforms accept an email or phone as an external ID.
- Create a **Deal** or **Ticket** node that records the latest message, AI reply, and a status flag (e.g., "pending", "handled").
- Add tags or custom fields to indicate the channel (WhatsApp) and the automation source (n8n).
- Optionally, schedule a **Delay** node to send a follow‑up message after a defined interval.
What investment should I expect for this automation?
Catalina’s pricing model is transparent and based on the scope of work. For a typical WhatsApp‑AI‑CRM integration you can choose the package that matches your maturity level.
- Strategic diagnosis with Catalina – USD 490 (one‑time).
- Automation Express (configuration of n8n workflow, AI prompt, CRM mapping) – USD 500 – 1,500.
- Revenue Agent Sprint (full setup + 30 days of monitoring) – USD 2,500 configuration + USD 750/month.
- If you need a dedicated sales‑pipeline system with agenda and CRM sync – USD 4,500 – 6,000 configuration + USD 1,200/month.
- Ongoing optimization and continuous growth – USD 1,000 – 2,000 per month.
How would Catalina approach this for my business?
Catalina starts with a short diagnostic (USD 490) to understand your current WhatsApp volume, CRM structure and AI use cases. She then designs a minimal‑viable workflow in n8n, implements it on a sandbox, and defines clear KPIs – messages handled, conversion rate, and average response time. After a 2‑week pilot, results are compared with the baseline and the workflow is refined. The final hand‑off includes documentation, a training session for your team, and optional monthly monitoring (USD 750‑1,200).
If you want a personalized plan, schedule a quick chat with Carolina, Catalina’s AI commercial agent, who can book a slot in real time.
FAQ
Can I run this workflow on the free tier of n8n?
Yes, the free tier allows up to 2,000 executions per month, which is enough for small‑scale pilots. If you exceed that limit, upgrading to a paid plan removes the cap and adds priority support.
Do I need the official WhatsApp Business API, or is Twilio enough?
Twilio’s sandbox provides the same webhook mechanics as the official API, so you can start there. For production at scale, the native WhatsApp Business API gives you higher throughput and branding control.
How long does a typical implementation take?
From the diagnostic to a live pilot, most clients see results in 2‑3 weeks. The timeline depends on CRM complexity and whether you already have API credentials.
What kind of data can I sync with the CRM?
You can push the phone number, message text, AI‑generated reply, timestamps, and custom tags. Many CRMs also let you attach the full conversation thread to a contact or deal record.
Do I need to write code to make this work?
No. n8n’s visual nodes handle the HTTP calls, data mapping and conditional logic. Only a small JSON snippet is needed for the OpenAI prompt, which you can edit directly in the node.
Carolina, Catalina's AI agent, reviews your business, shows which system solves it and what it would cost. If there is a fit, she books a call with Catalina.
Tell Carolina about your case →