Whatsapp Link 📱
Simple node for connecting Node-Red to Whatsapp 📱
Currently in developing mode, Continous updated may encounter. 😅 Missing Nodes ? : To avoid long names, Node names are updated. If some node are missing after update please re-configure the update node, it will not change again.
To Connect with Whatsapp
- Deploy whatsapp admin node (along with whatsappLink node).
- whatsappLink node will initilize, connect with whatsapp and generate a QR code below the Admin Node and in terminal also.
- Scan the QR code with your Whatsapp Mobile App (Go to settings > Linked device > Scan & Connect).
- Done - Whatsapp Connected.
It will create a Whatsapp Web instance in your machine and store your session locally in Node-RED. All session is store in .wwebjs_auth folder
Nodes
-
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.payloaddestroy Close the client and destroy the whatsapp connection. restart Restart the whatsapp connection. logout Simply log you out and close the session.
Output Description statusprovide status on msg.payloadfor all and each input mentioned in above table.Connecting.. When whatsapp attempting to connect. QR Code (image) when QR code is generated. This method can also be used to get QR Code (image) generated by whatsapp. Connected When whatapp is sucessfully connected. Group Joined or Removed msg.paylod: Group Name.
msg.type: joined / Removed from group.
msg.notification: Complete notification.
msg.chat: Complete Group Details. -
Chats In : Node to recive all messages send to connected number.
- Simply deploy the node and wait for green (connected) status.
- After succesfully connection, Node is able to recive all messages.
Output Description msg.paylodRecived message msg.fromSender Number msg.chatIDChat ID of Group chat / Personal chat msg.messageComplete message object.
Some extra details for advance users -
Chats Out : As simple as mention on name, node will send
msg.payloadrecived at input to the number mentioned in node.Don't forget to mention international dialing code befor your number. Number must be in format like
+11 99999 99999without any space. -
Group Message : Whatsapp Group Node to send message in a Group.
The node will send recived
msg.payloadto a group chat.
Issues & Updates
Issues and Suggestions are welcome here.
Ver-0.1.21: Group Message Node added.Ver-0.1.23: Nodes are formatted correctly and names are updated.- Working on QR Code to directlly avilable in run time on Whatsapp-Admin-Node.
Future Nodes
Currently working on more Whatsapp Node and will be avilable soon -
- Group Message Node (Working).
- Chat Reply node.
- Instruction (smart) Reply Node.
Complete detail for Nodes will also be updated as soon as possible.
Please don`t try to spam with your personal Number, Suspicious activities might be tracked by whatsapp.
Thanks to bear with me