Skip to main content

Sending messages via Node Red

1. First, let's add the inject function

Node-RED flow editor with an inject node added

2. Next, in the WhatsApp tab, select the "Send a text" function

Node-RED inject node connected to WhatsApp Send a Text node

3. After adding a function to the working field, double-click on it. In the account tab, add your account using the keys that we will send you after the connection is completed. In the Destination tab, enter the recipient's phone number, in the "Message" tab - the text of the template message.

Node-RED WhatsApp account configuration with App ID and App Secret fields
Node-RED Send a Text node settings with account, destination and message

4. Next, add the Debug tab

Node-RED flow with a debug node after WhatsApp Send a Text

5. After adding it to the working field, double-click on it and set the settings, as in the screenshot

Node-RED debug node settings for the full message object

6. Then click "Expand" at the top right.

Node-RED flow editor with Deploy button highlighted

7. To send a message, use the square next to the "Inject" function

Node-RED inject node button used to start the message flow