Automate Saving Telegram Files to Google Drive for Team Collaboration

Automatically save new files received on Telegram directly to Google Drive using the Google Drive API and Telegram integration. This workflow streamlines file management by ensuring that all important documents shared in Telegram are instantly stored in a secure location. Key features include real-time file transfers, automated sorting based on content type, and seamless integration with your existing Google Drive structure. Perfect for business teams managing project files, client documents, or team resources through Telegram. Requires 2 accounts: Telegram Bot Token and Google Drive OAuth. Save up to 10 hours weekly by eliminating manual downloads and ensuring all team members have instant access to shared files.

1 Trigger
10,435 views3 nodesFeb 2024Marcus Rodriguez

Categories

File Management

APIs

Google Drive API

Credentials

2 required

Quick Actions

Copy or download to import into your n8n instance

Workflow JSON
{
  "id": "a4GTp998ENMMfuqK",
  "meta": {
    "instanceId": "24bd2f3b51439b955590389bfa4dd9889fbd30343962de0b7daedce624cf4a71"
  },
  "name": "Save new Files received on Telegram to Google Drive",
  "tags": [],
  "nodes": [
    {
      "id": "0fcb072b-ea4b-43b2-ad7c-46ad62b1e2ad",
      "name": "On new Telegram Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        900,
        520
      ],
      "webhookId": "1e92584a-dd10-4fec-86a6-3b2691b85bba",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {
          "download": true
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "EO2PA74ehePPYVFU",
          "name": "Telegram Notification Bot"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "08e492f8-b969-4de2-b207-17fcd3cb8787",
      "name": "If Message contains a File",
      "type": "n8n-nodes-base.if",
      "position": [
        1160,
        520
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "9b876834-1a86-48f1-9890-df60c739c91c",
              "operator": {
                "type": "object",
                "operation": "exists",
                "singleValue": true
              },
              "leftValue": "={{ $json.message.document }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2
    },
    {
      "id": "f155a855-0eac-44c0-a52a-93446b9b3455",
      "name": "Upload File to GDrive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1500,
        500
      ],
      "parameters": {
        "name": "={{ $json.message.document.file_name }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "11gyG2TvG0sqCG202CN-w9rloGW-CzKBc",
          "cachedResultUrl": "https://drive.google.com/drive/folders/11gyG2TvG0sqCG202CN-w9rloGW-CzKBc",
          "cachedResultName": "Demos"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "lFPZxFgMIaEnEtm9",
          "name": "Google Drive account (automate everything)"
        }
      },
      "typeVersion": 3
    }
  ],
  "active": true,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f474f0f2-6d57-4bb8-bf1d-15ed35cf8ef2",
  "connections": {
    "On new Telegram Message": {
      "main": [
        [
          {
            "node": "If Message contains a File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Message contains a File": {
      "main": [
        [
          {
            "node": "Upload File to GDrive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Related Workflows

Automate PDF Customer Support with OpenAI and Google Drive API

Automate customer support inquiries by integrating PDF documents with an AI assistant powered by OpenAI GPT. This workflow allows communication teams to extract information from product PDFs and provide instant answers to customer questions around the clock. Features real-time PDF processing, contextual AI responses, and seamless integration with Google Drive for document storage. Perfect for communication teams in e-commerce managing 100+ daily inquiries or tech support handling extensive product documentation. Requires 3 accounts: OpenAI API Key, Google Drive OAuth, and Gmail OAuth2. Save up to 5 hours each week by automating responses and reducing inquiry resolution time by 90%.

19,801 views
File ManagementAI Summarization

Automate TikTok Video Downloads to Google Drive with HTTP Request API

Streamline your TikTok video downloads directly to Google Drive using the HTTP Request API. This automation eliminates the hassle of manual downloads and ensures you have your favorite content stored securely in the cloud. Features include seamless API integration for real-time file transfers, automatic file naming conventions, and easy access to your downloaded videos on any device. Perfect for developers and integrators looking to automate media management, this workflow simplifies the process of storing TikTok videos for content creators and marketers. Requires 1 account: Google Drive OAuth. Save 3 hours weekly by automating video downloads and ensure instant access to your media library without the need for manual intervention.

17,531 views
File Management

Automate Customer Support Responses with Local File Trigger and AI Chat

Automate customer support responses for your e-commerce store using a local File Trigger and AI Chat powered by Mistral Cloud. This workflow enables you to upload product documents and automatically respond to inquiries, ensuring 24/7 availability for your customers. Features real-time command execution, structured output parsing for accurate answers, and seamless integration with your existing systems. Perfect for e-commerce businesses handling over 50 inquiries daily. Requires 1 account: Mistral Cloud API. Save up to 5 hours each week by managing inquiries instantly and improving response accuracy by 90%.

14,580 views
File ManagementAI Summarization

Automate Customer Support with OpenAI GPT for Instant Answers

Automate customer support inquiries using an AI assistant powered by OpenAI GPT. Set up an HTTP request to gather data, process it with OpenAI, and provide real-time responses to customer questions. Features include conversation memory for context-aware interactions, automatic processing of inquiries, and instant feedback. Perfect for e-commerce stores receiving 50+ daily inquiries or SaaS platforms in need of efficient support solutions. Requires 1 account: OpenAI API Key. Save up to 5 hours a week by handling over 100 inquiries daily with accurate, automated responses tailored to your product documentation.

13,004 views
File ManagementMultimodal AI

How to Use This Workflow

1Import to n8n

  1. Copy the JSON using the button above
  2. Open your n8n instance
  3. Click “Import workflow” or press Ctrl+V
  4. Paste the JSON and click “Import”

2Before Running

Configure credentials and update service-specific settings before executing the workflow. Review required credentials in the Technical Details section above.

10.4K