Overview
The n8n integration allows you to use WhatsApp in your n8n workflows through community nodes. This enables powerful automation scenarios combining WhatsApp with hundreds of other services.n8n is a workflow automation tool that lets you connect apps and services together. Learn more at n8n.io.
Installation
Install via n8n Community Nodes
Package Information
- Package Name:
@aldinokemal2104/n8n-nodes-gowa - npm Registry: npmjs.com/package/@aldinokemal2104/n8n-nodes-gowa
- Repository: Based on GOWA (Go WhatsApp Web API)
Prerequisites
WhatsApp REST API Running
You need a running instance of the Go WhatsApp Web Multidevice REST API server to use the n8n nodes.
Configuration in n8n
Creating a Credential
- In your n8n workflow, add a WhatsApp node
- Click on Create New Credential
- Configure the credential with:
- API URL: Your WhatsApp REST API URL (e.g.,
http://localhost:3000) - Authentication (if enabled):
- Username and password from
APP_BASIC_AUTH
- Username and password from
- Device ID (if using multi-device setup):
- The device ID you want to use for this workflow
- API URL: Your WhatsApp REST API URL (e.g.,
Credential Example
Available Nodes
The n8n package provides nodes that mirror the REST API capabilities:Message Nodes
Send Text Message
Send text messages to contacts or groups
Send Image
Send images with optional captions
Send Video
Send video files with captions
Send Document
Send document files
Send Audio
Send audio messages
Send Sticker
Send stickers (auto-converts to WebP)
Send Contact
Share contact cards
Send Location
Share location coordinates
Query Nodes
Get Chat Messages
Fetch messages from a specific chat
List Chats
Get all chats with pagination
List Contacts
Retrieve all contacts
Get User Info
Get information about a user
Group Nodes
Create Group
Create new WhatsApp groups
Manage Participants
Add, remove, promote, or demote members
Get Group Info
Fetch group details
Set Group Settings
Update group name, topic, or settings
Workflow Examples
Example 1: Send Welcome Message
Create a workflow that sends a welcome message when a new contact is added:Example 2: Customer Support Automation
Automate customer support responses:Example 3: Daily Report Distribution
Send daily reports to a WhatsApp group:Send to Group
Use WhatsApp - Send Text Message nodeConfigure:
- Phone:
[email protected](group JID) - Message:
{{$json.report}}
Example 4: Media Backup
Automatically backup received media files:Common Use Cases
E-commerce Order Notifications
E-commerce Order Notifications
- Trigger: New order in your e-commerce platform
- Action: Send order confirmation via WhatsApp
- Includes: Order details, tracking link, estimated delivery
Appointment Reminders
Appointment Reminders
- Trigger: Scheduled time (24 hours before appointment)
- Action: Send reminder message
- Includes: Appointment details, location, cancellation link
Alert Notifications
Alert Notifications
- Trigger: System monitoring alerts
- Action: Send alert to operations group
- Includes: Alert severity, affected service, action required
Content Distribution
Content Distribution
- Trigger: New blog post or content published
- Action: Send notification to subscribers
- Includes: Title, summary, link to content
Survey Distribution
Survey Distribution
- Trigger: Customer interaction completed
- Action: Send survey link
- Follow-up: Thank you message after completion
Best Practices
Error Handling
Always add error handling nodes to your workflows to manage failed WhatsApp API calls gracefully
Rate Limiting
Implement delays between messages to avoid hitting WhatsApp rate limits
Device Status Check
Check device connection status before sending messages in critical workflows
Use Variables
Store frequently used values (API URL, group IDs) as workflow variables
Test Mode
Use test phone numbers or groups when developing workflows
Logging
Log message sending attempts for debugging and audit purposes
Advanced Configuration
Multi-Device Setup
When using multiple WhatsApp devices:Webhook Integration
Configure WhatsApp to send events to n8n:- Start n8n workflow with Webhook trigger
- Copy webhook URL from n8n
- Configure WhatsApp API:
Dynamic Message Templates
Use n8n expressions for dynamic content:Troubleshooting
Connection Errors
Connection Errors
Problem: Cannot connect to WhatsApp APISolutions:
- Verify API URL is correct and accessible from n8n
- Check if WhatsApp API server is running
- Verify firewall rules allow connection
- Test API endpoint with curl first
Authentication Failed
Authentication Failed
Problem: 401 Unauthorized errorsSolutions:
- Check username and password match
APP_BASIC_AUTH - Verify credentials are saved in n8n
- Test credentials with direct API call
Messages Not Sending
Messages Not Sending
Problem: Workflow runs but messages don’t sendSolutions:
- Check device is logged in: GET
/app/status - Verify phone number format (include country code)
- Check n8n execution logs for API response
- Verify device ID if using multi-device setup
Media Upload Issues
Media Upload Issues
Problem: Cannot send images or filesSolutions:
- Verify file URL is publicly accessible
- Check file size limits
- Ensure file format is supported
- Test with local file first
Resources
npm Package
View the official npm package page
n8n Documentation
Learn more about n8n workflows
WhatsApp API Reference
Complete REST API documentation
Community Nodes
Learn about n8n community nodes
Support
For issues specific to the n8n integration:- Check the npm package for updates
- Review n8n execution logs for detailed error messages
- Verify your WhatsApp REST API is working correctly
- Test API endpoints directly before using in n8n
