{
  "id": "fardTiBnePlHVSCf",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Translate English scripts to multi-language audio using AI and ElevenLabs",
  "tags": [],
  "nodes": [
    {
      "id": "077f93ea-1e9f-47dc-9b9c-40fc883aef7f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        -432
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9af6ecf6-4aaa-4fa4-8c69-cd288c28ad1f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "604542b7-d927-436b-9f3b-47d046f05795",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1440,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5eb033f0-1f75-4030-a9b3-5a95e1e694e5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        16
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "69e7be0d-38c5-4d46-9eab-27016416c9eb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        208,
        272
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c31a9832-c92e-4a9b-a9ff-f303f2de38a4",
      "name": "Split Translations",
      "type": "n8n-nodes-base.itemLists",
      "position": [
        -928,
        192
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "a99b09df-e2dd-4c76-a6db-9f99c8291e5a",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -32,
        192
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "f95dd138-237b-4f17-a497-e5ff856cdf57",
      "name": "Return Audio Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -256,
        112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "93c39ab8-aae3-4da7-9961-2ef242ff32be",
      "name": "Extract Request Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        -1616,
        192
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d2db9229-8c5f-40e7-b64c-4a7e67faf63f",
      "name": "Translate with GPT-4",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1328,
        192
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "d7b3f4d2-3c7e-49f5-92e3-cdaa49e21a36",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1392,
        416
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ceb99849-46af-4f3f-bc95-85e9717ef584",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1136,
        416
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "bb025cb0-3d1a-4ed0-9234-87ebf3b1afd8",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -1264,
        416
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "1fcda62c-4363-4a86-8cde-f6663df03cde",
      "name": "Generate Audio with ElevenLabs",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -480,
        112
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "176dd9a7-fe97-4464-8a05-413c5c918e5b",
      "name": "Loop Over Translations",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -704,
        192
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1c5bc154-f22c-4312-a189-76e228634e6b",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1840,
        192
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "9ddb38a1-8aa9-4d35-90b0-58740399d865",
      "name": "Error Handler Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -1760,
        992
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3574d827-f441-4bd8-872d-bf9724808c0d",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1856,
        832
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "faeeeb8d-96cc-4910-afc1-b6b5fc084046",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1456,
        992
      ],
      "parameters": {},
      "typeVersion": 2.3
    }
  ],
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e3394ae7-66d9-44cf-a9d6-c99620cb68d8",
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Translate with GPT-4",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Extract Request Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Translate with GPT-4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Split Translations": {
      "main": [
        [
          {
            "node": "Loop Over Translations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate with GPT-4": {
      "main": [
        [
          {
            "node": "Split Translations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Handler Trigger": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Return Audio Response": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Translations": {
      "main": [
        [],
        [
          {
            "node": "Generate Audio with ElevenLabs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Google Drive": {
      "main": [
        [
          {
            "node": "Loop Over Translations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Translate with GPT-4",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Extract Request Parameters": {
      "main": [
        [
          {
            "node": "Translate with GPT-4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Audio with ElevenLabs": {
      "main": [
        [
          {
            "node": "Return Audio Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}