AutomationFlowsAI & RAG › Create AI Video Ads From Product Descriptions Using AI Agent and Deapi

Create AI Video Ads From Product Descriptions Using AI Agent and Deapi

BydeAPI Team @deapi on n8n.io

Marketing teams who need quick video ads without a production crew E-commerce sellers promoting products on social media Freelancers and agencies producing ad creatives for clients Anyone who wants to turn a product description into a video ad in minutes

Event trigger★★★★☆ complexityAI-powered17 nodesOutput Parser StructuredN8N Nodes DeapiAnthropic ChatGmailAgentForm Trigger
AI & RAG Trigger: Event Nodes: 17 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #13893 — we link there as the canonical source.

This workflow follows the Agent → Form Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "AI Video Ad Creator",
  "tags": [],
  "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 hero product image, animates it into a short video ad, and delivers the result by email.\n\n### How it works\n1. **Form Trigger** collects product name, description, style, and recipient email\n2. **AI Agent** analyzes the product and uses both deAPI **Image Prompt Booster** and **Video Prompt Booster** tools to craft optimized prompts\n3. **deAPI Generate Image** creates a professional product hero shot\n4. **deAPI Generate Video** animates the hero image into a short video ad (image-to-video)\n5. **Gmail** sends the video ad link to the specified email\n\n### Requirements\n- [deAPI](https://deapi.ai) account for image generation, video generation, and prompt boosting\n- Anthropic account for AI Agent\n- Gmail account for email delivery\n- n8n instance must be on **HTTPS**\n\n### Need Help?\nJoin the [n8n Discord](https://discord.gg/n8n) or ask in the [Forum](https://community.n8n.io/)!\n\nHappy Automating!"
      },
      "typeVersion": 1
    },
    {
      "id": "f43dd495-13f0-4fdd-bfbe-e981842e72c0",
      "name": "Sticky Note - Generate Image",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1728,
        0
      ],
      "parameters": {
        "color": 7,
        "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 next step."
      },
      "typeVersion": 1
    },
    {
      "id": "06754532-9582-4723-9d2f-1ccafb69ca48",
      "name": "Sticky Note - Generate Video",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        0
      ],
      "parameters": {
        "color": 7,
        "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 the camera movement and animation style."
      },
      "typeVersion": 1
    },
    {
      "id": "42130a93-cd20-4295-8c82-3d204deb5e4f",
      "name": "Sticky Note - Gmail",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        0
      ],
      "parameters": {
        "color": 7,
        "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 this for Slack, Microsoft Teams, or any other notification node."
      },
      "typeVersion": 1
    },
    {
      "id": "ce3ab811-9a4b-409f-bf4c-a8cf8e93b3db",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1568,
        496
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"boosted_image_prompt\": \"professional product photograph of sleek wireless earbuds on a dark reflective surface...\",\n  \"boosted_video_prompt\": \"slow cinematic camera orbit around the product with soft volumetric lighting gradually intensifying\"\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "e7c9b85e-7d15-4bc8-8064-323b1d2826ac",
      "name": "Image prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        1328,
        496
      ],
      "parameters": {
        "prompt": "={{ $fromAI('Prompt', ``, 'string') }}",
        "options": {},
        "resource": "prompt"
      },
      "credentials": {
        "deApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ad131dea-ad9f-4524-9bb9-9d9beac30f49",
      "name": "Video prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        1456,
        544
      ],
      "parameters": {
        "prompt": "={{ $fromAI('VideoPrompt', ``, 'string') }}",
        "options": {},
        "resource": "prompt",
        "operation": "boostVideo"
      },
      "credentials": {
        "deApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8eb32faa-4e01-41e9-8c51-ec5a03605f20",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1232,
        464
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-opus-4-6",
          "cachedResultName": "Claude Opus 4.6"
        },
        "options": {}
      },
      "credentials": {
        "anthropicApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "39086cd0-6993-482e-b31f-190d93c07ebc",
      "name": "deAPI Generate Image",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        1840,
        256
      ],
      "parameters": {
        "ratio": "landscape",
        "prompt": "={{ $json.output.boosted_image_prompt }}",
        "options": {
          "waitTimeout": 120,
          "Flux2LandscapeSize": "1280x720"
        }
      },
      "credentials": {
        "deApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "f1ced3e6-43fd-4535-b820-d6aa0291288b",
      "name": "deAPI Generate Video",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        2224,
        256
      ],
      "parameters": {
        "ratio": "landscape",
        "prompt": "={{ $('AI Agent').item.json.output.boosted_video_prompt }}",
        "source": "image",
        "options": {
          "waitTimeout": 240
        },
        "resource": "video"
      },
      "credentials": {
        "deApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "7daff073-119d-4bde-917b-6d784807441d",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2624,
        256
      ],
      "parameters": {
        "sendTo": "={{ $('Product Details Form').item.json['Email'] }}",
        "message": "=<h2>Your video ad is ready!</h2><p>Here is the AI-generated video ad for <strong>{{ $('Product Details Form').item.json['Product Name'] }}</strong>.</p><p><a href=\"{{ $json.result_url }}\">Download your video ad</a></p><p style=\"color:#888;font-size:12px;\">Generated with deAPI and n8n</p>",
        "options": {
          "appendAttribution": false
        },
        "subject": "=Your AI Video Ad \u2014 {{ $('Product Details Form').item.json['Product Name'] }}"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "f46ebc11-3141-42f6-970f-8433093d72f4",
      "name": "Sticky Note - Example",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        0
      ],
      "parameters": {
        "color": 6,
        "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. Ultralight carbon fiber headband with soft-fit leather ear cushions.\n\n**Visual Style:**\nmodern, minimalist, dark background\n\n**Email:**\nyour@gmail.com"
      },
      "typeVersion": 1
    },
    {
      "id": "1ee96a5f-56e4-431f-89f6-8c6e50e3ec59",
      "name": "Sticky Note - AI Agent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        0
      ],
      "parameters": {
        "color": 7,
        "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 two deAPI tools:\n- **Image Prompt Booster** \u2014 optimizes the product image prompt for FLUX\n- **Video Prompt Booster** \u2014 optimizes the motion prompt for LTX-2\n\nThe **Structured Output Parser** ensures consistent JSON output with both boosted prompts."
      },
      "typeVersion": 1
    },
    {
      "id": "7865f61c-e070-4307-a638-d58b4da745ff",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1328,
        256
      ],
      "parameters": {
        "text": "=Create a video ad for the following product:\n\nProduct Name: {{ $json['Product Name'] }}\nProduct Description: {{ $json['Product Description'] }}\nVisual Style: {{ $json['Visual Style'] }}",
        "options": {
          "systemMessage": "You are a creative director specializing in product video ads.\n\nYour tasks:\n1. Create a compelling product image prompt that shows the product in a professional, ad-worthy setting. Use the imagePromptBooster tool to enhance it.\n2. Write a short video motion prompt (1-2 sentences) describing how the camera should move and how the product should be animated. Think cinematic \u2014 smooth orbits, slow zooms, dramatic lighting shifts. Do NOT describe the product itself in the video prompt, only the motion and atmosphere. Use the videoPromptBooster tool to enhance it.\n\nReturn both boosted prompts in the required JSON format."
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.7
    },
    {
      "id": "d5c5aeeb-7a51-467c-9c91-42cb511f24c7",
      "name": "Product Details Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        928,
        256
      ],
      "parameters": {
        "options": {},
        "formTitle": "AI Video Ad Creator",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Product Name",
              "placeholder": "e.g. AirPods Pro 3",
              "requiredField": true
            },
            {
              "fieldType": "textarea",
              "fieldLabel": "Product Description",
              "placeholder": "Briefly describe your product and its key features",
              "requiredField": true
            },
            {
              "fieldLabel": "Visual Style",
              "placeholder": "e.g. modern, minimalist, luxury, bold"
            },
            {
              "fieldLabel": "Email",
              "placeholder": "you@example.com",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Fill in your product details to automatically generate a professional video ad."
      },
      "typeVersion": 2.2
    },
    {
      "id": "5262c0b9-8d62-43cc-8af9-8fc3821dda48",
      "name": "Sticky Note - Example1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2912,
        0
      ],
      "parameters": {
        "color": 6,
        "width": 384,
        "height": 564,
        "content": "### Example Output\n\nLink to the video ad: https://res.cloudinary.com/dsmonpqk2/video/upload/v1772714207/bgbzrPpWuZ1vV2u3lPUOQ0QoNQWGTGFxnnlkBSJw_rbrw2j.mp4"
      },
      "typeVersion": 1
    },
    {
      "id": "f88b429e-5ae5-4fe5-8e73-e7fc9811a308",
      "name": "Sticky Note - Form1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        0
      ],
      "parameters": {
        "color": 7,
        "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** \u2014 where to send the result\n\nSubmit the form to kick off the pipeline."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "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
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Marketing teams who need quick video ads without a production crew E-commerce sellers promoting products on social media Freelancers and agencies producing ad creatives for clients Anyone who wants to turn a product description into a video ad in minutes

Source: https://n8n.io/workflows/13893/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow is designed for developers, entrepreneurs, and startup enthusiasts who want personalized, AI-driven startup idea generation and analysis. Perfect for solo developers seeking side project

Agent, Form Trigger, Gmail +3
AI & RAG

This workflow is designed for marketers, founders, agencies, and product teams who want to understand how real customers talk about a product category, market, or problem space.

Reddit, Agent, Output Parser Structured +3
AI & RAG

This workflow streamlines academic paper development through a multi-agent AI architecture that collects references, drafts individual sections autonomously, compiles the manuscript, and exports a pro

Form Trigger, HTTP Request, Anthropic Chat +4
AI & RAG

This workflow automates end-to-end contract and invoice management using AI intelligence. It processes proposals through intelligent contract generation, approval workflows, and automated invoicing. O

Form Trigger, Data Table, Agent +4
AI & RAG

This n8n workflow template automates your lead generation and follow-up process using AI. It captures leads through a form, enriches them with company data, classifies them into different categories,

Gmail, Output Parser Structured, Form Trigger +5