AutomationFlowsAI & RAG › Telebot Knowledgehub

Telebot Knowledgehub

Telebot Knowledgehub. Uses memoryBufferWindow, vectorStoreInMemory, textSplitterRecursiveCharacterTextSplitter, documentDefaultDataLoader. Event-driven trigger; 15 nodes.

Event trigger★★★★☆ complexityAI-powered15 nodesMemory Buffer WindowIn-Memory Vector StoreText Splitter Recursive Character Text SplitterDocument Default Data LoaderTelegramForm TriggerAgentGroq Chat
AI & RAG Trigger: Event Nodes: 15 Complexity: ★★★★☆ AI nodes: yes Added:

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

This workflow follows the Agent → Documentdefaultdataloader 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
{
  "nodes": [
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Telegram Message Trigger1').item.json.message.chat.id }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        -2576,
        -384
      ],
      "id": "2ac4d2dd-945d-4462-bb22-d2df7c5a05fa",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "mode": "retrieve-as-tool",
        "toolDescription": "Use this tool to retrieve any information required.",
        "memoryKey": {
          "__rl": true,
          "value": "vector_store_key",
          "mode": "list",
          "cachedResultName": "vector_store_key"
        },
        "topK": 10
      },
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "typeVersion": 1.3,
      "position": [
        -2432,
        -352
      ],
      "id": "759cc820-fb4e-4dfc-8c67-a7db3a47df18",
      "name": "Retrieve documents"
    },
    {
      "parameters": {
        "chunkSize": 3000,
        "chunkOverlap": 200,
        "options": {}
      },
      "id": "a3ca8f55-b216-435d-a723-7d7e5da647b4",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        -3488,
        -208
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "mode": "insert",
        "memoryKey": {
          "__rl": true,
          "mode": "list",
          "value": "vector_store_key"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.vectorStoreInMemory",
      "typeVersion": 1.3,
      "position": [
        -3440,
        -560
      ],
      "id": "7c32d920-7831-45a2-aef3-b51489aae91a",
      "name": "Simple Vector Store"
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "315e4265-2020-4e83-b747-ee667cf4bdaf",
      "name": "Default Data Loader1",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        -3472,
        -352
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "resource": "chat",
        "chatId": "={{ $json.message.chat.id }}"
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        -2832,
        -576
      ],
      "id": "01da1111-472a-4278-9076-b5e54e9cc2c8",
      "name": "Get a chat1",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "formTitle": "Upload your data to test RAG",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Upload your file(s)",
              "fieldType": "file",
              "acceptFileTypes": ".pdf, .csv"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        -3696,
        -560
      ],
      "id": "ccae11fa-63fd-416e-ab91-d1721d388b4d",
      "name": "Upload your file here"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('Telegram Message Trigger1').item.json.message.text }}",
        "options": {
          "systemMessage": "=You are an helplful AI Assistant Provide answers to user query based only on knowledgebase.Do Not provide any edectra knowledge apart from knowledgebase",
          "maxIterations": 10
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        -2672,
        -576
      ],
      "id": "a8ed394d-cf4f-4aa5-bdbe-1f893dc34782",
      "name": "AI Agent1"
    },
    {
      "parameters": {
        "model": "llama-3.1-8b-instant",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        -2672,
        -384
      ],
      "id": "a3ddcc9d-1528-4b2a-8a5d-2257f764da47",
      "name": "Groq Chat Model",
      "credentials": {
        "groqApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.embeddingsHuggingFaceInference",
      "typeVersion": 1,
      "position": [
        -3648,
        -336
      ],
      "id": "314aecad-e499-48e0-8e36-0282a2c22895",
      "name": "Embeddings HuggingFace Inference",
      "credentials": {
        "huggingFaceApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "={{ $('Telegram Message Trigger1').item.json.message.chat.id }}",
        "text": "={{ $json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        -2352,
        -576
      ],
      "id": "5aa1edba-e5d5-4383-8150-60b56cb7f2e4",
      "name": "Reply in Telegram1",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "updates": [
          "*"
        ],
        "additionalFields": {
          "download": false
        }
      },
      "id": "9d4e56d0-e7fd-4f5e-bba6-cdc207accfa7",
      "name": "Telegram Message Trigger1",
      "type": "n8n-nodes-base.telegramTrigger",
      "typeVersion": 1.2,
      "position": [
        -2992,
        -576
      ],
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.embeddingsHuggingFaceInference",
      "typeVersion": 1,
      "position": [
        -2432,
        -176
      ],
      "id": "d006eda4-cbd6-439f-9878-fd065ce2b7bf",
      "name": "Embeddings HuggingFace Inference1",
      "credentials": {
        "huggingFaceApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 656,
        "width": 912
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4032,
        -672
      ],
      "typeVersion": 1,
      "id": "e8facbae-ec41-492a-b3e0-c267fb6b941c",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "",
        "height": 656,
        "width": 912
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3008,
        -672
      ],
      "typeVersion": 1,
      "id": "987e71c5-a8f5-4a22-894e-5dec4a4c3722",
      "name": "Sticky Note1"
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve documents": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader1",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader1": {
      "ai_document": [
        [
          {
            "node": "Simple Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Get a chat1": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload your file here": {
      "main": [
        [
          {
            "node": "Simple Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Reply in Telegram1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings HuggingFace Inference": {
      "ai_embedding": [
        [
          {
            "node": "Simple Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Message Trigger1": {
      "main": [
        [
          {
            "node": "Get a chat1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings HuggingFace Inference1": {
      "ai_embedding": [
        [
          {
            "node": "Retrieve documents",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "templateId": "voice_assistant_agent_with_telegram",
    "templateCredsSetupCompleted": true
  }
}

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

Telebot Knowledgehub. Uses memoryBufferWindow, vectorStoreInMemory, textSplitterRecursiveCharacterTextSplitter, documentDefaultDataLoader. Event-driven trigger; 15 nodes.

Source: https://github.com/huseyinhobek/n8n-workflow-templates-tr/blob/77af90136873e81f6089cf7f3f6efd37da7507a0/templates/Telegram/TeleBot_KnowledgeHub.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

Alfred (funcional). Uses gmailTool, googleCalendarTool, gmail, embeddingsOpenAi. Event-driven trigger; 83 nodes.

Gmail Tool, Google Calendar Tool, Gmail +24
AI & RAG

This workflow ingests onboarding documents from Google Drive into an in-memory vector store with Google Gemini embeddings, then runs a multi-channel onboarding chatbot powered by Groq, sends role-base

Google Drive, In-Memory Vector Store, Google Gemini Embeddings +14
AI & RAG

Turn your docs into an AI-powered internal or public-facing assistant. This chatbot workflow uses RAG (Retrieval-Augmented Generation) with Supabase vector search to answer employee or customer questi

Supabase Vector Store, Document Default Data Loader, Text Splitter Recursive Character Text Splitter +11
AI & RAG

This workflow transforms your Telegram bot into J.A.R.V.I.S., a powerful, multimodal AI assistant. It can understand and process text, voice messages, images, and documents. The assistant can search t

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

Imagine having a personal AI secretary accessible right from your Telegram, ready to assist you with information and remember everything you discuss. This n8n workflow transforms Telegram into your in

Telegram Trigger, OpenAI, Agent +9