Node-RED node
WhatsApp + Node-RED
A palette node sends msg.payload as a WhatsApp message. Wire it after any sensor, MQTT topic or Home Assistant event to get alerts on your phone.
Setup
- 1
Install the node
In Node-RED: Manage palette → Install, search for node-red-contrib-whatsapp-retentionstack. Or run npm install node-red-contrib-whatsapp-retentionstack in ~/.node-red and restart.
- 2
Link a number and add the account
Sign in at /start, link your number, and copy a session token (ch_live_...). Drop a "whatsapp send" node, create an account config and paste the token. Leave Session as default.
- 3
Wire it up
Set To on the node, or pass msg.to. The message text is msg.payload. Errors such as a bad key or an unlinked number can be handled with a Catch node.
Function node before "whatsapp send"
msg.to = "14155550123";
msg.payload = `Temperature is ${msg.payload}°C in the server room`;
return msg;What people build with it
- Door or window sensor opened → message to your phone
- Temperature over a threshold → alert to a family group
- MQTT device offline → notification with the device name
- Home Assistant event via the HA nodes → WhatsApp message
Links
Get your API key
Free tier, no credit card. Link a number by QR code, then copy a session token from the console.
Get started free