Member-only story
Create a WhatsApp personal account bot using Node-RED and link node
I’ll show you how easily you can create a highly customizable bot for your personal WhatsApp account 😉.
Initial Node-RED setup
Let’s bring the Node-RED alive if you didn’t already by using the “Install NodeJS, NPM, and Node-RED on Raspberry Pi OS Lite 64-bit” then you can install it fast and easily by using Docker.
You can also deploy Node-RED on IBM Cloud, Horeku, Fly.io, or whatever is capable of hosting web apps, Docker containers, and Linux servers.
Install the plugins
This is the fastest way you can create a personal WhatsApp is by using Node-RED and the “node-red-contrib-whatsapp-link” node.
This extension is still in beta development by the creator and might crash Node-RED. Use RedBot with a WhatsApp Business account if you want something more stable, but harder to set up and not personal use friendly.
You can do this from the 🟩 pallete manager inside the Node-RED:

Let’s test it
Create a simple flow containing 🟨 Whatsapp type nodes of “admin”, “chat — in”, and “chat — out” and two function nodes 🟧 “change” and “template”.

Now let’s configure the WhatsApp nodes as bellow.
Double click each node and for:
- “WA Admin”: 🟦 create a new “whatsappLink” of type Whatsapp Lite;
- “Chats in”: 🟫 select the created link as “Client”, “message.upsert” as “Socket Event” and “message” as “Web Event”;
- “Chats Out”: 🟫 the same as above for “Client”;