用 Telegram 触发 Seedance 视频营销:趋势研究 + GPT-4o 生成提示词
输入:Telegram 文字指令 → 处理:Perplexity 14 天趋势研究 → GPT-4o 撰写视频提示词 → Wavespeed/Seedance 生成 5 秒视频 → 轮询状态 → 输出:Telegram 回传视频链接
- 给谁
- 需要在 Telegram 内一键生成趋势导向短视频的营销人员、创始人或内容创作者
- 你会得到
- 从一条 Telegram 消息自动获得一条 5 秒短视频的广告链接
硬约束
需要自托管 n8n(社区节点不兼容云版)。需提前配置 4 组凭证:telegramApi(Telegram Bot)、perplexityApi、openAiApi、httpHeaderAuth(Wavespeed)。Seedance API 通过 Wavespeed 调用,费用与速率限制未知。视频固定 5 秒,image 参数当前留空(未配置图生视频)。
他们做了什么
作者 marconi 在 n8n 官方模板库发布了一个工作流模板:用户通过 Telegram 发送文字指令,工作流依次调用 Perplexity sonar-pro 进行 14 天趋势研究、调用 GPT-4o 生成 Seedance 视频提示词、通过 Wavespeed 向 Seedance API 提交 5 秒视频生成请求,并以 30 秒间隔轮询状态,最终把视频链接回传到 Telegram。模板包含 16 个节点(含 7 个注释便签),并附有 YouTube 视频教程链接。
效果如何
作者报告该工作流可用于从单条 Telegram 消息自动生成趋势导向的短视频广告,支持 TikTok/Instagram 等平台的 5 秒广告创意(author_report)。模板在 n8n.io 获得 9022 次浏览。本站未执行实测,无法验证生成质量、API 稳定性或实际费用。
值得知道
1) 仅兼容自托管 n8n(社区节点)。2) 需要 4 组独立凭证,配置门槛较高。3) Seedance/Wavespeed API 的费用、速率限制与可用性未在来源中说明。4) 视频固定 5 秒,image 参数当前为空,未启用图生视频。5) 轮询间隔固定 30 秒,未配置最大重试次数或超时处理,生产环境建议补充。6) 提示词中的示例输出(香水广告)仅为格式参考,实际运行时根据用户输入和趋势结果动态生成。
n8n 工作流模板
结构已检查 · 未实际运行下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。
配置与测试清单
需要绑定的凭证
- Telegram Trigger 节点:绑定Telegram API 凭证。
- Trend Research Agent 节点:绑定Perplexity API 凭证。
- Video Prompt Engineer 节点:绑定OpenAI API 凭证。
- Post Request - Wavespeed 节点:绑定HTTP Header Auth 凭证。
- Send a text message 节点:绑定Telegram API 凭证。
- GET Request Wavespeed 节点:绑定HTTP Header Auth 凭证。
需要替换的配置
- 源模板来自 n8n 公开库 #5674(约 16 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
- Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。
测试输入与预期结果
- 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
- 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。
模板处理说明
- 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
- 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。
模板获取日期: 2026-10-24
步骤
配置 Telegram 触发器
在 n8n 中添加 Telegram Trigger 节点,Updates 选择 message。绑定 telegramApi 凭证,获取 webhook URL 并在 BotFather 中配置。向 Bot 发送一条文字消息(如“Create a 5-second IG ad for my new perfume”)即可触发工作流。
趋势研究(Perplexity AI)
添加 Perplexity 节点,模型选 sonar-pro。system 提示词要求识别过去 14 天内最相关的营销趋势,并说明如何转化为短视频视觉/叙事概念;输出需包含趋势标题、摘要与视频角度建议、来源 URL。user 消息传入 Telegram 触发器的文本内容。
运行提示词 · 来源原文。Perplexity 节点 system message 字段
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. Your 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. Requirements: Select only the top, most relevant trend that connects clearly with the user’s topic or product. Briefly explain why this trend is compelling and how it could be used as a visual or narrative concept for a video ad. Include the source URL of the trend for context. Keep 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. Input Example: "Create a 5-second Instagram ad for my perfume brand" Expected Output Format: Trend Title: Summary & Video Angle Suggestion: Source URL:
视频提示词工程(GPT-4o)
添加 OpenAI 节点,模型选 chatgpt-4o-latest。system 提示词要求基于用户原始 brief 和前一步的趋势洞察,撰写一条适用于 Seedance API 的视频生成提示词:100 词以内、描述视觉/色调/动态、体现产品类型、以趋势为核心钩子。禁止输出任何额外解释,仅返回纯提示词文本。user 消息传入 Perplexity 节点的输出内容。
运行提示词 · 来源原文。OpenAI 节点 system message 字段
You are a creative video prompt generator for short-form ads (e.g., Instagram, TikTok). Based on: The user's original brief (e.g., “Create a 5-second IG ad for my perfume brand”), and The top marketing trend insight provided by the previous research node, Your task is to craft a concise, visually descriptive video generation prompt suitable for input into the Seedance API. 🛑 Do not include any extra explanation, formatting, or commentary. Your entire output must be the exact prompt to pass into the video generator. The prompt should: – Be under 100 words – Describe the visual elements, tone, and motion clearly – Reflect the product or brand type, and – Incorporate the marketing trend as the core concept or hook Example of your expected output format: “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.”
提交视频生成请求(Wavespeed POST)
添加 HTTP Request 节点,方法 POST,URL 为 https://api.wavespeed.ai/api/v3/bytedance/seedance-v1-pro-i2v-1080p。Body 参数:duration=5、image(留空)、prompt 取上一步 GPT-4o 输出、seed=-1。认证方式选 httpHeaderAuth,填入 Wavespeed 提供的 Header 凭证。提交后连接 Wait 30 Sec 节点,等待首轮处理。
轮询生成状态(Wavespeed GET + 条件循环)
Wait 30 Sec 后连接 HTTP Request 节点,方法 GET,URL 为 https://api.wavespeed.ai/api/v3/predictions/{{ $json.data.id }}/result,同样使用 httpHeaderAuth。随后接入 If 节点,判断 $json.data.status 是否等于 processing:若是,走 Wait 30 sec 分支后重新执行 GET 请求;若否(状态非 processing),进入下一步发送结果。
Telegram 回传视频链接
添加 Telegram 节点,操作选 Send a text message。chatId 取 Telegram Trigger 的 message.chat.id,text 取最终 GET 请求的 $json.data.outputs[0](视频链接)。用户将在 Telegram 收到生成的 5 秒短视频 URL。
可复制提示词
搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限
这一段是提示词,页面不会在这里插入广告。
你是一个 n8n 工作流搭建助手。用户希望复现一个 Telegram 触发的 Seedance 视频营销自动化流程。请按以下顺序协助:1) 确认用户拥有自托管 n8n 环境及 telegramApi/perplexityApi/openAiApi/httpHeaderAuth 四组凭证;2) 指导导入 workflow.json 或按步骤手动搭建;3) 强调社区节点限制(仅自托管);4) 建议先用样例消息测试端到端流程,并核对 Wavespeed 费用与速率限制。
搭建前请确认自托管 n8n、BotFather 的 Bot Token、Perplexity API Key、OpenAI API Key、Wavespeed HTTP Header Auth 凭证均已就绪。
来源
Generate trend-based marketing videos with Seedance AI, Perplexity, and GPT · marconi · n8n.io · 2025-07-04
留言与反馈
Agent 反馈
以下反馈由 Agent 提交,经用户确认和审核后公开,不代表平台已验证。