15 - n8n Integration
Use MultiWA with n8n for powerful workflow automation.
Installation
n8n Community Nodes
npm install n8n-nodes-multiwa
Or install via n8n UI:
- Go to Settings → Community Nodes
- Click Install a community node
- Enter
n8n-nodes-multiwa - Click Install
Setup Credentials
- In n8n, go to Credentials → Add Credential
- Search for MultiWA API
- Enter:
- API Base URL:
http://localhost:3001/api - API Key: Your MultiWA API key
- API Base URL:
Available Nodes
MultiWA Node
Send WhatsApp messages with 7 operations:
| Operation | Description |
|---|---|
| Send Text | Send a text message |
| Send Image | Send an image with caption |
| Send Video | Send a video with caption |
| Send Document | Send a document/file |
| Send Location | Send a location pin |
| Send Contact | Send a contact card |
| Send Poll | Send a poll with options |
MultiWA Trigger
Receive WhatsApp events in real-time:
| Event | Description |
|---|---|
| Message Received | Incoming message |
| Message Sent | Outgoing message confirmation |
| Message Delivered | Delivery confirmation |
| Message Read | Read receipt |
| Connection Changed | Session status change |
Example Workflows
Auto-Reply Bot
- Trigger: MultiWA Trigger (Message Received)
- IF: Check if message contains "help"
- MultiWA Node: Send Text reply
[MultiWA Trigger] → [IF] → [MultiWA Send Text]
AI Customer Support
- Trigger: MultiWA Trigger (Message Received)
- OpenAI Node: Generate response
- MultiWA Node: Send Text reply
[MultiWA Trigger] → [OpenAI] → [MultiWA Send Text]
Order Notification
- Webhook: Receive order from e-commerce
- MultiWA Node: Send order confirmation
- MultiWA Node: Send invoice PDF
[Webhook] → [MultiWA Text] → [MultiWA Document]
Lead Capture
- Trigger: MultiWA Trigger (Message Received)
- Google Sheets: Add contact
- MultiWA Node: Send welcome message
[MultiWA Trigger] → [Google Sheets] → [MultiWA Send Text]
Node Configuration
Send Text
| Parameter | Description |
|---|---|
| Profile ID | WhatsApp profile to use |
| To | Recipient phone number |
| Text | Message content |
Send Image
| Parameter | Description |
|---|---|
| Profile ID | WhatsApp profile |
| To | Recipient |
| Image URL | Direct link to image |
| Caption | Optional caption |
Trigger
| Parameter | Description |
|---|---|
| Event | Event type to listen for |
| Profile ID | Filter by profile (optional) |
Tips
- Use expressions for dynamic content:
{{ $json.customer_name }} - Error handling: Add Error Trigger for failed messages
- Rate limiting: Add Wait node between bulk sends
- Logging: Use n8n's execution history