AutomationFlowsGeneral › Upload video to drive via google script

Upload video to drive via google script

Upload video to drive via google script. Uses manualTrigger, googleDrive, httpRequest. Event-driven trigger; 3 nodes.

Event trigger★☆☆☆☆ complexity3 nodesGoogle DriveHttp Request
General Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "wGv0NPBA0QLp4rQ6",
  "name": "Upload video to drive via google script",
  "tags": [],
  "nodes": [
    {
      "id": "b89e494d-f85d-4ad5-b0ba-5699f59a58d5",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -300,
        -40
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "061597f1-d57d-4733-bc9f-3a3070bd5e95",
      "name": "Rename Uploaded Video",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        180,
        -40
      ],
      "parameters": {
        "fileId": {
          "__rl": true,
          "mode": "url",
          "value": "={{ $json.driveUrl }}"
        },
        "options": {},
        "operation": "update",
        "newUpdatedFileName": "Music Video 1"
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "7e8ff194-fdb7-43e4-afde-bba466ac9dd3",
      "name": "Send URL to GDrive Script and Upload",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -60,
        -40
      ],
      "parameters": {
        "url": "\"your_google_script_web_app_url\"",
        "method": "POST",
        "options": {},
        "jsonBody": "{\n  \"videoUrl\": \"https://example.com/path/to/your.mp4\",\n  \"secret\": \"your-strong-secret-here\"\n}",
        "sendBody": true,
        "specifyBody": "json"
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b554bac3-27d2-498a-9e5a-b98cde9ea593",
  "connections": {
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Send URL to GDrive Script and Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send URL to GDrive Script and Upload": {
      "main": [
        [
          {
            "node": "Rename Uploaded Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Upload video to drive via google script. Uses manualTrigger, googleDrive, httpRequest. Event-driven trigger; 3 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →