Official n8n community nodes for OpenWA - Self-hosted WhatsApp API Gateway.
This package provides two nodes:
- OpenWA - Execute operations like sending messages, checking contacts, managing webhooks
- OpenWA Trigger - Start workflows when WhatsApp events occur (incoming messages, session status changes)
- Go to Settings > Community Nodes
- Select Install
- Enter
@rmyndharis/n8n-nodes-openwaand agree to the risks - Restart n8n
cd ~/.n8n/nodes
npm install @rmyndharis/n8n-nodes-openwaYou need to configure OpenWA API credentials:
| Field | Description |
|---|---|
| Server URL | Your OpenWA server URL (e.g., https://wa.example.com) |
| API Key | API key from your OpenWA dashboard |
Execute operations on your OpenWA server.
| Resource | Operation | Description |
|---|---|---|
| Session | Get Status | Get the status of a session |
| Session | List All | List all sessions |
| Message | Send Text | Send a text message |
| Message | Send Image | Send an image (URL or Base64) |
| Message | Send Document | Send a document/file |
| Message | Send Location | Send a location pin |
| Contact | Check Exists | Check if a number is on WhatsApp |
| Contact | Get Info | Get contact information |
| Webhook | Create | Create a webhook |
| Webhook | Delete | Delete a webhook |
- Add an OpenWA node
- Select Message resource and Send Text operation
- Configure:
- Session ID:
default(or your session name) - Chat ID:
628123456789@c.us - Message:
Hello from n8n!
- Session ID:
Start workflows when events occur on your WhatsApp session.
| Event | Description |
|---|---|
message.received |
New incoming message |
message.sent |
Message successfully sent |
session.connected |
Session authenticated |
session.disconnected |
Session lost connection |
session.qr_ready |
QR code generated for scanning |
- Add an OpenWA Trigger node
- Configure:
- Session ID:
default - Events:
Message Received
- Session ID:
- Connect to an OpenWA node to send a reply
{
"event": "message.received",
"timestamp": "2024-01-15T10:30:00Z",
"sessionId": "default",
"data": {
"messageId": "3EB0F5A2B4C...",
"chatId": "628123456789@c.us",
"from": "628123456789@c.us",
"body": "Hello!",
"type": "text",
"timestamp": 1705312200
}
}[OpenWA Trigger] → [IF: Check keyword] → [OpenWA: Send Text]
[OpenWA Trigger: session.disconnected] → [Slack: Send Alert]
[OpenWA Trigger] → [Google Sheets: Append Row] → [OpenWA: Send Text]
# Install dependencies
npm install
# Build
npm run build
# Watch mode
npm run dev
# Lint
npm run lint
# Format
npm run formatMIT