Automate building a Retrieval-Augmented Generation (RAG) knowledge base using this advanced n8n workflow. Extract summaries from YouTube videos or articles, store them in Google Sheets, and query them instantly using a Telegram bot.
Download this n8n workflow template and start using it instantly.
Users looking to automatically curate and summarize content from the web (YouTube, articles).
Knowledge workers or researchers who need a searchable, personalized knowledge base (RAG).
Developers seeking advanced n8n templates utilizing AI Agents and custom tools.
Anyone wanting to build a conversational interface for their private data store using a Telegram bot.
This powerful n8n workflow provides a comprehensive solution for automated knowledge management. It addresses the common challenge of processing and making long-form content (like YouTube transcripts or detailed articles) instantly searchable. This specific n8n workflow operates in two phases: ingestion and retrieval. By leveraging the flexibility of the n8n platform, users can automatically feed links into a Google Sheet, and the automation handles the complex extraction, summarization via Google Gemini, and secure storage in another Sheet (acting as the knowledge base). Furthermore, it implements a Retrieval-Augmented Generation (RAG) system, allowing users to query this data instantly via a Telegram bot. This approach makes this one of the most practical n8n templates available for creating a personalized, accessible data store.
This automation utilizes two distinct entry points, each defined by a specific n8n trigger, creating a dual-function system.
youtu.be or youtube.com).Article Refined Data).This n8n workflow requires several credentials for full functionality. Ensure you have access to your n8n instance and the necessary API keys.
Telegram Trigger: The primary n8n trigger for data retrieval, initializing the RAG search when a user sends a message to the bot.
Google Sheets Trigger: The core n8n trigger for data ingestion, initiating the extraction and summarization process when a new URL is added.
If n8n node: Critical flow control component that directs the data based on URL type (YouTube vs. standard article).
HTTP Request n8n node (Apify): Configured to execute the YouTube Transcript Ninja Actor via API, obtaining the source material for the summarization.
Information Extractor n8n node: An essential LangChain n8n node that uses the Google Gemini Chat Model to extract structured, summarized data (Title and Article Refined Data) from the raw input.
Google Gemini Chat Model n8n node: Supplies the large language model capabilities needed for advanced reasoning and summarization across multiple parts of the n8n workflow.
AI Agent n8n node: The centerpiece of the RAG system. It utilizes the Get row(s) Google Sheets n8n node as a custom tool to dynamically search the stored knowledge before generating an informed response based on the user's Telegram input.
Google Sheets (Append & Update) n8n node: Handles persistent storage, adding the refined summaries to the knowledge base and marking the URLs as processed in the input sheet. This powerful n8n node setup maintains data integrity.
Manage your Google Calendar via Telegram chat. This advanced n8n workflow uses Gemini for natural language processing, Whisper for voice transcription, and features a scheduled n8n trigger for proactive reminders.

Learn how to build an expert Accountant AI Agent using n8n to query your Notion finance data instantly via Telegram and WhatsApp. Use this powerful n8n workflow to automate reporting.

Use this comprehensive n8n workflow to track personal finances, manage budgets, and receive automated alerts via an AI Agent using Google Sheets. A crucial n8n templates for finance automation.

Use this comprehensive n8n workflow to deploy an AI assistant via Telegram. Caylee manages your Gmail, Google Calendar, and Tasks, supporting both text and voice commands.

Build a powerful RAG chatbot for your resume or portfolio using an n8n workflow, Pinecone, Google Gemini, and NocoDB. This n8n templates includes conversation history logging and daily Gmail summary reports.








































