Node-RED_Contrib Whatsapp Link (node)
Node-RED_Contrib Whatsapp Link (node)
Node-RED
home
about
blog
documentation
forum
flows
github
Search library
node-red-contrib-whatsapp-link 0.1.36A
Node to send and receive whatsapp messages in groups and chats. | No third party APIs
Their is lite version also avilable in it. Totally different from Whatapp-Web, Whatsapp-Lite (Beta Mode) works on Web-
Sockets only, It might work for you also.
https://flows.nodered.org/node/node-red-contrib-whatsapp-link 1/6
14/3/23, 7:11 node-red-contrib-whatsapp-link (node) - Node-RED
It will create a Whatsapp Web instance in your machine and store your session locally in Node-RED. All data are store in
users <user>/.node-red/Whatsapp-Link folder. Near you Node-Red's settings.js file.
Nodes
1. Whatsapp Admin : Node used for first time users to connect with whatsapp and other admin related tasks.
Admin Node generate QR Code just below the node for easy connection with whatsapp.
Inputs Description
test Checks the current status of whatsapp and output the same in msg.payload
destroy Close the client and destroy the whatsapp connection.
restart Restart the whatsapp connection.
logout Simply log you out and close the session.
Output Description
status provide status on msg.payload for all and each input mentioned in above table.
Connecting.. When whatsapp attempting to connect.
when QR code is generated. This method can also be used to get QR Code (image)
QR Code (image)
generated by whatsapp.
Connected When whatapp is sucessfully connected.
msg.paylod : Group Name.
Group Joined or msg.type : joined / Removed from group.
Removed msg.notification : Complete notification.
msg.chat : Complete Group Details.
Simply deploy the node and wait for green (connected) status.
After succesfully connection, Node is able to recive all messages.
Output Description
msg.paylod Recived message
msg.from Sender Number
msg.chatID Chat ID of Group chat / Personal chat
Complete message object.
msg.message
Some extra details for advance users
Their are many other events options avilable along with message event in Chats-In Node. For details refer
documentation for Chats-In Node.
https://flows.nodered.org/node/node-red-contrib-whatsapp-link 2/6
14/3/23, 7:11 node-red-contrib-whatsapp-link (node) - Node-RED
3. Chats / Group Out : As simple as mention on name, node will send msg.payload recived at input to the number
mentioned in node. A-reply-to-All.json example is avilable in examples to import.
Input Description
msg.image Base64 (encoded image)
msg.payload Image Caption
msg.toNumber Reciver number (if number not provided in node)
Don't forget to mention international dialing code befor your number. Number must be in format like +11 99999
99999 without any space.
OR
Leave the Number blank and provide the number along with paylod at msg.toNumber with international code. To send
message on multiple contacts an Arrar of number can be passed on msg.toNumber like msg.toNumber =
["+1199999999", "+12990000099", "+1311111111"].
TemplateButton combination of link button, Call button and Normal buttons. Your msg.paylod should look similar
to--
msg.payload = {
text: "Hi it's a template message by Node-RED 👍 to Test",
footer: 'Hello I am footer of message.',
templateButtons: [
{index: 1, urlButton: {displayText: '⭐ Vist Node-RED', url: 'https://nodered.org/'}},
{index: 2, callButton: {displayText: 'Call me!', phoneNumber: '+1 (234) 5678-901'}},
{index: 3, quickReplyButton: {displayText: 'Click me I am Button', id: 'I-am-button-id-without-space'}},
{index: 4, quickReplyButton: {displayText: '🖱️ Sample Button 2', id: 'button-2-was-clicked'}}
]
}
List Message combination of link button, List button and Selectors. Your msg.paylod should look similar to--
msg.payload = {
text: "This is a list",
footer: "nice footer, link: https://google.com",
title: "Amazing boldfaced list title",
buttonText: "Required, Tap to see List",
sections : [{
title: "Section 1",
rows: [
{title: "Option 1", rowId: "option1"},
{title: "Option 2", rowId: "option2", description: "This is a description"}
]},
{
title: "Section 2",
rows: [
https://flows.nodered.org/node/node-red-contrib-whatsapp-link 3/6
14/3/23, 7:11 node-red-contrib-whatsapp-link (node) - Node-RED
{title: "Option 3", rowId: "option3"},
{title: "Option 4", rowId: "option4", description: "This is a description V2"}
]
}]
}
Yes its lot require for buttons, A node will come soon to minimize these effors. You may direct import these test buttons
from the Node Examples.
5. Reply Node : In Beta mode. (Chats-out Node can be used instead of reply node)
Node will reply(the payload) on each message starting with string mentioned in instruction coloum or defaults !red. Avoid
using it please.
Future Nodes
Currently working on more Whatsapp Node and will be avilable soon -
Please don`t try to spam with your personal Number, Suspicious activities might be tracked by whatsapp.
Node Info
Version: 0.1.36A
Updated 3 weeks, 2 days ago
License: ISC
Rating: 4.8 6
View on npm
View on GitHub
View Scorecard 10 2
Actions
Rate:
Downloads
Nodes
https://flows.nodered.org/node/node-red-contrib-whatsapp-link 4/6
14/3/23, 7:11 node-red-contrib-whatsapp-link (node) - Node-RED
admin
chats-in
chats-out
group-out
reply
whatsappLink
Keywords
node-red
whatsapp
message
whatsapp Group
whatsapp Chat
Maintainers
raweee
If you have a concern about the contents of this module, please let us know. For example, if you believe it contains
unsuitable or inappropriate material.
This is not a way to get help with this module. For that, please contact its maintainers directly or post to the Node-RED
Forum.
Cancel Report
GitHub
npm
Documentation
APIs
Flow Library
About
Code of Conduct
Community
Blog
Twitter
Forum
Slack
https://flows.nodered.org/node/node-red-contrib-whatsapp-link 5/6
14/3/23, 7:11 node-red-contrib-whatsapp-link (node) - Node-RED
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered
trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and
Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or
registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by
them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List |
Cookie Policy | Cookie Settings
https://flows.nodered.org/node/node-red-contrib-whatsapp-link 6/6