Block 1 - Embeddings OpenAI
- Type / Role
- @n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
Telegram RAG Chatbot with PDF Document & Google Drive Backup An upgraded Retrieval Augmented Generation (RAG) chatbot built in n8n that lets users ask questions via Telegram and receive accurate...
@n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.vectorstoreinmemory, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, n8n-nodes-base.if, n8n-nodes-base.telegram
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.
Original n8n.io sourcePerfect for:
User sends a message
Triggered by the Telegram bot, the workflow checks if the message is text.
Text message → OpenAI RAG Agent
If the message is text, it's passed to a GPT-powered document agent.
This agent:
Send answer back
The bot sends the generated response back to the Telegram user.
Non-text input fallback
If the message is not text, the bot replies with a polite unsupported message.
User uploads PDFs manually
A manual trigger starts the embedding flow.
Default Data Loader
Reads and chunks the PDF(s) into text segments.
Insert to Vector Store (Embedding)
Text chunks are embedded using OpenAI and saved for retrieval.
Backup to Google Drive
The original PDF is uploaded to Google Drive for safekeeping.
Telegram Bot
OpenAI
Google Drive
PDF Ingestion
| Feature | How to Customize |
|---|---|
| Auto-ingest from folders | Add Google Drive/Dropbox watchers for new PDFs |
| Add file upload via Telegram | Extend Telegram bot to receive PDFs and run the embedding flow |
| Track user questions | Log Telegram usernames and questions to a database |
| Summarize documents | Add summarization step on upload |
| Add Markdown or HTML support | Format replies for better Telegram rendering |
Built with 💬 Telegram + 📄 PDF + 🧠 OpenAI Embeddings + ☁️ Google Drive + ⚡ n8n
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 | Build a retrieval-based chatbot with Telegram, OpenAI and Google Drive PDF backup |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | Internal Wiki, AI RAG |
| Author | Trung Tran |
| Published | 05 Aug 2025 |
Use the JSON export at /data/workflows/6994/6994.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.
Telegram RAG Chatbot with PDF Document & Google Drive Backup An upgraded Retrieval Augmented Generation (RAG) chatbot built in n8n that lets users ask questions via Telegram and receive accurate...
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.