AutomationFlowsAI & RAG › Handle Telegram Support, Payments, and Logo Orders with Mistral and Gemini

Handle Telegram Support, Payments, and Logo Orders with Mistral and Gemini

BySpaGreen Creative @spagreen on n8n.io

This n8n workflow is designed for Telegram bot administrators and customer service managers who want to automate customer support and payment verification processes. The workflow creates an intelligent Telegram bot assistant that can handle various message types, process…

Event trigger★★★★★ complexityAI-powered61 nodesTelegram TriggerAgent ToolTool ThinkAgentTelegramMemory Buffer WindowGoogle SheetsGoogle Gemini
AI & RAG Trigger: Event Nodes: 61 Complexity: ★★★★★ AI nodes: yes Added:

This workflow corresponds to n8n.io template #15190 — we link there as the canonical source.

This workflow follows the Agent → Agenttool recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "mXVTjnriTnxTyiIw",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Smart Telegram Bot for Customer Support, Payments & Logo Generation & Delivery",
  "tags": [],
  "nodes": [
    {
      "id": "72f73396-5ef1-47a9-b425-d6fa50ddaee4",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        304,
        -640
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "6b4420ef-551b-41a1-806a-924b9221a2bc",
      "name": "Route Types",
      "type": "n8n-nodes-base.switch",
      "position": [
        640,
        -704
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "4f8e9492-89db-4441-ad37-dce23f97b0b6",
      "name": "Research",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        1888,
        -160
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "56731b8b-4d03-4f4b-a9cc-c921f9f87de5",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1696,
        -144
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1
    },
    {
      "id": "96916827-d097-42b0-819b-d20e8e21d735",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "515603c5-ee7f-469f-966f-7d9b11bc289e",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -512
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f1143118-8b60-4f7a-8b26-04e25d9f95ce",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f296977f-9d8d-44ed-baf2-49331e6c3e06",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1568,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "21101d7f-86d9-4b60-acc0-fd4d85f951a8",
      "name": "Generates AI responses, maintains context, retrieves info",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2752,
        -688
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "a28c44d3-92ab-4d02-8290-a323f32465d8",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        -736
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "b808f722-6320-4983-a494-8631263d2f3f",
      "name": "Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        464,
        -640
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9f0c4056-710e-4967-9385-6716d87cbe29",
      "name": "Send a docs message replay",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1104,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e0116080-1f02-4621-b05a-0c1f5ebc4cb9",
      "name": "Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1600,
        -144
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "82d674e3-902d-45ce-ba7a-23ebff27b069",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -1168
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c8f233e0-8cea-4385-b0ff-12b2cd2e692e",
      "name": "Code (detect Payment related text)",
      "type": "n8n-nodes-base.code",
      "position": [
        1056,
        -1072
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b1710135-9a68-4f90-9302-a584fd772c10",
      "name": "If (again detect Payment related text)",
      "type": "n8n-nodes-base.if",
      "position": [
        1248,
        -1072
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "cd8435f0-9742-404b-8e76-1c73ef228627",
      "name": "Summarizes audio for concise replies1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1440,
        -1088
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "92c66f05-42e4-4ffb-ab9a-3976f1b97f8b",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1744,
        -1152
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "162bd707-ebdd-426a-8668-c0419d65ea92",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "33029b6b-d623-4f58-a403-8de26eb23c01",
      "name": "Send video message replay",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1376,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8f0f127c-3b3c-4c29-991a-dde64b91bda1",
      "name": "Send a voice message reply",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1104,
        -720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a04d96ab-a950-4226-ac32-ed81b71146b8",
      "name": "Send payment issue message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2224,
        -1104
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4353da7e-0415-46ab-8ea8-be7ac821e320",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2304,
        -448
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "38f3ccd0-4346-4309-ac58-6d68e6ccc1d7",
      "name": "Get Prove form User",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2096,
        -1136
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c53d94f3-7ceb-41f7-b13c-634df113fa7b",
      "name": "Send payment issue message2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2608,
        -1008
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "e057f9ef-551f-4a1c-b454-908330b49e0d",
      "name": "How to pay",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2480,
        -1040
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f5289336-caf0-4009-a98f-089048b7ea47",
      "name": "Send payment issue",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2352,
        -1072
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "826cfc18-5ac8-4a4c-909b-32a43248af5f",
      "name": "Get a file",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1456,
        -432
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "981878ab-1271-413c-8a24-28fef5f9d8bc",
      "name": "Analyze an image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1616,
        -432
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c3a831f9-dc2e-4901-8098-84f070fef74f",
      "name": "Code (select the best image quality)",
      "type": "n8n-nodes-base.code",
      "position": [
        1056,
        -432
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "eeb80f84-cc9e-4696-ac71-1e4ab7cf8a2c",
      "name": "Switch Photo Quality",
      "type": "n8n-nodes-base.switch",
      "position": [
        1232,
        -448
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fbcd6213-f664-4518-bb75-0bf8c4810ea3",
      "name": "payment Prosess",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1968,
        -1168
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "1b28b0f7-fdee-4c3d-bf39-736ff4a1b150",
      "name": "Save new user data in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1552,
        -752
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "5892ca13-4e1b-4535-b63b-86541bbf8d3d",
      "name": "If (check new user)",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        -736
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "6b87ff04-ef70-45c4-9f8d-c0f1b0e050db",
      "name": "text message replay",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3024,
        -688
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "49f65800-803e-4c93-b587-310b1824b097",
      "name": "If (check payment receipt)",
      "type": "n8n-nodes-base.if",
      "position": [
        1792,
        -432
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "a70164d9-f994-4850-8da8-36c718606555",
      "name": "Send User Payment to Admin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2480,
        -448
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4f5aaf7f-86e6-4aab-9c5c-62acb9bad1b1",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        2128,
        -448
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "4e95697d-ff08-437a-abd5-1e4d27477fd0",
      "name": "Not Paid message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1968,
        -416
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c584c65e-af62-4507-9244-e02aa36a172a",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        448,
        144
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "7ab17b59-280c-4611-ac12-4c871e970362",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        608,
        144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7099eb95-bb7d-4986-aff5-676972af9bb0",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        784,
        144
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "64b88f69-b2f9-4132-9884-591b99ed6fa8",
      "name": "Paid message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1136,
        144
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "f1a8f7de-6cba-49c0-9621-ebc032f77940",
      "name": "If (check paid status)",
      "type": "n8n-nodes-base.if",
      "position": [
        960,
        160
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "705e1035-ef27-46ea-b261-cb20d03f25d3",
      "name": "UnPaid message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1280,
        176
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "635caa52-48fb-4e0c-b7a7-6247b891a2a5",
      "name": "Update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1440,
        144
      ],
      "parameters": {},
      "typeVersion": 4.7
    },
    {
      "id": "cc0111ea-ddc9-4ff2-9a5c-6486091921c2",
      "name": "If (admin)",
      "type": "n8n-nodes-base.if",
      "position": [
        2064,
        -720
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "ea832c74-a12e-4d3f-8dff-909e92d0b42e",
      "name": "detect admin related text",
      "type": "n8n-nodes-base.code",
      "position": [
        1904,
        -720
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "68e3d8a8-e163-459f-a33a-0149dc2365d2",
      "name": "Sent to Admin Talk",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2256,
        -736
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3963d757-7e0a-489a-8b7e-be5f831c41e0",
      "name": "new user message to admin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1728,
        -752
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "967a0a69-ce40-43b2-95cf-9e35c9e68aa0",
      "name": "detect order type text",
      "type": "n8n-nodes-base.code",
      "position": [
        2432,
        -704
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "60823971-fd1d-4ee6-9945-7f7e6e414816",
      "name": "If (order check)",
      "type": "n8n-nodes-base.if",
      "position": [
        2592,
        -704
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "96d894b5-4431-4efa-bb7b-3d7395be5a00",
      "name": "Switch1",
      "type": "n8n-nodes-base.switch",
      "position": [
        3168,
        -736
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "2f4703db-5387-469f-894b-d0d5903f216a",
      "name": "Send logo message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3344,
        -752
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "98a3988a-6063-4360-a816-92979238a42e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        -800
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "385894f4-5444-41f9-937e-194778fa7b31",
      "name": "Send stage message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3520,
        -720
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "4222e7c8-cfa2-4144-87b6-ad94b4ca9a8e",
      "name": "Send banner message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3680,
        -688
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9ca94e78-21c5-4148-8097-335fc87e1c7f",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8b5851a8-ceb5-4f6d-a923-1fbeee6ec967",
      "name": "Mistral",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        1792,
        -128
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "70125e35-7d5d-4ab1-9419-74251a285810",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        288,
        144
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ac5f4af6-f8a2-4508-bb2a-a22618ac2cdf",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -304,
        -1040
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "availableInMCP": false,
    "executionOrder": "v1"
  },
  "versionId": "0db75db4-dac0-451e-a7d0-5ceb559f7b87",
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "Generates AI responses, maintains context, retrieves info",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Memory": {
      "ai_memory": [
        [
          {
            "node": "Generates AI responses, maintains context, retrieves info",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "payment Prosess",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Prove form User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send payment issue message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send payment issue",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "How to pay",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send payment issue message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral": {
      "ai_languageModel": [
        [
          {
            "node": "Generates AI responses, maintains context, retrieves info",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Research",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Summarizes audio for concise replies1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Send logo message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send stage message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send banner message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research": {
      "ai_tool": [
        [
          {
            "node": "Generates AI responses, maintains context, retrieves info",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "Summarizes audio for concise replies1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get a file": {
      "main": [
        [
          {
            "node": "Analyze an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "How to pay": {
      "main": [
        []
      ]
    },
    "If (admin)": {
      "main": [
        [
          {
            "node": "Sent to Admin Talk",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "detect order type text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Date & Time": {
      "main": [
        [
          {
            "node": "Route Types",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Types": {
      "main": [
        [
          {
            "node": "Code (detect Payment related text)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a voice message reply",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code (select the best image quality)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a docs message replay",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send video message replay",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send video message replay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Paid message": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "UnPaid message": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "If (check paid status)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze an image": {
      "main": [
        [
          {
            "node": "If (check payment receipt)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (order check)": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generates AI responses, maintains context, retrieves info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Send User Payment to Admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (check new user)": {
      "main": [
        [
          {
            "node": "Save new user data in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "detect admin related text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch Photo Quality": {
      "main": [
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get a file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (check paid status)": {
      "main": [
        [
          {
            "node": "Paid message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "UnPaid message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "detect order type text": {
      "main": [
        [
          {
            "node": "If (order check)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "detect admin related text": {
      "main": [
        [
          {
            "node": "If (admin)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "new user message to admin": {
      "main": [
        []
      ]
    },
    "If (check payment receipt)": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Not Paid message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save new user data in sheet": {
      "main": [
        [
          {
            "node": "new user message to admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (detect Payment related text)": {
      "main": [
        [
          {
            "node": "If (again detect Payment related text)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (select the best image quality)": {
      "main": [
        [
          {
            "node": "Switch Photo Quality",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summarizes audio for concise replies1": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If (again detect Payment related text)": {
      "main": [
        [
          {
            "node": "Summarizes audio for concise replies1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If (check new user)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generates AI responses, maintains context, retrieves info": {
      "main": [
        [
          {
            "node": "text message replay",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This n8n workflow is designed for Telegram bot administrators and customer service managers who want to automate customer support and payment verification processes. The workflow creates an intelligent Telegram bot assistant that can handle various message types, process…

Source: https://n8n.io/workflows/15190/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

Telegram Trigger receives incoming messages (text, voice, photo, document). Switch routes by message type to appropriate processors: Text → forwarded as-is. Voice → downloaded and sent to Transcribe a

Memory Buffer Window, Telegram Trigger, Telegram +12
AI & RAG

Transform your Telegram messenger into a powerful, multi-modal personal or team assistant. This n8n workflow creates an intelligent agent that can understand text, voice, images, and documents, and ta

Memory Buffer Window, Telegram Trigger, Telegram +10
AI & RAG

Jarvis is a powerful multi-agent productivity assistant built in n8n. It works directly from Telegram and can understand both text messages and voice notes.

Telegram Trigger, Telegram, OpenAI +10
AI & RAG

> AI-powered nutrition assistant for Telegram — log meals, set goals, and get personalized daily reports with Google Sheets integration.

Telegram, Google Gemini, Google Gemini Chat +7
AI & RAG

This multi-agent n8n workflow delivers an automated, intelligent trading analysis system for the WEEX Spot Market. It uses GPT-4o to interpret user prompts, route them to the correct sub-agent tools,

OpenAI Chat, Telegram Trigger, Agent +7