Node-RED Integration
Use Node-RED for visual WhatsApp automation with open-wa nodes.

Node-RED Integration
Node-RED is a low-code visual automation tool. The open-wa Node-RED contribution lets you build WhatsApp flows visually without writing code.
What Is Node-RED
Node-RED is a flow-based programming tool where you connect nodes together to create automations. The open-wa contribution adds WhatsApp-specific nodes for sending, receiving, and managing sessions.
Installation
Install the Node-RED contribution:
npm install @open-wa/node-red-contrib-wa-automateOr install through the Node-RED palette manager by searching for @open-wa/node-red-contrib-wa-automate.
Available Nodes
Send Node
Send WhatsApp messages through the flow:
- Text messages
- Images and media
- Location
- Contact cards
- Buttons and lists
Configure the target chatId and message content in the node properties.
Receive Node
Receive WhatsApp messages as flow input:
- Incoming messages trigger the flow
- Message payload includes sender, body, type, and metadata
- Filter by chat type (group vs direct)
Session Node
Manage WhatsApp session lifecycle:
- Start and stop sessions
- Monitor session state
- Handle authentication
Media Node
Handle media operations:
- Download media from messages
- Process images and documents
- Upload media for sending
Example Flows
Echo Bot
- Add a Receive node to capture incoming messages
- Connect it to a Send node
- Configure the Send node to reply to the same chatId with the message body
This creates a simple echo bot that repeats any message it receives.
CRM Integration
- Receive node captures incoming messages
- Function node formats the data
- HTTP Request node sends the data to your CRM API
- Response node sends a confirmation back to WhatsApp
Conditional Routing
- Receive node captures messages
- Switch node routes based on message content or sender
- Different paths handle different message types
- Each path sends an appropriate response
Connecting to Easy API
The Node-RED nodes connect to a running Easy API instance:
- Start the Easy API:
npx @open-wa/wa-automate --port 8080 - Configure the Node-RED nodes with the API URL and key
- Deploy your flow
Troubleshooting
Connection Issues
- Verify the Easy API is running on the configured port
- Check the API key matches
- Ensure the session is authenticated
Message Not Sending
- Check the chatId format (phone number plus @c.us)
- Verify the session is connected
- Check Node-RED logs for error details
Session Disconnected
- The Session node can detect disconnection
- Configure auto-reconnect in the node settings
- Monitor session state in the Easy API dashboard
Related
- Easy API quick start - Start the API
- Integrations overview - Choose the right integration
- Webhooks for business - Alternative integration pattern

Was this helpful?
Wally and his cute companion coffee mug are coding day and night to keep this up-to-date!
