Automate Telegram video uploads to Google Drive, log metadata in Google Sheets, and enable data queries using a contextual Gemini AI n8n workflow. This n8n template handles file management and AI chat routing.
Download this n8n workflow template and start using it instantly.
Content creators who manage video submissions or archiving via Telegram.
Teams needing a simple, tracked file upload solution from a messaging platform.
Developers looking for advanced n8n templates integrating AI agents, cloud storage, and database logging.
Users who want to leverage the power of n8n and the Gemini model for dynamic data lookup.
This comprehensive automation solves the common challenge of efficiently managing multimedia content shared through instant messaging. By using this n8n workflow, any video sent to your Telegram bot is automatically downloaded, uploaded to a specific Google Drive folder, and meticulously logged in Google Sheets with details like file size, duration, and direct Drive links. Furthermore, the n8n template includes a powerful AI Agent powered by Gemini. This agent utilizes the tracked Google Sheets data ('Data Vidio' tool) to answer user questions about their uploaded files, making the entire system searchable and intelligent. This seamless integration ensures zero manual effort in file handling and tracking, maximizing productivity within your n8n environment. The core of this system relies on the initial Telegram Trigger n8n node to start the flow.
The entire process begins when the Telegram Trigger n8n node receives a message.
Switch1 n8n node checks the incoming message type.Get a file1 Telegram n8n node to download the media. It then uses the Upload file1 Google Drive n8n node to store it securely. Finally, the Append row in sheet1 Google Sheets n8n node logs all relevant metadata. A confirmation message is sent via Telegram./edit, the Code1 n8n node parses the command to extract the File ID and the desired new name. The Update file1 Google Drive n8n node renames the file in the cloud, and the Update row in sheet1 Google Sheets n8n node updates the tracker sheet accordingly.AI Agent1 n8n node. This agent uses the Google Gemini Chat Model1 for processing, maintains context via the Simple Memory1 n8n node, and can query the video data using the Data Vidio1 Google Sheets tool. The AI's response is sent back to the user via Telegram.To deploy this advanced n8n workflow template, follow these steps:
Telegram Trigger and the Send a text message n8n nodes. Ensure your bot is configured to receive messages.Append row in sheet1, Update row in sheet1, and Data Vidio1). This sheet is crucial for tracking metadata and enabling AI queries.Google Gemini Chat Model1 n8n node. Telegram Trigger: The starting n8n trigger node, set to listen for new 'message' updates. It initiates the n8n workflow whenever a user interacts with the bot.
Switch1 (Core Logic Flow Control): This vital n8n node routes the flow based on message content, determining if the message is a video upload, a rename command (/edit), or an AI query.
Get a file1 (Telegram): Retrieves the video file data from Telegram using the dynamic expression {{ $json.message.video.file_id }}.
Upload file1 (Google Drive): Handles the physical upload of the video to a predefined Google Drive folder. This n8n node ensures files are correctly archived.
Append row in sheet1 (Google Sheets): Logs detailed metrics (e.g., file ID, duration, size in MB using ($json.size / (10241024)).toFixed(2)) into the sheet for reporting and AI access.
Code1 (Custom Code Scripting): Parses the /edit text command, splitting it by spaces to extract the target file ID and the new file name, preparing data for downstream Google Drive n8n nodes.
AI Agent1 (LangChain Agent): The brain of the system. It connects the Google Gemini Chat Model1 LLM, uses Simple Memory1 for context, and links the Data Vidio1 Google Sheets Tool, enabling conversational data lookups. The system prompt is configured to act as a personal assistant.
Use this robust n8n workflow to automate Telegram channel giveaways. It handles user enrollment, database state management, random winner selection, and database cleanup using multiple n8n node configurations.

Use this comprehensive n8n workflow to create a Retrieval-Augmented Generation (RAG) chatbot on Telegram. Index PDFs into Pinecone and answer queries using Groq LLMs.

A robust n8n workflow utilizing a Telegram trigger to implement an interactive multi-select checkbox module, saving choices and status updates directly to a Postgres database. Download these advanced n8n templates.

Learn how to use the Magic Inbox n8n node to securely share n8n workflows and complex automation templates between self-hosted n8n instances using a peer-to-peer system, triggered by a Telegram n8n trigger.

Use this powerful n8n workflow to automate image retrieval from Google Drive, including dynamic resizing and sorting, for bulk insertion into Google Docs. A highly efficient n8n template.


Hi, I’m AbSa~ automation builder and AI tinkerer. I help teams simplify their processes with n8n and creative workflow design.







































