Instagram-Videos herunterladen zu Google Drive und automatisch per E-Mail versenden

Fortgeschritten

Dies ist ein File Management-Bereich Automatisierungsworkflow mit 15 Nodes. Hauptsächlich werden If, EmailSend, FormTrigger, GoogleDrive, HttpRequest und andere Nodes verwendet. Instagram-Videos auf Google Drive herunterladen und automatisch per E-Mail versenden

Voraussetzungen
  • Google Drive API-Anmeldedaten
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752"
  },
  "nodes": [
    {
      "id": "adba156d-f31e-482b-87ee-40800c553e21",
      "name": "n8n Formular-Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        1120,
        520
      ],
      "webhookId": "5192b179-44d9-4ca6-9bb7-0111d481ee16",
      "parameters": {
        "options": {},
        "formTitle": "Instagram To Mp4",
        "formFields": {
          "values": [
            {
              "fieldLabel": "url"
            },
            {
              "fieldLabel": "email"
            }
          ]
        },
        "formDescription": "Instagram To Mp4 Downloader"
      },
      "typeVersion": 2.2
    },
    {
      "id": "1db2e5d0-5129-45e7-9a40-3deba9fcaed1",
      "name": "Haftnotiz1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        320
      ],
      "parameters": {
        "height": 360,
        "content": "**n8n Form Trigger**  \n   This node captures user input from a web form, specifically the Instagram video URL and the user's email address, to initiate the workflow.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "1375ec94-2db9-408d-a259-3394b40b9dea",
      "name": "Haftnotiz2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        320
      ],
      "parameters": {
        "height": 360,
        "content": " **API Request**  \n   It sends the submitted instagram To URL to an rapid API which processes the video and converts it into an MP4 format."
      },
      "typeVersion": 1
    },
    {
      "id": "08f49617-2164-489b-8a0e-9d8e1c8d1dbb",
      "name": "Haftnotiz3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        300
      ],
      "parameters": {
        "height": 360,
        "content": "**Check for API Error**  \n   This node validate error false if yes then will continue to next node else it will stop execution."
      },
      "typeVersion": 1
    },
    {
      "id": "edbf05ef-28ce-4d63-80f9-c9553b083a96",
      "name": "Haftnotiz4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2060,
        300
      ],
      "parameters": {
        "width": 220,
        "height": 360,
        "content": "**Download Instagram Video**  \n   After waiting, this node fetches the resulting MP4 file or its metadata from the API, confirming the file is ready for the next steps."
      },
      "typeVersion": 1
    },
    {
      "id": "80799827-7c68-4956-b764-f7d9eb9b965d",
      "name": "Haftnotiz5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        300
      ],
      "parameters": {
        "height": 360,
        "content": " **Upload To Google Drive**  \n   Uploads the retrieved MP4 file to Google Drive, providing cloud storage and easy file management."
      },
      "typeVersion": 1
    },
    {
      "id": "27997f6d-bb16-407e-b8e2-9e7998064684",
      "name": "Haftnotiz6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2620,
        300
      ],
      "parameters": {
        "height": 360,
        "content": "**Set permissions Google Drive  (Share)**  \n   Modifies the file’s permissions in Google Drive to allow anyone with the link to access or download the MP4 file."
      },
      "typeVersion": 1
    },
    {
      "id": "2f01c571-a958-4264-bf38-56f98e76bc02",
      "name": "Haftnotiz7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2920,
        300
      ],
      "parameters": {
        "height": 360,
        "content": "**Deliver Download Link to User**  \n   Sends an automated email to the user with the link to download their converted MP4 file, completing the user experience."
      },
      "typeVersion": 1
    },
    {
      "id": "1f550fe8-9302-4b4b-801f-fb7ea316c921",
      "name": "Hochladen zu Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2360,
        500
      ],
      "parameters": {
        "name": "=",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": "root",
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "qUtlCnYpk7bXXaYp",
          "name": "Google Sheets account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "01c9373c-405e-4184-9118-2d9369297ead",
      "name": "Berechtigungen setzen Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2680,
        500
      ],
      "parameters": {
        "fileId": "={{ $json.resource.id }}",
        "options": {},
        "operation": "share",
        "permissionsUi": {
          "permissionsValues": {
            "role": "reader",
            "type": "anyone"
          }
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "qUtlCnYpk7bXXaYp",
          "name": "Google Sheets account 3"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "2b8b6c94-d557-45ad-931f-f9ddd76dd4fa",
      "name": "Haftnotiz",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        160
      ],
      "parameters": {
        "width": 620,
        "height": 2100,
        "content": "# 📥 Instagram to MP4 – Download & Upload to Google Drive with Auto Email\n\n## ✨ Description\n\nThis workflow automates converting **Instagram videos to MP4**, storing them in **Google Drive**, and sending the user an email with the download link. Users just need to submit a form with the Instagram video URL and their email address — the rest is fully automated.\n\n---\n\n## 🧩 Workflow Breakdown (Node by Node)\n\n### 1. ## 🧾 n8n Form Trigger\n- **Node Name:** `n8n Form Trigger`\n- **Purpose:** Captures user input from a form.\n- **Fields:** \n  - `url` – Instagram video URL\n  - `email` – Email address to receive the MP4 link\n\n---\n\n### 2. ## 📡 Get MP4 Link from RapidAPI\n- **Node Name:** `API Request`\n- **Purpose:** Sends the Instagram video URL to RapidAPI's \"Instagram Video Downloader\" to get an MP4 download link.\n\n---\n\n### 3. ## ⚠️ Check for API Error\n- **Node Name:** `Check for API Error`\n- **Purpose:** Checks if the API response has an error.\n- **Condition:** Continues only if `error === false`.\n\n---\n\n### 4. ## 📥 Download Instagram Video\n- **Node Name:** `Download Instagram Video`\n- **Purpose:** Downloads the MP4 video from the link provided by the API.\n- **Headers:** Sets a browser-like `User-Agent` for successful fetch.\n\n---\n\n### 5. ## ☁️ Upload to Google Drive\n- **Node Name:** `Upload To Google Drive`\n- **Purpose:** Uploads the MP4 file to your Google Drive using a connected Service Account.\n\n---\n\n### 6. ## 🔗 Set Google Drive Sharing Permissions\n- **Node Name:** `Set permissions Google Drive`\n- **Purpose:** Makes the uploaded MP4 file shareable by anyone with the link.\n\n---\n\n### 7. ## 📧 Deliver Download Link to User\n- **Node Name:** `Deliver Download Link to User`\n- **Purpose:** Sends the user an email with the public link to the MP4 video.\n- **To:** `={{ $json.email }}`\n- **Message:** Includes `{{ $json.webViewLink }}` for downloading the file.\n\n---\n\n## ✅ Key Features\n\n- Converts **Instagram videos to MP4** automatically  \n- Uploads files to **Google Drive**  \n- Sends download link via **email**  \n- Simple **form-based user input**\n\n---\n\n## 🔐 Requirements\n\n- RapidAPI account + API key for Instagram Video Downloader\n- Google Cloud Service Account with Drive API access\n- SMTP or Gmail credentials for email delivery\n- n8n instance (self-hosted or cloud)\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "cf0d989d-6fd3-4f56-b141-ab9895018d63",
      "name": "API Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1480,
        520
      ],
      "parameters": {
        "url": "https://instagram-video-downloader13.p.rapidapi.com/index.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.url }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "instagram-video-downloader13.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "YOUR_API_KEY"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "57fe215b-33c8-4a93-81f0-7d761c6c7bb9",
      "name": "Auf API Fehler prüfen",
      "type": "n8n-nodes-base.if",
      "position": [
        1800,
        520
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "71b56363-9bc8-4516-801d-26dea43f61f3",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              },
              "leftValue": "={{ $json.error }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5058de96-27e8-469c-9e1c-4c8119bd77f1",
      "name": "Instagram Video herunterladen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2100,
        500
      ],
      "parameters": {
        "url": "={{ $json.medias[0].url }}",
        "options": {
          "timeout": 10000000,
          "redirect": {
            "redirect": {
              "maxRedirects": 10
            }
          },
          "response": {
            "response": {
              "neverError": true,
              "fullResponse": true
            }
          },
          "lowercaseHeaders": false
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "user-agent",
              "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
            },
            {
              "name": "accept",
              "value": "*/*"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "9233e6c3-b6ef-44dc-a748-fd14cd1406d9",
      "name": "Download-Link an Benutzer senden",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2980,
        500
      ],
      "parameters": {
        "text": "Your download link: {{ $json.webViewLink }}",
        "options": {},
        "subject": "🎵 Your Instagram MP4 is ready!",
        "toEmail": "={{ $json.email }}",
        "fromEmail": "your@email.com"
      },
      "credentials": {
        "smtp": {
          "id": "H0f4Gja9ECFRA34L",
          "name": "SMTP account 2"
        }
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "cf0d989d-6fd3-4f56-b141-ab9895018d63": {
      "main": [
        [
          {
            "node": "57fe215b-33c8-4a93-81f0-7d761c6c7bb9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "adba156d-f31e-482b-87ee-40800c553e21": {
      "main": [
        [
          {
            "node": "cf0d989d-6fd3-4f56-b141-ab9895018d63",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "57fe215b-33c8-4a93-81f0-7d761c6c7bb9": {
      "main": [
        [
          {
            "node": "5058de96-27e8-469c-9e1c-4c8119bd77f1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f550fe8-9302-4b4b-801f-fb7ea316c921": {
      "main": [
        [
          {
            "node": "01c9373c-405e-4184-9118-2d9369297ead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5058de96-27e8-469c-9e1c-4c8119bd77f1": {
      "main": [
        [
          {
            "node": "1f550fe8-9302-4b4b-801f-fb7ea316c921",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "01c9373c-405e-4184-9118-2d9369297ead": {
      "main": [
        [
          {
            "node": "9233e6c3-b6ef-44dc-a748-fd14cd1406d9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Dateiverwaltung

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes15
Kategorie1
Node-Typen6
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34