08 - Generación de video con IA

Intermedio

Este es unContent Creation, Miscellaneous, Multimodal AIflujo de automatización del dominio deautomatización que contiene 14 nodos.Utiliza principalmente nodos como If, Wait, Gmail, HttpRequest, ScheduleTrigger. Crear videos cortos para cualquier tema usando OpenAI, Veo 3 y Gmail

Requisitos previos
  • Cuenta de Google y credenciales de API de Gmail
  • Pueden requerirse credenciales de autenticación para la API de destino
  • Clave de API de OpenAI
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "PLACEHOLDER_WORKFLOW_ID",
  "meta": {
    "instanceId": "PLACEHOLDER_INSTANCE_ID",
    "templateCredsSetupCompleted": true
  },
  "name": "08 - AI Video generation",
  "tags": [
    {
      "id": "PLACEHOLDER_TAG_ID",
      "name": "Sample Tag",
      "createdAt": "2025-09-08T06:03:03.283Z",
      "updatedAt": "2025-09-08T06:03:03.283Z"
    }
  ],
  "nodes": [
    {
      "id": "ae08743a-ff04-4daf-85fc-a8c91dcb8c34",
      "name": "Estado",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        896,
        736
      ],
      "parameters": {
        "url": "=https://generativelanguage.googleapis.com/v1beta/{{ $json.name }}",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "d25f07e3-e6bf-4973-94ba-d90fd3eff5ab",
      "name": "Enviar un mensaje",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1712,
        720
      ],
      "webhookId": "WEBHOOK_ID_PLACEHOLDER",
      "parameters": {
        "sendTo": "YOUR_EMAIL_HERE",
        "message": "=Description:{{ $json.message.content }}",
        "options": {
          "attachmentsUi": {
            "attachmentsBinary": [
              {}
            ]
          }
        },
        "subject": "The video is ready to share on social media."
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "GMAIL_CREDENTIAL_ID",
          "name": "Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "1bfc7578-fe4a-4028-b442-bce9be1f9d8c",
      "name": "Descripción para Redes Sociales",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        160,
        432
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={\n  \"prompt\": \"You are a social media content assistant. Take the following 8-second financial news script and create an engaging, SEO-friendly social media description suitable for LinkedIn, Instagram, and YouTube. The description should summarize the key points of the script, be concise, and written in a professional yet approachable tone. Include relevant hashtags for finance, stock market, and trading trends. Make it attention-grabbing to encourage viewers to watch the video. Keep the description between 50-150 words. Here is the script: {{ $json.message.content }}\"\n}\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "OPENAI_CREDENTIAL_ID",
          "name": "OpenAI Account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "e21f4324-6f82-453d-96db-12d7ea124cdf",
      "name": "Generar Guion de Noticias",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -256,
        592
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={\n  \"prompt\": \"You are a financial news assistant. Create an 8-second spoken-style script that delivers the latest globally trending stock market and trading news. Focus on the most impactful and recent global market movements such as major index shifts (S&P 500, Nasdaq, Dow Jones, FTSE, Nikkei), commodities (oil, gold), forex, or crypto. The script should be concise, engaging, and easy for a general audience to understand. Keep the tone urgent and informative, suitable for a quick news reel. Limit output to 3-4 short sentences, no bullet points.\"\n}\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "OPENAI_CREDENTIAL_ID",
          "name": "OpenAI Account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "21f202fd-c92f-4adb-944d-3a791af6edcc",
      "name": "Generar Prompt para Veo3",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        160,
        736
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={\n  \"prompt\": \"You are a video prompt generator for Veo 3. Convert the following financial news script into a clear, descriptive video generation prompt. The goal is to help Veo 3 create an engaging 8-second news-style video. Translate the spoken script into visuals: describe a professional news anchor, newsroom or studio setting, relevant background visuals (stock tickers, charts, global maps, trading floors), and overall mood (urgent, professional, engaging). Ensure the prompt is cinematic, easy for Veo 3 to understand, and matches the script's content and tone. Do not repeat the script text, only describe the visuals and style. Here is the script:{{ $json.message.content }} \"\n}\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "OPENAI_CREDENTIAL_ID",
          "name": "OpenAI Account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "e34f64e6-eb4d-4ac4-8897-65bce3e05800",
      "name": "Crear Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        736
      ],
      "parameters": {
        "url": "https://generativelanguage.googleapis.com/v1beta/models/veo-3.0-fast-generate-preview:predictLongRunning",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"instances\": [\n    { \"prompt\":{{ $json.message.content }}  }\n  ],\n  \"parameters\": { \"aspectRatio\": \"16:9\" }\n}",
        "sendBody": true,
        "sendQuery": true,
        "specifyBody": "json",
        "queryParameters": {
          "parameters": [
            {
              "name": "key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "37ad9efc-e986-46c8-ae27-ea51c7135c1b",
      "name": "Esperar Video",
      "type": "n8n-nodes-base.wait",
      "position": [
        704,
        736
      ],
      "webhookId": "WEBHOOK_ID_PLACEHOLDER",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "efb7c8d0-2177-4864-acdf-bc7cbe69d193",
      "name": "Si",
      "type": "n8n-nodes-base.if",
      "position": [
        1136,
        736
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "a978781f-9dfc-4220-8b30-aafa1d6b9f6f",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.done }}",
              "rightValue": "true"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "cb6f8d34-5b14-4c30-9a75-47c4a78d97b6",
      "name": "Descargar Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1408,
        720
      ],
      "parameters": {
        "url": "={{ $json.response.generateVideoResponse.generatedSamples[0].video.uri }}",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e5bcc0b4-ae94-4c1b-bead-7e748dffcb3f",
      "name": "Nota Adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        272
      ],
      "parameters": {
        "width": 320,
        "height": 720,
        "content": "## Step 1: Trigger Workflow  \n- Node: Daily Trigger  \n- Starts the workflow automatically every day.  "
      },
      "typeVersion": 1
    },
    {
      "id": "6130da6c-80d7-45a6-9d5b-1e1355bf2b54",
      "name": "Nota Adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        272
      ],
      "parameters": {
        "color": 4,
        "width": 752,
        "height": 720,
        "content": "## Step 2: Generate Content \n- Nodes: Generate News Script, Generate Veo3 Prompt, Social Media Description  \n- Creates 8-sec financial news script, video prompt for Veo3, and social media description.  "
      },
      "typeVersion": 1
    },
    {
      "id": "d8aa7775-279f-40a8-9c47-f4eebd044bf4",
      "name": "Nota Adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        272
      ],
      "parameters": {
        "color": 3,
        "width": 816,
        "height": 720,
        "content": "## Step 3: Generate Video \n- Nodes: Create Video, Wait for Video, Status, If  \n- Generates the video, waits for it to finish, checks status, and loops if not ready.  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "403a21d2-0fe9-4d13-b187-bd321b5effea",
      "name": "Nota Adhesiva3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        272
      ],
      "parameters": {
        "color": 6,
        "width": 560,
        "height": 720,
        "content": "## Step 4: Download and Share Video \n- Nodes: Download Video, Send a message  \n- Downloads the generated video and sends an email with description and attachment."
      },
      "typeVersion": 1
    },
    {
      "id": "942eb771-663a-4109-bb45-fba71caf29fa",
      "name": "Activador Diario",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -480,
        592
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "PLACEHOLDER_VERSION_ID",
  "connections": {
    "efb7c8d0-2177-4864-acdf-bc7cbe69d193": {
      "main": [
        [
          {
            "node": "cb6f8d34-5b14-4c30-9a75-47c4a78d97b6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "37ad9efc-e986-46c8-ae27-ea51c7135c1b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ae08743a-ff04-4daf-85fc-a8c91dcb8c34": {
      "main": [
        [
          {
            "node": "efb7c8d0-2177-4864-acdf-bc7cbe69d193",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e34f64e6-eb4d-4ac4-8897-65bce3e05800": {
      "main": [
        [
          {
            "node": "37ad9efc-e986-46c8-ae27-ea51c7135c1b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "942eb771-663a-4109-bb45-fba71caf29fa": {
      "main": [
        [
          {
            "node": "e21f4324-6f82-453d-96db-12d7ea124cdf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cb6f8d34-5b14-4c30-9a75-47c4a78d97b6": {
      "main": [
        [
          {
            "node": "d25f07e3-e6bf-4973-94ba-d90fd3eff5ab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "37ad9efc-e986-46c8-ae27-ea51c7135c1b": {
      "main": [
        [
          {
            "node": "ae08743a-ff04-4daf-85fc-a8c91dcb8c34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e21f4324-6f82-453d-96db-12d7ea124cdf": {
      "main": [
        [
          {
            "node": "21f202fd-c92f-4adb-944d-3a791af6edcc",
            "type": "main",
            "index": 0
          },
          {
            "node": "1bfc7578-fe4a-4028-b442-bce9be1f9d8c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "21f202fd-c92f-4adb-944d-3a791af6edcc": {
      "main": [
        [
          {
            "node": "e34f64e6-eb4d-4ac4-8897-65bce3e05800",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1bfc7578-fe4a-4028-b442-bce9be1f9d8c": {
      "main": [
        [
          {
            "node": "d25f07e3-e6bf-4973-94ba-d90fd3eff5ab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Creación de contenido, Varios, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos14
Categoría3
Tipos de nodos7
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34