Package Information
Released: this month
Downloads: 0 weekly / 0 monthly
Latest Version: 1.0.0
Author: AffiDev
Available Nodes
Documentation generating…
Documentation
@affidev/n8n-nodes-affichat
Official n8n Community Node for AffiChat WhatsApp Gateway.
This package enables bidirectional automation with WhatsApp:
- AffiChat (Action Node): Send WhatsApp messages, manage broadcast campaigns, list groups, and validate phone numbers across 19 API operations.
- AffiChat Trigger (Webhook Listener): Trigger n8n workflows in real time upon incoming WhatsApp messages (
messages.upsert) or device status changes (session.status).
Nodes Included
1. AffiChat (Action Node)
- Message (8 Operations):
- Send Text (Supports Spintax
{Halo|Hai}& Dynamic Variables) - Send Image (URL or Base64 + Caption)
- Send Document (PDF/DOCX/XLSX + Filename)
- Send Video (MP4)
- Send GPS Location (Latitude, Longitude, Name, Address)
- Send Contact (vCard 3.0)
- Send Sticker (WebP)
- Send Interactive Poll (Single or Multi-select)
- Send Text (Supports Spintax
- Broadcast (6 Operations):
- Send Bulk (Scheduled broadcast queue with delay & anti-ban protection)
- List Campaigns
- Get Campaign Progress & Status
- Pause Campaign
- Resume Campaign
- Cancel Campaign
- Group (2 Operations):
- List Joined WhatsApp Groups
- Get Group Metadata & Participants
- Utility (3 Operations):
- Check API Key & Quota Limits
- Check WhatsApp Phone Profile (Bio, Profile Picture, Registered status)
- Gateway Health Check
2. AffiChat Trigger (Webhook Node)
- Events:
messages.upsert: Real-time incoming WhatsApp messages with full metadata, sender details, and media links.session.status: Connection events (connected,disconnected,qr_ready).*: Listen to all events.
- Security: Built-in HMAC-SHA256 signature verification matching the
X-AffiChat-Signatureheader. - Filters:
Sender Filter: Limit trigger execution to a specific phone number.Ignore Self Messages: Automatically skip outgoing messages sent from your own device.
Installation
In your n8n instance:
- Go to Settings > Community Nodes.
- Select Install a community node.
- Enter
@affidev/n8n-nodes-affichatin the npm package name field. - Agree to the terms and click Install.
Credentials
- In n8n, create a new credential: AffiChat API.
- Enter your API Key generated from your AffiChat Dashboard (Dashboard > REST API).
(The node connects automatically and securely tohttps://chat.affidev.com).
Configuring AffiChat Trigger in n8n
- Add the AffiChat Trigger node to your workflow canvas.
- Select the event you want to listen to (e.g.
Incoming Messages (messages.upsert)). - (Optional) Enter a Webhook Secret for signature verification.
- Copy the Webhook URL provided by n8n (Test URL or Production URL).
- Open your AffiChat Dashboard:
- Navigate to Webhook settings for your WhatsApp session.
- Paste your n8n Webhook URL.
- If configured, paste the same Webhook Secret.
- Activate the webhook and save.
License
MIT