Telegram RAG pdf

Load data into database Fetch file from Telegram, split it into chunks and insert into Pinecone index, a message from Telegram will be sent just to let the user know that the process finished

Workflow Structure (18 nodes)
100%
Langchain.chain Retrieval Qa
Question and Answer Chain
Telegram Trigger
Telegram Trigger
Telegram
Telegram Response
If
Check If is a document
Telegram
Telegram get File
Code
Change to application/pdf
Langchain.embeddings Open Ai
Embeddings OpenAI
Langchain.document Default Data Loader
Default Data Loader
Langchain.vector Store Pinecone
Pinecone Vector Store
Limit
Limit to 1
Telegram
Telegram Response about Database
Langchain.lm Chat Groq
Groq Chat Model
Langchain.vector Store Pinecone
Pinecone Vector Store1
Langchain.retriever Vector Store
Vector Store Retriever
Langchain.embeddings Open Ai
Embeddings
Stop And Error
Stop and Error
Langchain.text Splitter Recursive Character Text Splitter
Recursive Character Text Splitter
Stop And Error
Stop and Error1
Node Types:
trigger
default
logic
code
action
Requires credentials

Prerequisites

Required Credentials (4)

Groq

Used by: Groq Chat Model

Docs

OpenAI

Used by: Embeddings OpenAI, Embeddings

Docs

Pinecone

Used by: Pinecone Vector Store1, Pinecone Vector Store

Docs

Telegram

Used by: Telegram Trigger, Telegram get File +2 more

Docs

Multiple services required

This workflow needs 4 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~55 min
Score: 83/100
Custom Code
Conditional Logic
4 Integrations

When to Use This Workflow

Streamline Team Communication

Automatically route notifications and updates to the right channels and people.

Reduce information overload while keeping everyone informed.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

Error Reduction

Eliminate human error from routine processes with consistent automation.

Improve accuracy and reliability across your workflows.

workflow.json
{
  "id": "5Ycrm1MuK8htwd96",
  "meta": {
    "instanceId": "e5595d8cd58f3a24b5a8cf05dd852846c05423873db868a2b7d01a778210c45a",
    "templateCredsSetupCompleted": true
  },
  "name": "Telegram RAG pdf",
  "tags": [],
  "nodes": [
    {
      "id": "9fbce801-8c42-43a4-bc70-d93042d68b2c",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -220,
        240
      ],
      "webhookId": "b178f034-9997-4832-9bb4-a43c3015506e",
      "parameters": {
        "updates": [
...

Workflow Details

Nodes
20
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Advanced AI Demo (Presented at AI Developers #14 meetup)

![h](https://i.postimg.cc/9XLvL5dL/slide-sf-talk.pngfull-width)

Slack
Textsplitterrecursivecharactertextsplitter
Embeddingsopenai
Documentdefaultdataloader
39 nodesEvent
Curated

Ask questions about a PDF using AI

Load data into database Fetch file from Google Drive, split it into chunks and insert into Pinecone index

Google-drive
Textsplitterrecursivecharactertextsplitter
Embeddingsopenai
Documentdefaultdataloader
16 nodesEvent
Curated

Supabase Insertion & Upsertion & Retrieval

INSERTING - it's important to use the same embedding model when for any interaction with your vector database (inserting...

Google-drive
Documentdefaultdataloader
Chainretrievalqa
Lmchatopenai
21 nodesEvent
Curated

TeleBot KnowledgeHub

Connect Memorybufferwindow, Vectorstoreinmemory, Textsplitterrecursivecharactertextsplitter and more with this n8n workf...

Memorybufferwindow
Vectorstoreinmemory
Textsplitterrecursivecharactertextsplitter
Documentdefaultdataloader
15 nodesEvent
Curated

Building Your First WhatsApp Chatbot

1. Download Product Brochure PDF [Read more about the HTTP Request Tool](https://docs.n8n.io/integrations/builtin/core-n...

Whatsapp
Lmchatopenai
Memorybufferwindow
Toolvectorstore
28 nodesEvent
Curated

Chat with GitHub OpenAPI Specification using RAG (Pinecone and OpenAI)

Indexing content in the vector database This part of the workflow is responsible for extracting content, generating embe...

Http-request
Vectorstorepinecone
Documentdefaultdataloader
Textsplitterrecursivecharactertextsplitter
17 nodesEvent
Curated