Manage WhatsApp chats centrally on Slack
This workflow enables seamless, bidirectional communication between WhatsApp and Slack using n8n. It automates the reception, processing, and forwarding of m...
🔌 Nodes & Integrations Used (5)
📖 Implementation & Setup Guide
This workflow enables seamless, bidirectional communication between WhatsApp and Slack using n8n. It automates the reception, processing, and forwarding of messages (text, media, and documents) between users on WhatsApp and private Slack channels.
**Key Features & Flow:**
**1. WhatsApp to Slack Flow** - Trigger: The workflow starts with a WhatsApp Trigger node that listens for new incoming messages via a webhook. - Channel Handling: It checks if a Slack channel with the WhatsApp sender’s number exists - If not, it creates a private Slack channel with the sender's number as the name. - Message Type Routing: A Switch Node (Message Type) inspects the message type (text, image, audio, document). - Based on type: Text: Sends the message directly to Slack. - Image/Audio/Document: Retrieves media URL via WhatsApp API → downloads the media → uploads it to the appropriate Slack channel.
**2. Slack to WhatsApp Flow** - Trigger: A Slack Trigger listens for new messages or file uploads in Slack. - Message Type Routing: A second Switch Node (Checking Message Type) checks if the message is text or media. - Routing Logic: Text Message: Extracts and forwards it to the WhatsApp contact (identified by the Slack channel name). - Media/File Message: Retrieves media file URL from Slack → downloads it → sends it as a document via WhatsApp API.
**Key Integrations:** - WhatsApp Cloud API: For receiving messages, downloading media, and sending messages. - Slack API: For creating/getting channels, posting messages, and uploading files. - HTTP Request Node: Used to securely download media from Slack and WhatsApp servers with proper authentication.
**Automation Use Case:** This workflow is ideal for businesses that handle customer support or conversations over WhatsApp and wish to log, respond, and collaborate using Slack as their internal communication tool.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Manage WhatsApp chats centrally on Slack.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related Messaging & Chat Workflows
View All in Messaging & Chat →Add a bug to Linear via Slack command
Use Case When building a product it's important to discover and eliminate bugs as quickly as possible. Since we're using our product at n8n a lot, we wanted ...
AI Children s Storytelling on Telegram
Production-ready n8n automation template for AI Children s Storytelling on Telegram built by AhiXLight. Seamlessly connects Lm Chat Open Ai, Chain Summarization, Text Splitter Recursive Character Text Splitter with 14 configured nodes.
AI Event Banner Generator with BannerBear
Production-ready n8n automation template for AI Event Banner Generator with BannerBear built by AhiXLight. Seamlessly connects Form Trigger, HTTP Request, Bannerbear with 16 configured nodes.
AI Event Banner Generator with n8n
Production-ready n8n automation template for AI Event Banner Generator with n8n built by AhiXLight. Seamlessly connects Form Trigger, HTTP Request, Bannerbear with 16 configured nodes.