{
  "name": "Download Instagram videos to Google Drive with auto-email delivery",
  "nodes": [
    {
      "id": "adba156d-f31e-482b-87ee-40800c553e21",
      "name": "n8n Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        1120,
        520
      ]
    },
    {
      "id": "1db2e5d0-5129-45e7-9a40-3deba9fcaed1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        320
      ],
      "parameters": {
        "width": null,
        "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"
      }
    },
    {
      "id": "1375ec94-2db9-408d-a259-3394b40b9dea",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        320
      ],
      "parameters": {
        "width": null,
        "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."
      }
    },
    {
      "id": "08f49617-2164-489b-8a0e-9d8e1c8d1dbb",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        300
      ],
      "parameters": {
        "width": null,
        "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."
      }
    },
    {
      "id": "edbf05ef-28ce-4d63-80f9-c9553b083a96",
      "name": "Sticky Note4",
      "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."
      }
    },
    {
      "id": "80799827-7c68-4956-b764-f7d9eb9b965d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        300
      ],
      "parameters": {
        "width": null,
        "height": 360,
        "content": " **Upload To Google Drive**  \n   Uploads the retrieved MP4 file to Google Drive, providing cloud storage and easy file management."
      }
    },
    {
      "id": "27997f6d-bb16-407e-b8e2-9e7998064684",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2620,
        300
      ],
      "parameters": {
        "width": null,
        "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."
      }
    },
    {
      "id": "2f01c571-a958-4264-bf38-56f98e76bc02",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2920,
        300
      ],
      "parameters": {
        "width": null,
        "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."
      }
    },
    {
      "id": "1f550fe8-9302-4b4b-801f-fb7ea316c921",
      "name": "Upload To Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2360,
        500
      ]
    },
    {
      "id": "01c9373c-405e-4184-9118-2d9369297ead",
      "name": "Set permissions Google Drive ",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2680,
        500
      ]
    },
    {
      "id": "2b8b6c94-d557-45ad-931f-f9ddd76dd4fa",
      "name": "Sticky Note",
      "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 sendin"
      }
    },
    {
      "id": "cf0d989d-6fd3-4f56-b141-ab9895018d63",
      "name": "API Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1480,
        520
      ]
    },
    {
      "id": "57fe215b-33c8-4a93-81f0-7d761c6c7bb9",
      "name": "Check for API Error",
      "type": "n8n-nodes-base.if",
      "position": [
        1800,
        520
      ]
    },
    {
      "id": "5058de96-27e8-469c-9e1c-4c8119bd77f1",
      "name": "Download Instagram Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2100,
        500
      ]
    },
    {
      "id": "9233e6c3-b6ef-44dc-a748-fd14cd1406d9",
      "name": "Deliver Download Link to User",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2980,
        500
      ]
    }
  ],
  "connections": {
    "API Request": {
      "main": [
        [
          {
            "node": "Check for API Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "n8n Form Trigger": {
      "main": [
        [
          {
            "node": "API Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for API Error": {
      "main": [
        [
          {
            "node": "Download Instagram Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload To Google Drive": {
      "main": [
        [
          {
            "node": "Set permissions Google Drive ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Instagram Video": {
      "main": [
        [
          {
            "node": "Upload To Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set permissions Google Drive ": {
      "main": [
        [
          {
            "node": "Deliver Download Link to User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}