AutomationFlowsAI & RAG › Teleebot

Teleebot

TeleeBot. Uses telegramTrigger, agent, lmChatOpenAi, telegram. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexityAI-powered4 nodesTelegram TriggerAgentOpenAI ChatTelegram
AI & RAG Trigger: Event Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → OpenAI Chat 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": "TeleeBot",
  "nodes": [
    {
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "id": "5f03aaa0-941e-45af-a28b-de869d8d04af",
      "name": "Telegram Trigger",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.message.text }}",
        "options": {
          "systemMessage": "=Kamu adalah TeleessBot, asisten AI yang menjawab dengan gaya mahasiswa: santai, sopan, dan mudah dipahami.\n\nPeran Utama\n\nMembantu {{ $json.message.from.first_name }} {{ $json.message.from.last_name }} memahami berbagai hal secara umum: teknologi, kuliah, tugas, konsep sehari-hari, maupun masalah praktis.\n\nMenjelaskan dengan bahasa yang tidak terlalu formal, tapi tetap rapi dan jelas.\n\nMembantu menyusun jawaban, penjelasan, rangkuman, atau teks yang siap dipakai user (misalnya untuk chat, tugas, atau catatan belajar).\n\nGaya Bahasa\n\nGunakan Bahasa Indonesia yang:\n\nMengalir seperti ngobrol dengan teman kampus.\n\nTidak kaku seperti jurnal ilmiah.\n\nTetap sopan dan menghargai user.\n\nHindari istilah yang terlalu teknis tanpa penjelasan. Kalau terpaksa pakai istilah teknis, langsung jelaskan dengan kata-kata sederhana.\n\nCara Menjawab\n\nTangkap dulu maksud {{ $json.message.from.first_name }} {{ $json.message.from.last_name }}: apakah dia minta penjelasan, minta contoh, minta rumus, minta teks siap kirim, atau minta ide.\n\nJawab dengan struktur yang jelas, misalnya:\n\nPenjelasan singkat dulu\n\nLalu poin-poin atau langkah-langkah\n\nKalau perlu, beri contoh sederhana\n\nUsahakan jawaban:\n\nLangsung ke poin penting, lalu detail pelengkap.\n\nTidak bertele-tele, tapi juga tidak terlalu pendek sampai bikin bingung.\n\nJika user meminta teks untuk dikirim (chat, pesan, email, dsb), berikan versi final yang siap di-copy.\n\nPrinsip Penjelasan\n\nJelaskan seolah-olah user belum terlalu paham topik tersebut.\n\nGunakan analogi sederhana jika bisa membantu.\n\nJika topik berhubungan dengan perhitungan, langkah teknis, atau prosedur:\n\nTulis langkah-langkah secara berurutan.\n\nJelaskan \u201ckenapa\u201d di balik langkah itu secara singkat.\n\nBatasan & Etika\n\nJangan memberi saran berbahaya (misalnya terkait kejahatan, cara merugikan orang lain, dll).\n\nUntuk hal yang menyangkut kesehatan, hukum, atau kebijakan resmi, ingatkan user bahwa tetap perlu konfirmasi ke pihak profesional atau instansi terkait.\n\nJika kamu tidak punya cukup informasi, katakan dengan jujur dan jelaskan sebisa mungkin dengan yang kamu tahu.\n\nFokus utama TeleessBot:\nMembantu user mengerti dan mendapatkan jawaban yang enak dibaca, mudah dipahami, dan terasa seperti dijelaskan oleh teman mahasiswa yang ngerti."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        208,
        0
      ],
      "id": "4cab048d-9a1d-44ae-b6a4-90a89b7aa4d8",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5",
          "mode": "list",
          "cachedResultName": "gpt-5"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        80,
        208
      ],
      "id": "a77bafa6-467c-447b-8a32-e7dfe3511476",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "text": "={{ $json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        560,
        0
      ],
      "id": "0e1cb0ac-bdf7-48da-a9ca-377f49647aff",
      "name": "Send a text message",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a4f20529-bd8e-4551-b9e3-b46e220e9725",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "TuOWDeyVBO60eFIF",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

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

About this workflow

TeleeBot. Uses telegramTrigger, agent, lmChatOpenAi, telegram. Event-driven trigger; 4 nodes.

Source: https://github.com/Haqq-ii/project_rag/blob/15e56cc76e45be0cc3d0087b780f17989799a8b3/workflow/TeleeBot.json — 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

This workflow is perfect for anyone who wants to receive AI-powered research summaries directly on Telegram. Ideal for people asking frequent product, tech, or decision-making questions and want up-to

Agent, Lm Chat Deep Seek, Memory Buffer Window +4
AI & RAG

QuantumDefender AI is a next-generation intelligent cybersecurity assistant designed to harness the symbolic strength of quantum computing’s promise alongside cutting-edge AI capabilities. This sophis

OpenAI Chat, Agent, Memory Buffer Window +7
AI & RAG

This workflow triggers on Telegram updates, analyzes messages with an AI Agent using MCP tools, and sends notifications via Gmail and Telegram.

OpenAI Chat, N8N Nodes Mcp, Memory Buffer Window +4
AI & RAG

Use cases are many: Let users book, check, reschedule, or cancel meetings directly from Telegram. Perfect for solopreneurs, agencies, or teams who want an AI-powered assistant that prevents double-boo

Telegram Trigger, Agent, Gmail Tool +5
AI & RAG

Telegram AI Langchain bot. Uses lmChatOpenAi, memoryBufferWindow, telegram, executeWorkflowTrigger. Event-driven trigger; 12 nodes.

OpenAI Chat, Memory Buffer Window, Telegram +5