Skip to main content

Telegram to Google Drive: auto upload & track videos with Gemini AI assistant

Workflow preview

Workflow preview
100%
Telegram to Google Drive: auto upload & track videos with Gemini AI assistant preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Overview This workflow automates video uploads from Telegram directly to Google Drive, complete with smart file renaming, Google Sheets logging, and AI assistance via Google Gemini. It’s perfect...

Best for

  • File Management automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googledrive, n8n-nodes-base.telegram, n8n-nodes-base.googlesheets, n8n-nodes-base.switch, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.memorybufferwindow

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AbSa~.

Original n8n.io source

1.1 Workflow description

Title
Telegram to Google Drive: auto upload & track videos with Gemini AI assistant
Workflow name
Telegram to Google Drive: auto upload & track videos with Gemini AI assistant

🚀 Overview

This workflow automates video uploads from Telegram directly to Google Drive, complete with smart file renaming, Google Sheets logging, and AI assistance via Google Gemini. It’s perfect for creators, educators, or organizations that want to streamline video submissions and file management.

⚙️ How It Works

  1. Telegram Trigger -> Start the workflow when a user sends a video file to your Telegram bot.
  2. Switch Node -> Detects file type or command and routes the flow accordingly.
  3. Get File -> Downloads the Telegram video file.
  4. Upload to Google Drive -> Automatically uploads the video to your chosen Drive folder.
  5. Smart Rename -> The file name is auto-formatted using dynamic logic (date, username, or custom tags).
  6. Google Sheets Logging -> Appends or updates upload data (e.g., filename, sender, timestamp) for easy tracking.
  7. AI Agent Integration -> Uses Google Gemini AI connected to Data Vidio memory to analyze or respond intelligently to user queries.
  8. Telegram Notification -> Sends confirmation or status messages back to Telegram.

🧠 Highlights

  • Seamlessly integrates Telegram → Google Drive → Google Sheets → Gemini AI
  • Supports file update or append mode
  • Auto-rename logic via the Code node
  • Works with custom memory tools for smarter AI responses
  • Easy to clone and adapt, just connect your own credentials

🪄 Ideal Use Cases

  • Video assignment submissions for schools or academies
  • Media upload management for marketing teams
  • Automated video archiving and AI-assisted review
  • Personal Telegram-to-Drive backup assistant

🧩 Setup Tips

  1. Copy and use the provided Google Sheet template (SheetTemplate)
  2. Configure your Telegram Bot token, Google Drive, and Sheets credentials
  3. Update the AI Agent node with your Gemini API key and connect the Data Vidio sheet
  4. Test with a sample Telegram video before full automation

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - Upload file1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 2 - Get a file1

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 3 - Append row in sheet1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 4 - Send a text message3

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - Switch1

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 6 - Update file1

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 7 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Update row in sheet1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 9 - Send a text message4

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - AI Agent1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 11 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 12 - Simple Memory1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 13 - Data Vidio1

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 14 - Send a text message5

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Telegram Trigger

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 17 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Telegram to Google Drive: auto upload & track videos with Gemini AI assistant
Complexity advanced
Nodes 20
Categories File Management, AI Chatbot
Author AbSa~
Published 11 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10713/10713.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Telegram to Google Drive: auto upload & track videos with Gemini AI assistant do?

Overview This workflow automates video uploads from Telegram directly to Google Drive, complete with smart file renaming, Google Sheets logging, and AI assistance via Google Gemini. It’s perfect...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 File Management, AI Chatbot use case.