Block 1 - Sticky Note - Summary
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
Build a Vectorless PDF Knowledge Bot on Telegram Using PageIndex RAG Who Is This For? This template is built for developers, researchers, and automation builders who want to create a document Q&...
n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, n8n-nodes-base.telegram, n8n-nodes-base.httprequest, n8n-nodes-base.set
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AppStoneLab Technologies LLP.
Original n8n.io sourceThis template is built for developers, researchers, and automation builders who want to create a document Q&A system — without the complexity of vector databases, embeddings, or chunking pipelines.
It's perfect for:
Traditional RAG systems require converting text into vectors, storing them in a vector database, and relying on semantic similarity to retrieve relevant chunks. This approach has known weaknesses:
PageIndex solves this differently. Instead of vectors, it builds a hierarchical tree index (like a Table of Contents) from your PDF using an LLM. At query time, the LLM reasons over that tree — identifies the most relevant sections, retrieves only those, and generates a precise, cited answer.
No embeddings. No vector DB. No chunking.
This n8n template delivers a fully working Telegram-based RAG bot with two independent flows in a single workflow:
📄 Flow 1 → PDF Knowledge Upload (Run Once per Document) Send a PDF file to your Telegram bot. The workflow downloads it and uploads it to PageIndex cloud, where the tree index is built automatically.
💬 Flow 2 → Q&A Chat (Runs Every Time) Send any question as a text message to the same Telegram bot. The workflow fetches all your indexed documents, sends the question to PageIndex's LLM reasoning engine, and delivers a cited answer back to your Telegram chat.
file_id.POST /doc/. PageIndex builds a hierarchical tree index (TOC with LLM-generated summaries per section). Returns a doc_id. No vectors are created.GET /docs on PageIndex to retrieve all previously uploaded documents.doc_id strings.doc_ids to PageIndex POST /chat/completions. PageIndex's LLM traverses the tree, identifies the relevant nodes, retrieves the raw text, and generates an answer with page citations.chat_id./newbot and follow the promptsYOUR_PAGEINDEX_API_KEY in these three nodes:☁️ Index PDF on PageIndex📚 Fetch All Indexed Documents🧠 LLM Reasoning over Document TreeBoth Telegram Trigger nodes and the Telegram send node use the same credential. Set your Telegram API credentials once and n8n will apply them across all nodes automatically.
| Service | Where to Get | Used In |
|---|---|---|
| Telegram Bot Token | @BotFather on Telegram | All Telegram nodes |
| PageIndex API Key | API Key From Dashboard | Upload + Chat nodes |
doc_id). The Q&A flow automatically fetches all of them and reasons across all documents simultaneously.LLM Reasoning over Document Tree node, adjust "temperature": 0.5 for more creative (higher) or more precise (lower) answers."enable_citations": true/false in the chat node body to control whether page references appear in answers.Extract Document IDs node to filter only documents with status: completed or by name to limit which docs are queried.PageIndex is an open-source vectorless RAG framework by VectifyAI. It powers the Mafin 2.5 financial assistant which achieved 98.7% accuracy on FinanceBench - significantly outperforming GPT-4o (~31%) on document-intensive tasks.
Feel free to reach out via the n8n Community Forum or check out more automation templates on AppStoneLab Technologies.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Chat with your PDF documents using PageIndex vectorless RAG via Telegram |
|---|---|
| Complexity | advanced |
| Nodes | 19 |
| Categories | Internal Wiki, AI RAG |
| Author | AppStoneLab Technologies LLP |
| Published | 10 Mar 2026 |
Use the JSON export at /data/workflows/13977/13977.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Build a Vectorless PDF Knowledge Bot on Telegram Using PageIndex RAG Who Is This For? This template is built for developers, researchers, and automation builders who want to create a document Q&...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Internal Wiki, AI RAG use case.