{
  "name": "Clone a voice and create talking avatar videos using Anthropic and deAPI",
  "nodes": [
    {
      "id": "646f3aea-5b19-40fd-af2f-302c1d1bf63d",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1072,
        -1504
      ],
      "parameters": {
        "width": 668,
        "height": 820,
        "content": "## Try It Out!\n### Clone a voice from a short audio clip and generate a talking avatar video with a custom first frame.\n\nThis workflow reads a reference audio file and a first frame image, clones the "
      }
    },
    {
      "id": "d2771ad3-78e1-4c2f-a793-4e25751ef170",
      "name": "Sticky Note - Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2064,
        -544
      ],
      "parameters": {
        "width": 436,
        "height": 540,
        "content": "## 1. Start & Configure\nClick **Test Workflow** to run.\n\nThe **Set Fields** node defines:\n- **text** — what the avatar will say\n- **video_prompt** — visual description for the avatar video\n- **lang** "
      }
    },
    {
      "id": "64ec1cde-af35-4658-8ba0-6936bfa76578",
      "name": "Sticky Note - Read Files",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1600,
        -736
      ],
      "parameters": {
        "width": 452,
        "height": 828,
        "content": "## 2. Load Files\nReads both input files in parallel into separate binary fields:\n\n**Reference Audio** (top branch)\n- Output field: `audio`\n- Duration: 3-10 seconds\n- Formats: MP3, WAV, FLAC, OGG, M4A\n"
      }
    },
    {
      "id": "4ffd73a6-6797-44c4-ac4b-f76394d5d7da",
      "name": "Sticky Note - Clone",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        -656
      ],
      "parameters": {
        "width": 380,
        "height": 540,
        "content": "## 3. Clone Voice\n[deAPI Documentation](https://docs.deapi.ai)\n\n**Clone a Voice** uses **Qwen3 TTS VoiceClone** to clone the voice from the reference audio."
      }
    },
    {
      "id": "efaaee2d-7061-421a-91ac-5cb2db7c65b8",
      "name": "Sticky Note - Generate Video",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        -592
      ],
      "parameters": {
        "width": 856,
        "height": 764,
        "content": "## 4. Merge, AI Boost & Generate Video\n[deAPI Documentation](https://docs.deapi.ai)\n\n**Merge** combines the cloned audio (`audio`) with the first frame image (`image`) into a single item.\n\n**AI Agent*"
      }
    },
    {
      "id": "588ff323-1e9d-454f-9c50-e98891276a93",
      "name": "Sticky Note - Example",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2512,
        -544
      ],
      "parameters": {
        "width": 416,
        "height": 560,
        "content": "### Example Input\n\n**Reference Audio:**\nA 5-second clip of someone speaking naturally\n\n**First Frame Image:**\nA photo or AI-generated image of the avatar/presenter\n\n**Text to Speak:**\n\"Welcome to our "
      }
    },
    {
      "id": "d938d462-6785-4997-96ae-bb19e06f7fa8",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2000,
        -240
      ]
    },
    {
      "id": "f0d4f059-282c-4e05-a99b-5ffeb04c414e",
      "name": "Set Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -1792,
        -240
      ]
    },
    {
      "id": "f4a9a87f-3ade-45dc-9bde-f7525666601d",
      "name": "Read Reference Audio",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        -1424,
        -368
      ]
    },
    {
      "id": "19ae98a9-224f-4477-82ef-f6dcca6360de",
      "name": "Read First Frame Image",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        -1424,
        -112
      ]
    },
    {
      "id": "2d6b23b0-b162-4107-affe-4c25a513678d",
      "name": "deAPI Clone a Voice",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        -944,
        -368
      ]
    },
    {
      "id": "27248ed4-ab57-429b-bb4c-0e93fe9c9d84",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -304,
        -208
      ]
    },
    {
      "id": "b12a2aeb-2b81-4e3e-9dd3-3aedb6019dc8",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -400,
        -16
      ]
    },
    {
      "id": "3b3078a2-6848-4933-b402-1a9b9c9015fd",
      "name": "Video prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        -64,
        -16
      ]
    },
    {
      "id": "bc99539a-9cdd-407c-a4bf-a8b734589bba",
      "name": "deAPI Generate From Audio",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        80,
        -208
      ]
    },
    {
      "id": "1c978df7-b6d0-4ca9-a074-abc8254d57b7",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -544,
        -208
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "deAPI Generate From Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Fields": {
      "main": [
        [
          {
            "node": "Read Reference Audio",
            "type": "main",
            "index": 0
          },
          {
            "node": "Read First Frame Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Set Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Clone a Voice": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Read Reference Audio": {
      "main": [
        [
          {
            "node": "deAPI Clone a Voice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read First Frame Image": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Video prompt booster in deAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}