{
  "name": "Generate AI avatar videos from scripts using ElevenLabs and HeyGen",
  "nodes": [
    {
      "id": "3073c8f6-4a73-4cc9-bd63-6068f426e6ea",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        -384
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a6a5a90f-0044-4a56-a28a-8348d9111b73",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        176
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3f667635-af02-4cad-b164-2a6a3b65a091",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3a0269c6-2de4-41ca-a390-39f4fbea16fd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1984,
        144
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "27590696-d776-44a3-91ef-cde2afa0fe3c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2896,
        160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "42d5bde8-2ab7-4303-ba52-3e73e29e179f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3808,
        336
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1487b226-371a-4903-85ae-5be02eab5541",
      "name": "Wait 5 Seconds",
      "type": "n8n-nodes-base.wait",
      "position": [
        2048,
        320
      ]
    },
    {
      "id": "1ec50d88-0457-46e6-b83d-54f6bd5cf436",
      "name": "Check If Completed",
      "type": "n8n-nodes-base.if",
      "position": [
        2496,
        320
      ]
    },
    {
      "id": "485bdebf-64ef-4878-99d1-43649c39f8c2",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2944,
        320
      ]
    },
    {
      "id": "f409340d-9947-4010-a23e-7d7bbc289d6e",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3168,
        320
      ]
    },
    {
      "id": "c220380a-0a92-46b7-9ccc-78ea50dbaec7",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3616,
        320
      ]
    },
    {
      "id": "9c8c97f6-81bb-474b-be28-94505f5f8371",
      "name": "Download from Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3392,
        320
      ]
    },
    {
      "id": "e21a37e9-14d2-4350-a38e-24e0165b03a1",
      "name": "Generate Audio with ElevenLabs",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        320
      ]
    },
    {
      "id": "22460e44-11a3-4d04-999d-3811c8e1d27b",
      "name": "Upload Audio to HeyGen",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1376,
        320
      ]
    },
    {
      "id": "550908e4-1103-433c-a448-337af765fc8f",
      "name": "Create Avatar Video with Audio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        320
      ]
    },
    {
      "id": "fb44b1b6-72c3-4a48-8e45-76004b48a896",
      "name": "Extract Video ID",
      "type": "n8n-nodes-base.set",
      "position": [
        1824,
        320
      ]
    },
    {
      "id": "56c4b566-4ccb-4619-a746-aa68d960cdef",
      "name": "Poll Video Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2272,
        240
      ]
    },
    {
      "id": "deb4a706-e7ff-4c95-b3f6-33095ca7be7f",
      "name": "Extract Video Details",
      "type": "n8n-nodes-base.set",
      "position": [
        2720,
        320
      ]
    },
    {
      "id": "f4bda44e-4597-4593-a0ff-02e00cc40416",
      "name": "Parse Request Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        928,
        320
      ]
    },
    {
      "id": "54660167-2c01-4670-8a56-fd433a3bd6c3",
      "name": "Webhook - Receive Request",
      "type": "n8n-nodes-base.webhook",
      "position": [
        704,
        320
      ]
    },
    {
      "id": "dd5ac983-bb1d-4f8b-a678-40abdc01de69",
      "name": "Error Handler Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        704,
        976
      ]
    },
    {
      "id": "d2b4d74f-bb18-4a1e-aaeb-0c50bca58947",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        816
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "641becbb-794b-48ac-bf83-c3e0bceaf271",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        1008,
        976
      ]
    }
  ],
  "connections": {
    "Download Video": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 Seconds": {
      "main": [
        [
          {
            "node": "Poll Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Video ID": {
      "main": [
        [
          {
            "node": "Wait 5 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Poll Video Status": {
      "main": [
        [
          {
            "node": "Check If Completed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Completed": {
      "main": [
        [
          {
            "node": "Extract Video Details",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Drive": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Handler Trigger": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Video Details": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Audio to HeyGen": {
      "main": [
        [
          {
            "node": "Create Avatar Video with Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Google Drive": {
      "main": [
        [
          {
            "node": "Download from Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Request Parameters": {
      "main": [
        [
          {
            "node": "Generate Audio with ElevenLabs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Receive Request": {
      "main": [
        [
          {
            "node": "Parse Request Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Avatar Video with Audio": {
      "main": [
        [
          {
            "node": "Extract Video ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Audio with ElevenLabs": {
      "main": [
        [
          {
            "node": "Upload Audio to HeyGen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}