{
  "name": "Create AI video ads from product descriptions using AI Agent and deAPI",
  "nodes": [
    {
      "id": "520dc49b-48cc-446a-9578-214b1d5c2133",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        -832
      ],
      "parameters": {
        "width": 668,
        "height": 780,
        "content": "## Try It Out!\n### Generate a professional video ad from just a product description.\n\nThis workflow takes product details from a simple form, uses AI to create optimized visual prompts, generates a he"
      }
    },
    {
      "id": "f43dd495-13f0-4fdd-bfbe-e981842e72c0",
      "name": "Sticky Note - Generate Image",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1728,
        0
      ],
      "parameters": {
        "width": 320,
        "height": 428,
        "content": "## 3. Generate Product Image\n[deAPI Documentation](https://docs.deapi.ai)\n\nGenerates a **1280x720** landscape hero shot of the product.\n\nThis image becomes the **first frame** of the video ad in the n"
      }
    },
    {
      "id": "06754532-9582-4723-9d2f-1ccafb69ca48",
      "name": "Sticky Note - Generate Video",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        0
      ],
      "parameters": {
        "width": 360,
        "height": 428,
        "content": "## 4. Generate Video Ad\n[deAPI Documentation](https://docs.deapi.ai)\n\nUses **image-to-video** generation to animate the product hero shot into a short video ad.\n\nThe AI-crafted video prompt controls t"
      }
    },
    {
      "id": "42130a93-cd20-4295-8c82-3d204deb5e4f",
      "name": "Sticky Note - Gmail",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        0
      ],
      "parameters": {
        "width": 328,
        "height": 428,
        "content": "## 5. Email Delivery\n[Read more about Gmail node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.gmail)\n\nSends the video ad link to the email address from the form.\n\nYou can swap th"
      }
    },
    {
      "id": "ce3ab811-9a4b-409f-bf4c-a8cf8e93b3db",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1568,
        496
      ]
    },
    {
      "id": "e7c9b85e-7d15-4bc8-8064-323b1d2826ac",
      "name": "Image prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        1328,
        496
      ]
    },
    {
      "id": "ad131dea-ad9f-4524-9bb9-9d9beac30f49",
      "name": "Video prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        1456,
        544
      ]
    },
    {
      "id": "8eb32faa-4e01-41e9-8c51-ec5a03605f20",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1232,
        464
      ]
    },
    {
      "id": "39086cd0-6993-482e-b31f-190d93c07ebc",
      "name": "deAPI Generate Image",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        1840,
        256
      ]
    },
    {
      "id": "f1ced3e6-43fd-4535-b820-d6aa0291288b",
      "name": "deAPI Generate Video",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        2224,
        256
      ]
    },
    {
      "id": "7daff073-119d-4bde-917b-6d784807441d",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2624,
        256
      ]
    },
    {
      "id": "f46ebc11-3141-42f6-970f-8433093d72f4",
      "name": "Sticky Note - Example",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        0
      ],
      "parameters": {
        "width": 320,
        "height": 500,
        "content": "### Example Input\n\n**Product Name:**\nSony WH-1000XM6\n\n**Product Description:**\nPremium wireless noise-cancelling headphones with 40-hour battery life, multipoint connection, and adaptive sound control"
      }
    },
    {
      "id": "1ee96a5f-56e4-431f-89f6-8c6e50e3ec59",
      "name": "Sticky Note - AI Agent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        0
      ],
      "parameters": {
        "width": 464,
        "height": 780,
        "content": "## 2. AI-Powered Prompt Creation\n[Read more about AI Agents](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)\n\nThe AI Agent analyzes the product and uses tw"
      }
    },
    {
      "id": "7865f61c-e070-4307-a638-d58b4da745ff",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1328,
        256
      ]
    },
    {
      "id": "d5c5aeeb-7a51-467c-9c91-42cb511f24c7",
      "name": "Product Details Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        928,
        256
      ]
    },
    {
      "id": "5262c0b9-8d62-43cc-8af9-8fc3821dda48",
      "name": "Sticky Note - Example1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2912,
        0
      ],
      "parameters": {
        "width": 384,
        "height": 564,
        "content": "### Example Output\n\nLink to the video ad: https://res.cloudinary.com/dsmonpqk2/video/upload/v1772714207/bgbzrPpWuZ1vV2u3lPUOQ0QoNQWGTGFxnnlkBSJw_rbrw2j.mp4"
      }
    },
    {
      "id": "f88b429e-5ae5-4fe5-8e73-e7fc9811a308",
      "name": "Sticky Note - Form1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        0
      ],
      "parameters": {
        "width": 364,
        "height": 428,
        "content": "## 1. Product Details Form\nCollects product info through a web form:\n\n- **Product Name** (required)\n- **Product Description** (required)\n- **Visual Style** (optional)\n- **Email** — where to send the r"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "deAPI Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Product Details Form": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Generate Image": {
      "main": [
        [
          {
            "node": "deAPI Generate Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Generate Video": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Image prompt booster in deAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Video prompt booster in deAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}