AutomationFlowsAI & RAG › Ai-powered Telegram & Whatsapp Business Agent Workflow

Ai-powered Telegram & Whatsapp Business Agent Workflow

ByAmanda Benks @amanda on n8n.io

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Event trigger★★★★☆ complexityAI-powered21 nodesTelegram TriggerGoogle SheetsOpenAITelegramHTTP Request
AI & RAG Trigger: Event Nodes: 21 Complexity: ★★★★☆ AI nodes: yes Added:

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

This workflow follows the Google Sheets → HTTP Request 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
{
  "name": "AI Telegram & WhatsApp Business Agent",
  "tags": [
    {
      "id": "telegram",
      "name": "Telegram",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "whatsapp",
      "name": "WhatsApp",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "ai-agent",
      "name": "AI Agent",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "customer-service",
      "name": "Customer Service",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    }
  ],
  "nodes": [
    {
      "id": "intro_sticky",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "telegram_trigger",
      "name": "Telegram Bot",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        160,
        280
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "whatsapp_webhook",
      "name": "WhatsApp Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        160,
        420
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "normalize_message",
      "name": "Normalize Message Data",
      "type": "n8n-nodes-base.set",
      "position": [
        460,
        350
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "processing_sticky",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "get_customer_data",
      "name": "Get Customer History",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        760,
        350
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "build_context",
      "name": "Build AI Context",
      "type": "n8n-nodes-base.code",
      "position": [
        1060,
        350
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "intelligence_sticky",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ai_assistant",
      "name": "AI Business Assistant",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1360,
        350
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ai_sticky",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "process_response",
      "name": "Process AI Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1660,
        350
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "platform_router",
      "name": "Platform Router",
      "type": "n8n-nodes-base.if",
      "position": [
        1960,
        350
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "send_telegram",
      "name": "Send Telegram Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2260,
        280
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "send_whatsapp",
      "name": "Send WhatsApp Message",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2260,
        420
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "delivery_sticky",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2240,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "log_conversation",
      "name": "Log Conversation",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2560,
        350
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "update_customer",
      "name": "Update Customer Record",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2860,
        350
      ],
      "parameters": {},
      "typeVersion": 4.4
    },
    {
      "id": "check_escalation",
      "name": "Check Escalation",
      "type": "n8n-nodes-base.if",
      "position": [
        2560,
        200
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "notify_team",
      "name": "Notify Support Team",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2860,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "analytics_sticky",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2540,
        480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "webhook_response",
      "name": "Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3160,
        420
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "settings": {
    "executionOrder": "v1"
  },
  "updatedAt": "2025-01-01T00:00:00.000Z",
  "versionId": "1",
  "staticData": null,
  "connections": {
    "ai_assistant": {
      "main": [
        [
          {
            "node": "process_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "build_context": {
      "main": [
        [
          {
            "node": "ai_assistant",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_telegram": {
      "main": [
        [
          {
            "node": "log_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_whatsapp": {
      "main": [
        [
          {
            "node": "log_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "platform_router": {
      "main": [
        [
          {
            "node": "send_telegram",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "send_whatsapp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "update_customer": {
      "main": [
        [
          {
            "node": "webhook_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check_escalation": {
      "main": [
        [
          {
            "node": "notify_team",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "log_conversation": {
      "main": [
        [
          {
            "node": "update_customer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "process_response": {
      "main": [
        [
          {
            "node": "platform_router",
            "type": "main",
            "index": 0
          },
          {
            "node": "check_escalation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "telegram_trigger": {
      "main": [
        [
          {
            "node": "normalize_message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "whatsapp_webhook": {
      "main": [
        [
          {
            "node": "normalize_message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_customer_data": {
      "main": [
        [
          {
            "node": "build_context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "normalize_message": {
      "main": [
        [
          {
            "node": "get_customer_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 2
}
Pro

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

About this workflow

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Source: https://n8n.io/workflows/5311/ — 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

Generate AI viral videos with NanoBanana & VEO3, shared on socials via Blotato 2. Uses @blotato/n8n-nodes-blotato, googleSheets, lmChatOpenAi, toolThink. Event-driven trigger; 94 nodes.

@Blotato/N8N Nodes Blotato, Google Sheets, OpenAI Chat +9
AI & RAG

Inbox Guardian. Uses gmailTrigger, lmChatOpenAi, agent, textClassifier. Event-driven trigger; 66 nodes.

Gmail Trigger, OpenAI Chat, Agent +12
AI & RAG

This template is designed for marketers, content creators, and e-commerce brands who want to automate the creation of professional ad videos at scale. It’s ideal for teams looking to generate consiste

Telegram, Telegram Trigger, Google Drive +8
AI & RAG

💥 Automate video ads with NanoBanana, Seedream 4, ChatGPT Image and Veo 3 - VIDE. Uses telegram, telegramTrigger, googleDrive, agent. Event-driven trigger; 63 nodes.

Telegram, Telegram Trigger, Google Drive +8
AI & RAG

💥 Automate video ads with NanoBanana, Seedream 4, ChatGPT Image and Veo 3 - VIDE. Uses telegram, telegramTrigger, googleDrive, agent. Event-driven trigger; 63 nodes.

Telegram, Telegram Trigger, Google Drive +8