πŸ’¬ Create a two-way WhatsApp + Telegram integration for 10k+ customer support chats

⚑ 1,183 views Β· πŸ’¬ Support Chatbots

Description

⚑ Next-Gen Customer Support: Two-Way WhatsApp + Telegram Integration for 10k+ Clients


Who is this workflow for

This workflow is designed for customer support teams, e-commerce founders, and operations managers who want to handle thousands of customer queries seamlessly. Instead of building a brand-new chat application, it leverages WhatsApp (where customers already are) and Telegram (where your support team operates) to create a scalable, topic-based support system.

If you are a brand handling 1000s of daily WhatsApp customer messages and need a structured way to map each customer into a dedicated support thread without chaos, this workflow is for you.


What it does / How it works

This two-way n8n automation bridges WhatsApp and Telegram by creating one Telegram forum topic per customer and syncing messages both ways:

  1. Incoming WhatsApp β†’ Telegram
    • When a new WhatsApp message arrives, the workflow checks if the customer already has a topic in Telegram.
    • If yes β†’ The message is forwarded into that existing topic.
    • If no β†’ A new topic is created automatically, the mapping is saved in the database, and the message is posted there.
    • Result: every customer has a dedicated thread in your Telegram supergroup.
  2. Outgoing Telegram β†’ WhatsApp
    • When a support agent replies in a Telegram topic, the workflow looks up the linked WhatsApp number.
    • The reply is sent back to the customer on WhatsApp, preserving context.
    • Result: two-way synced conversations without building a custom app.

How to set it up

  1. Configure WhatsApp Cloud API
    • Create a Meta Developer account and register a WhatsApp Business number.
    • Generate an access token and phone number ID.
  2. Configure Telegram Bot
    • Use BotFather to create a bot and enable it in a Telegram Supergroup with Topics.
    • Get the chat_id and allow the bot to create/send messages in topics.
  3. Database (Supabase/Postgres)
    • Create a table wa_tg_threads to map phone_e164 ↔ telegram_topic_id ↔ supergroup_id.
  4. n8n Workflows
    • Workflow A: WhatsApp β†’ Telegram
      • Trigger: WhatsApp Webhook
      • Steps: Lookup customer β†’ If exists send to topic, else create topic β†’ Save mapping β†’ Forward message.
    • Workflow B: Telegram β†’ WhatsApp
      • Trigger: Telegram Webhook
      • Steps: Filter only topic replies β†’ Lookup mapping β†’ Send WhatsApp message.
  5. Testing
    • Send a WhatsApp message β†’ Check Telegram topic created.
    • Reply in Telegram topic β†’ Ensure customer receives WhatsApp reply.

Requirements


How to customize the workflow


Why Telegram instead of building a new App

The client’s requirement was clear: use an existing, reliable, and scalable chat platform instead of building a new app from scratch.

This decision saves development cost, accelerates deployment, and provides proven scalability.


Why this improves support productivity

Result: faster responses, better tracking, and zero need to reinvent chat software.


πŸ”— Nodes Used

HTTP Request, Telegram Trigger, Supabase, WhatsApp Business Cloud, WhatsApp Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup