8
n8n 中文网amn8n.com

Seedance 视频营销 AI 助手

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 If, Wait, Telegram, Perplexity, HttpRequest 等节点。 使用 Seedance AI、Perplexity 和 GPT-4o 生成基于趋势的营销视频

前置要求
  • Telegram Bot Token
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "XOSY8Rhhd8Skyq4A",
  "meta": {
    "instanceId": "f1ddac76345e25fbcb39be5dda61ac252c301456dbe2cab4155317eaddbb7562",
    "templateCredsSetupCompleted": true
  },
  "name": "Seedance 视频营销 AI Agent",
  "tags": [],
  "nodes": [
    {
      "id": "9873c5a6-bc25-4ef6-b91a-46acf340e358",
      "name": "Telegram 触发器",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -220,
        -20
      ],
      "webhookId": "534ea1e8-0470-41b0-a690-b3f09cc348dd",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "",
          "name": "YOUR_TELEGRAMAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bd737817-cf23-4ccd-bcf5-73dbf422bc6b",
      "name": "趋势研究 Agent",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        40,
        -20
      ],
      "parameters": {
        "model": "sonar-pro",
        "options": {},
        "messages": {
          "message": [
            {
              "role": "system",
              "content": "You are a trend research assistant for a creative video marketing workflow. Based on the user’s input (typically a request like “Create a 5-second Instagram video ad for my [product/brand]”), your job is to identify the most relevant and fresh trend (within the past 14 days) that could inspire the marketing angle or visual concept of the video.\n\nYour response will be passed directly into a Video Prompt Generator node, so it should highlight a trend that can be translated visually or conceptually into short-form video content.\n\nRequirements:\n\nSelect only the top, most relevant trend that connects clearly with the user’s topic or product.\n\nBriefly explain why this trend is compelling and how it could be used as a visual or narrative concept for a video ad.\n\nInclude the source URL of the trend for context.\n\nKeep your output concise, visual-oriented, and actionable for marketing. Avoid generic summaries. Prioritize consumer behavior shifts, viral aesthetics, cultural moments, audio trends, or platform-specific effects/styles that could boost engagement on platforms like Instagram or TikTok.\n\nInput Example:\n\"Create a 5-second Instagram ad for my perfume brand\"\n\nExpected Output Format:\n\nTrend Title:\n\nSummary & Video Angle Suggestion:\n\nSource URL:"
            },
            {
              "content": "={{ $json.message.text }}"
            }
          ]
        },
        "requestOptions": {}
      },
      "credentials": {
        "perplexityApi": {
          "id": "",
          "name": "YOUR_PERPLEXITYAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "a5b7bb3f-6f98-4e69-8c78-7b79d7f70e90",
      "name": "视频提示工程师",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        260,
        -20
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "chatgpt-4o-latest",
          "cachedResultName": "CHATGPT-4O-LATEST"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "You are a creative video prompt generator for short-form ads (e.g., Instagram, TikTok). Based on:\n\nThe user's original brief (e.g., “Create a 5-second IG ad for my perfume brand”), and\n\nThe top marketing trend insight provided by the previous research node,\n\nYour task is to craft a concise, visually descriptive video generation prompt suitable for input into the Seedance API.\n\n🛑 Do not include any extra explanation, formatting, or commentary. Your entire output must be the exact prompt to pass into the video generator.\n\nThe prompt should:\n– Be under 100 words\n– Describe the visual elements, tone, and motion clearly\n– Reflect the product or brand type, and\n– Incorporate the marketing trend as the core concept or hook\n\nExample of your expected output format:\n\n“A close-up slow-motion shot of a glass perfume bottle as morning sunlight filters through mist. The background shows soft-focus wildflowers, matching the theme of natural beauty and calm. Overlay text: ‘Nature’s Elegance. Reinvented.’ Trend-inspired styling based on the ‘quiet luxury’ aesthetic. For Instagram. 5 seconds.”"
            },
            {
              "content": "={{ $json.choices[0].message.content }}"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "",
          "name": "YOUR_OPENAIAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "d49f8691-ffdf-4c84-94fd-cdd693dbfb63",
      "name": "POST 请求 - Wavespeed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        -20
      ],
      "parameters": {
        "url": "https://api.wavespeed.ai/api/v3/bytedance/seedance-v1-pro-i2v-1080p",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "duration",
              "value": "5"
            },
            {
              "name": "image"
            },
            {
              "name": "prompt",
              "value": "={{ $json.message.content }}"
            },
            {
              "name": "seed",
              "value": "-1"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "",
          "name": "YOUR_HTTPHEADERAUTH_CREDENTIAL"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "d20ba170-503e-428e-ac65-ce5c1db14e2f",
      "name": "发送短信",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1580,
        0
      ],
      "webhookId": "05add186-9fd7-4219-9b54-3e458fe6b0d6",
      "parameters": {
        "text": "={{ $json.data.outputs[0] }}",
        "chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "",
          "name": "YOUR_TELEGRAMAPI_CREDENTIAL"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "6f2b44a3-46aa-45d7-b406-c73947590e85",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        1300,
        -20
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "9a0179e2-465e-467a-b750-19c592649d3b",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.status }}",
              "rightValue": "processing"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "d7bef3fb-4ba4-4e4d-bb3d-176ddb58b388",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -200
      ],
      "parameters": {
        "width": 260,
        "height": 700,
        "content": "Telegram 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "c35ab443-c196-4ee0-a099-ef7ee643b3ec",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -200
      ],
      "parameters": {
        "color": 3,
        "height": 700,
        "content": "Perplexity 研究 Agent"
      },
      "typeVersion": 1
    },
    {
      "id": "795c7d84-ea3e-48fb-aaa5-3d451c4e3fbc",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -200
      ],
      "parameters": {
        "color": 7,
        "width": 300,
        "height": 700,
        "content": "视频提示代理"
      },
      "typeVersion": 1
    },
    {
      "id": "fbba76df-bb6c-4919-a9f9-7436c50cf4aa",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -200
      ],
      "parameters": {
        "color": 2,
        "width": 300,
        "height": 700,
        "content": "向 Wavespeed 发送 POST 请求"
      },
      "typeVersion": 1
    },
    {
      "id": "a7cc248b-41e1-46a9-bfff-c7344c00db32",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -200
      ],
      "parameters": {
        "color": 5,
        "width": 640,
        "height": 700,
        "content": "GET 请求循环"
      },
      "typeVersion": 1
    },
    {
      "id": "30be802e-dc8b-4aa7-8b23-df35d79045cc",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1540,
        -200
      ],
      "parameters": {
        "color": 4,
        "width": 280,
        "height": 700,
        "content": "Telegram 输出"
      },
      "typeVersion": 1
    },
    {
      "id": "46f3ed38-da33-432a-b0bc-eb43bada238e",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -200
      ],
      "parameters": {
        "color": 5,
        "width": 680,
        "height": 1080,
        "content": "🎬 Seedance 视频营销 AI Agent"
      },
      "typeVersion": 1
    },
    {
      "id": "f44abb18-7587-49e4-bd09-318f1b7c2fb6",
      "name": "等待30秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        1340,
        260
      ],
      "webhookId": "2927f5c0-0881-4c48-900b-0194aded5926",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "ff8a3b0d-d16b-4e58-9b97-8918f15c9459",
      "name": "等待 30 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        920,
        -20
      ],
      "webhookId": "40dd854a-29ad-41a1-adb1-3cd661dfd562",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "fa5c0002-ec3b-4a09-90b8-3347c31d8a2d",
      "name": "GET 请求 Wavespeed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1100,
        -20
      ],
      "parameters": {
        "url": "=https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "",
          "name": "YOUR_HTTPHEADERAUTH_CREDENTIAL"
        }
      },
      "typeVersion": 4.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "32d65c6d-a906-400e-9191-e1a130129688",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Wait 30 sec",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 Sec": {
      "main": [
        [
          {
            "node": "GET Request Wavespeed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 sec": {
      "main": [
        [
          {
            "node": "GET Request Wavespeed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Trend Research Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trend Research Agent": {
      "main": [
        [
          {
            "node": "Video Prompt Engineer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET Request Wavespeed": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Prompt Engineer": {
      "main": [
        [
          {
            "node": "Post Request - Wavespeed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Request - Wavespeed": {
      "main": [
        [
          {
            "node": "Wait 30 Sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 内容创作, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量16
分类2
节点类型8
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

外部链接
在 n8n.io 查看

分享此工作流