{
  "name": "Create a two-way WhatsApp + Telegram integration for 10k+ customer support chats",
  "nodes": [
    {
      "id": "4eacb345-2777-4560-9ec4-24a1d8c2111f",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        64,
        768
      ]
    },
    {
      "id": "84fa0a6d-6a55-4033-9304-7d3186e67db5",
      "name": "Filter messages that are replies in topics",
      "type": "n8n-nodes-base.set",
      "position": [
        288,
        768
      ]
    },
    {
      "id": "1eb7429d-7838-4983-9617-4aac384f06e7",
      "name": "Get a row",
      "type": "n8n-nodes-base.supabase",
      "position": [
        736,
        768
      ]
    },
    {
      "id": "d97ae6ec-0310-4328-a480-44a1dfbaa41b",
      "name": "Send message",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        960,
        768
      ]
    },
    {
      "id": "49ff481e-8301-4933-9522-8363c9b69478",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        512,
        768
      ]
    },
    {
      "id": "52861634-26d4-4a4c-92b5-4898e6a7dd4f",
      "name": "Create a row",
      "type": "n8n-nodes-base.supabase",
      "position": [
        2112,
        272
      ]
    },
    {
      "id": "2ddf5eb4-0b5f-43ee-8189-e18bd47a1c96",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        544,
        176
      ]
    },
    {
      "id": "17e0bcb8-f051-4cdd-b11f-7040501d19d3",
      "name": "Set Telegram SuperGroupID",
      "type": "n8n-nodes-base.set",
      "position": [
        768,
        176
      ]
    },
    {
      "id": "62ef3a6c-cabd-41d6-a18d-f02b2ab0104b",
      "name": "Customer Details",
      "type": "n8n-nodes-base.set",
      "position": [
        992,
        272
      ]
    },
    {
      "id": "7b1cf579-d0f8-4ec9-bf07-6ea5120a2131",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1216,
        176
      ]
    },
    {
      "id": "1cae746d-391d-42b2-bf8e-da11c5a289a0",
      "name": "Get existing customer details",
      "type": "n8n-nodes-base.supabase",
      "position": [
        320,
        176
      ]
    },
    {
      "id": "d22cdbc2-b216-465c-ad30-c8711cf2cdb7",
      "name": "Get customer by phone",
      "type": "n8n-nodes-base.supabase",
      "position": [
        992,
        80
      ]
    },
    {
      "id": "50348b7a-fd87-4454-96c4-c24b48af6d1b",
      "name": "Set Customer Name",
      "type": "n8n-nodes-base.set",
      "position": [
        1440,
        176
      ]
    },
    {
      "id": "8ceacabe-c8ff-4306-91a0-0014949fee9d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        640
      ],
      "parameters": {
        "width": 1280,
        "height": 368,
        "content": "## Outgoing Telegram Messages to WhatsApp"
      }
    },
    {
      "id": "a00575d5-e56e-4f05-8356-4da62a028fb2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 2608,
        "height": 464,
        "content": "## Incoming WhatsApp message to Telegram"
      }
    },
    {
      "id": "00cef452-8a28-4831-aff7-be28d8ddd5d8",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        96,
        176
      ]
    },
    {
      "id": "ffce9947-935c-4ea3-998e-7135a108625b",
      "name": "Send Telegram Message to existing topic",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1904,
        80
      ]
    },
    {
      "id": "b8b13a10-0514-4599-8735-c8e50af63cf5",
      "name": "Create a Telegram Topic",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1888,
        272
      ]
    },
    {
      "id": "1ac0695e-5710-4dfe-9003-b7fae01b65b4",
      "name": "Send a Telegram message to topic",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2336,
        272
      ]
    },
    {
      "id": "928db787-4794-4fb4-babe-8ae9da253e0a",
      "name": "Check existing conversation or not",
      "type": "n8n-nodes-base.if",
      "position": [
        1664,
        176
      ]
    },
    {
      "id": "a56b9ed2-d717-47d9-ac5c-0593e8180ce9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1552,
        336
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "### Send a WhatsApp message from a new number.\n\nCheck if a new Telegram topic is automatically created for that customer.\n"
      }
    },
    {
      "id": "41a68c70-b3e7-4b8a-80d6-a0761384a172",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        16
      ],
      "parameters": {
        "width": null,
        "height": 224,
        "content": "### Send another WhatsApp message from the same number.\n\nConfirm that the message goes into the same Telegram topic, not a new one.\n"
      }
    },
    {
      "id": "b99d7bef-f367-4f33-8871-c12e8539c42e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2640,
        48
      ],
      "parameters": {
        "width": 672,
        "height": 480,
        "content": "### Every customer has a dedicated thread in your Telegram supergroup.\n![](https://ik.imagekit.io/tscnqj8zf/telegramchat.png?updatedAt=1757239558179)\n"
      }
    },
    {
      "id": "dd523151-be07-4ebc-b7db-6a24b16471e6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        928
      ],
      "parameters": {
        "width": 304,
        "height": 80,
        "content": "### In the created Telegram topic, reply as an agent.\n"
      }
    },
    {
      "id": "ef62abf8-23b7-4462-82b1-a6d2cdcd25e3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        928
      ],
      "parameters": {
        "width": 320,
        "height": 80,
        "content": "### Customer will receive Telegram message in customer's Whatsapp"
      }
    },
    {
      "id": "3db8e878-7d6d-48d1-8ef6-3241a63c9618",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        416
      ],
      "parameters": {
        "width": 192,
        "height": null,
        "content": "### Create a table in supabase which maps phone number to telegram supergroup and message threadId\n\n"
      }
    },
    {
      "id": "5d9adb1b-10fb-48ca-9bbd-c07d11b0534e",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        336
      ],
      "parameters": {
        "width": 272,
        "height": 192,
        "content": "## Change this to your Telegram Supergroup ID.\nThe given-1003071123489 is a sample non working supergroupID"
      }
    },
    {
      "id": "da171507-8ee5-426c-a744-eed7876aeed7",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1792,
        16
      ],
      "parameters": {
        "width": 192,
        "height": 96,
        "content": "### Add Your Bot Token in all the Telegram request URL "
      }
    },
    {
      "id": "fd5a8981-6dd5-4485-a166-756159de5725",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        208
      ],
      "parameters": {
        "width": 192,
        "height": 96,
        "content": "### Add Your Bot Token in the Telegram request URL "
      }
    },
    {
      "id": "614cf902-d6e3-4f82-a70a-65dbb0f8af49",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -368
      ],
      "parameters": {
        "width": 720,
        "height": 1728,
        "content": "\n# 🚀 Try It Out!\n\nThis n8n template shows how to build a **WhatsApp ↔ Telegram Customer Support Bridge** that creates **one Telegram topic per customer** and syncs replies **both ways**—no custom app "
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get a row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Set Telegram SuperGroupID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Set Customer Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a row": {
      "main": [
        [
          {
            "node": "Send message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a row": {
      "main": [
        [
          {
            "node": "Send a Telegram message to topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customer Details": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Filter messages that are replies in topics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Get existing customer details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Customer Name": {
      "main": [
        [
          {
            "node": "Check existing conversation or not",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get customer by phone": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a Telegram Topic": {
      "main": [
        [
          {
            "node": "Create a row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Telegram SuperGroupID": {
      "main": [
        [
          {
            "node": "Get customer by phone",
            "type": "main",
            "index": 0
          },
          {
            "node": "Customer Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get existing customer details": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check existing conversation or not": {
      "main": [
        [
          {
            "node": "Send Telegram Message to existing topic",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create a Telegram Topic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter messages that are replies in topics": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}