WhatsApp + n8n
A native n8n node, not an HTTP request. Pick an operation from a dropdown, map your fields, done. Every API endpoint is covered, plus a trigger for incoming messages.
Set It Up (5 minutes)
Install the node
In n8n go to Settings → Community Nodes → Install and enter n8n-nodes-whatsapp-retentionstack. Self-hosting? Run npm i n8n-nodes-whatsapp-retentionstack inside ~/.n8n/nodes, then restart n8n.
Add your API key
Sign in at /start (free tier, no credit card), link your number, and copy its session token (ch_live_...). In n8n, create a "WhatsApp by Retention Stack API" credential and paste it in.
Pair your phone once
Add the WhatsApp by Retention Stack node, pick Session → Start, then Session → Get QR Code with format Binary. Scan the PNG from WhatsApp → Linked Devices. Sessions stay connected after that.
Send a message
Set the node to Message → Send Text. Map Chat ID to the phone number from your trigger and write your text. Every other endpoint is in the same dropdown: images, files, OTPs, polls, groups, channels.
React to incoming messages
Add the WhatsApp by Retention Stack Trigger node and pick the events you want. It registers a webhook on your session when the workflow activates and removes it when you deactivate. Running n8n on your own computer? WhatsApp cannot reach localhost, so expose n8n through a tunnel and set WEBHOOK_URL to its public address first.
Example: Send an OTP
Message → Send Text, with fields mapped from a Webhook trigger:
Session: default
Chat ID: {{ $json.body.phone }}
Text: Your login code is {{ $json.body.otp }}. Valid for 5 minutes.What the Node Covers
Operation names in the node picker match the names in the API docs, and each operation's tooltip shows its endpoint.
What People Build With This
Ready-Made Workflows
In n8n, choose Import from URL, paste a workflow link, then select your WhatsApp credential.
- Order alert workflow
Your shop posts an order to a webhook and the customer gets a WhatsApp message.
- Form to WhatsApp message workflow
A new row in the Google Sheet your form writes to sends a message to the number in that row.
- Keyword auto-reply workflow
Someone sends a keyword such as HOURS and gets your answer. Groups and your own messages are ignored.
Package & Source
n8n-nodes-whatsapp-retentionstack on npm
MIT licensed. No runtime dependencies. Works on self-hosted n8n today.
Get Your API Key
Free tier, no credit card. Install the node, paste the key, and your first workflow is live in minutes.
Start free