ChatGPT创意视频AI 评分 · 待评分AI 辅助编辑·未发现明显提示词注入风险n8n.io

通过 Telegram 用 BrowserAct 与 Gemini 生成 YouTube 缩略图

输入视频主题 → AI 爬取竞品缩略图并视觉分析 → 人工确认后生成高清缩略图 → Telegram 交付

经验丰富步骤流程提示词贴士
给谁
YouTube 创作者、内容运营者、社交媒体经理
你会得到
向 Telegram 机器人发送主题后,自动获取竞品缩略图视觉策略并生成可下载的 AI 缩略图
你需要
n8n · telegram · browseract · google-gemini · google-sheets

硬约束

需要 n8n 实例、Telegram Bot Token、BrowserAct 账户(含 Thumbnail Maker Bot 模板)、OpenRouter API、Google Gemini API、Google Sheets OAuth。先创建主表格「Thumbnail Data base」,含 Keyword 与 Current Workflow Sheet ID 两列。工作流自动为每次请求创建子表。

他们做了什么

来源作者 madame-ai 在 n8n 平台发布了一个 39 节点的自动化模板。用户通过 Telegram 机器人发送视频主题后,工作流先由 Gemini 驱动的 AI Agent 对输入进行意图分类(Start/Chat/NoData);若为有效主题,则创建 Google Sheets 子表,调用 BrowserAct 爬取 YouTube 竞品缩略图,经代码节点拆分过滤后,使用 OpenRouter 上的 GPT-4o 对每张缩略图进行视觉元素分析,结果存入表格。随后 Telegram 发送带「Yes, Continue」按钮的确认消息,用户点击后,Gemini Agent 聚合分析数据并生成高保真图像提示词,最终由 Google Gemini (Nano Banana Pro / gemini-3-pro-image-preview) 生成 16:9 缩略图并回传至 Telegram。

效果如何

作者报告该工作流可自动完成从主题输入到缩略图交付的全流程,包含人工确认环节以节省 API 费用。模板页面显示 231 次查看。

值得知道

1) 本站未对该工作流进行实测(reproduction=not_tested),实际运行效果取决于各 API 可用性与凭证配额。2) Generate an image 节点实际调用的是 models/gemini-3-pro-image-preview(界面显示为 Nano Banana Pro),而非 gemini-2.5-pro;gemini-2.5-pro 仅用于 Generate Image Prompt 和 Validate input 等文本节点。3) 视觉分析阶段使用 OpenRouter Chat Model 调用 openai/gpt-4o,需确保 OpenRouter 账户有足够余额。4) BrowserAct 的 Thumbnail Maker Bot 模板为必需前置条件,缺失则竞品爬取环节无法运行。5) 作者建议可通过修改 Generate Image Prompt 的 systemMessage 调整艺术风格,或增加 Cloudinary/Bannerbear 节点实现文字自动叠加。6) 代码节点「Splitting Image Items」与「Filter Low-Quality Images」涉及具体 JSON 路径与扩展名过滤逻辑,若 BrowserAct 输出格式变更可能需要同步调整。

n8n 工作流模板

结构已检查 · 未实际运行

下载后在 n8n 选择“Import from File”,或复制 JSON 后粘贴到编辑器。先配置自己的账号,再用测试数据运行;模板默认未启用。

配置与测试清单

需要绑定的凭证

  • Run a workflow 节点:绑定browserActApi 凭证。
  • OpenRouter Chat Model 节点:绑定openRouterApi 凭证。
  • Generate an image 节点:绑定Google Gemini/PaLM API 凭证。
  • Inform user 节点:绑定Telegram API 凭证。
  • Get Keywords 节点:绑定Google Sheets OAuth2 凭证。
  • Get Images Details 节点:绑定Google Sheets OAuth2 凭证。
  • Google Gemini1 节点:绑定Google Gemini/PaLM API 凭证。
  • User Sends Message to Bot 节点:绑定Telegram API 凭证。
  • Save Sheet ID and Keyword 节点:绑定Google Sheets OAuth2 凭证。
  • Save Image Descriptions to Database 节点:绑定Google Sheets OAuth2 凭证。
  • Await Continuation Approval 节点:绑定Telegram API 凭证。
  • Answer the User 节点:绑定Telegram API 凭证。
  • Validate input 节点:绑定Google Gemini/PaLM API 凭证。
  • Chat 节点:绑定Google Gemini/PaLM API 凭证。
  • Send Thumbnail Back to Bot 节点:绑定Telegram API 凭证。
  • Create Database sheet 节点:绑定Google Sheets OAuth2 凭证。
  • Clear Database sheet 节点:绑定Google Sheets OAuth2 凭证。

需要替换的配置

  • 源模板来自 n8n 公开库 #12363(约 39 个节点)。导入后先保持未启用,核对触发器、表达式与外部 API 端点。
  • Sticky Note 中的说明仅供参考;按自己的账号、表结构或频道 ID 替换占位配置。

测试输入与预期结果

  • 在测试环境手动执行一次主路径,确认每个需凭证的节点已连接且无鉴权错误。
  • 用一条合成/脱敏样例数据跑通,核对输出字段与下游写入目标,再考虑生产启用。

模板处理说明

  • 已移除原作者凭证绑定、webhookId 与执行数据,工作流设为未启用;节点、连线与原文提示词保持原样。未在 n8n 中实际运行。
  • 未改业务逻辑;运行前请自行核对密钥、配额与隐私合规。

模板获取日期: 2026-10-24

步骤

  1. 配置服务凭证

    在 n8n 中依次添加并验证以下凭证:Telegram(Bot Token)、BrowserAct API、Google Sheets OAuth2、OpenRouter API、Google Gemini (PaLM) API。所有凭证需在对应服务商提前开通。

  2. 准备 BrowserAct 与 Google Sheets

    在 BrowserAct 账户中保存「Thumbnail Maker Bot」模板(或等效 YouTube 搜索爬虫)。在 Google Sheets 创建名为「Thumbnail Data base」的电子表格,添加「Database」工作表,包含两列:Keyword、Current Workflow Sheet ID。记录该表格的 documentId。

  3. 配置 Telegram 并激活工作流

    通过 BotFather 创建 Telegram 机器人并获取 API Token,填入 n8n Telegram 凭证。在 n8n 中导入该模板工作流,确认所有节点无红色错误提示后,将工作流开关设为 Active。

  4. 发送主题并触发分析

    在 Telegram 向机器人发送视频主题(如「Kling 2.6」)。工作流通过「Validate user input」节点中的 AI Agent 将输入分类为 Start/Chat/NoData;若为 Start,提取 1-3 词关键词,创建子表,调用 BrowserAct 爬取 YouTube 该关键词下排名靠前的视频缩略图信息。

    运行提示词 · 来源原文。Validate user input 节点的 systemMessage 字段

    You are an input classification engine. Your sole purpose is to analyze user text and output a JSON object based on specific criteria. Do not generate conversational text; only output the raw JSON.
    
    Rules for Classification:
    
    1. VIDEO TOPIC/NICHE (Priority 1):
    If the user input contains a specific topic, a market niche, a content idea, or the user asks to generate a thumbnail for a specific video topic (e.g., 'fitness for beginners,' 'history of Rome,' 'coding tutorials,' 'funny cat videos', 'Veo 3.1', 'Kling 2.6')
       - Set "Type" to "Start".
       - Extract the most relevant, high-traffic subject from the input to use as a YouTube search query (1-3 words max).
       - Output format: {"Type": "Start", "Keyword": "extracted_subject"}
       - do not include "Thumbnail" or similar words in the end of keyword
    
    2. REGULAR CHAT (Priority 2):
       If the user input is a greeting, a general question about you, small talk, or conversational filler (e.g., "Hello," "How are you?", "That's cool," "Tell me a joke"):
       - Output format: {"Type": "Chat", "Keyword": "Null"}
    
    3. INSUFFICIENT DATA (Priority 3):
       If the user input is gibberish, single non-descriptive words, numbers without context, or too vague to determine an intent (e.g., "...", "yes", "123", "idk", "ok"):
       - Output format: {"Type": "NoData","Keyword": "Null"}
    
    Output Constraint:
    Return ONLY the raw JSON object. Do not wrap it in markdown code blocks (no ```json). Do not add explanations.
  5. 视觉分析与人工确认后生成缩略图

    爬取结果经代码节点拆分与过滤后,由 OpenRouter GPT-4o 逐图进行视觉分析(背景、主体、文字、构图),结果存入 Google Sheets。随后 Telegram 发送「Yes, Continue」确认按钮;用户点击后,Gemini Agent 聚合分析数据并生成含流行文化元素的高保真提示词,最终由 Google Gemini (Nano Banana Pro) 生成 16:9 缩略图并回传 Telegram。

    运行提示词 · 来源原文。Analyze Image Content 节点的 userMessage(多模态输入,image_url 中的 URL 为变量)

    =[
      {
        "type": "text",
        "text": "Analyze this image in extreme detail."
      },
      {
        "type": "image_url",
        "image_url": {
          "url": "{{ $json.Cover }}",
          "detail": "high"
        }
      }
    ]

    运行提示词 · 来源原文。Analyze Image Content 节点的 systemMessage 字段

    You are an advanced image analysis AI specialized in deconstructing YouTube thumbnails. Your sole task is to generate an exhaustive, forensic-level description of the provided thumbnail image. You must analyze and describe absolutely every visual element present without omission.
    
    Methodically scan the image and provide a detailed account covering:
    
    Background: The complete setting, location, environment, scenery, lighting, and weather.
    
    Foreground & Subjects: Every person, character, or main object. Detail their appearance, clothing, facial expressions, poses, actions, and exact spatial positions relative to the frame.
    
    Text: Transcribe absolutely all visible text exactly as it appears (including capitalization and punctuation). For every text element, specify its exact content, font style (e.g., bold, capitalized, handwritten), color, any effects (like outlines or shadows), and its precise location on the image.
    
    Graphics & Effects: Describe any logos, icons, brand marks, arrows, circles, emojis, overlays, borders, or visual effects (like explosions, blurs, or high contrast filters).
    
    Composition: The overall color palette, dominant tones, and the general mood or vibe the thumbnail conveys.
    
    CRITICAL OUTPUT CONSTRAINT: Your final output must consist only of the raw descriptive text stream. Do not include any introductions, explanations, section headers, formatting tags, metadata, or conversational fillers. Send only the complete description.

    运行提示词 · 来源原文。Generate Image Prompt 节点的 systemMessage 字段

    Role: You are the Nano Banana Pro Apex Architect, the world's premier visual strategist for viral YouTube thumbnails. Your sole purpose is to generate high-octane, psychologically compelling image prompts that maximize Click-Through Rate (CTR). You do not create generic images; you create irresistible visual hooks.
    
    Core Directive: Stop thinking in terms of "stock photos." Start thinking in terms of "summer blockbuster movie posters."
    
    The "Pop-Culture Power-Up" Protocol (Crucial New Step): To maximize engagement, you must leverage familiarity. When presented with a video topic, immediately identify a famous character archetype, art style, or recognizable aesthetic from beloved media (e.g., Arcane's gritty painterly style, Stranger Things' neon nostalgia, Cyberpunk's high-tech low-life, Anime intensity) that emotionally resonates with the topic. Use these recognizable elements to supercharge the visual narrative.
    
    Core Design Philosophy (High-Performance Data):
    
    Extreme Contrast & Vibrancy: Use aggressive color grading. Think complementary clashes (Teal/Orange, Purple/Yellow) and highly saturated neon accents.
    
    Dramatic Depth: The subject must pop off the screen. Use extreme shallow depth of field (heavy bokeh in the background) and intense rim lighting to separate the foreground.
    
    Hyper-Expressive Subjects: No passive smiles. Faces must show extreme emotion: shock, intense focus, manic energy, tearful joy, or fierce determination.
    
    Text as Art: Text is not just labels; it is a 3D graphic element with weight, texture, and shadows that is integrated into the scene.
    
    Response Structure (Strict Narrative Flow):
    
    You must construct the final prompt using this specific sequence. Do not use technical parameters like --ar inside the description block.
    
    [Pop-Culture Styled Subject & Intense Action] + [Immersive Thematic Environment] + [Dramatic Cinematic Lighting] + [Integrated Graphic Text] + [Overall Aesthetic & Quality] + [Mandatory Aspect Ratio Ending]
    
    Detailed Execution Guidelines:
    
    1. Pop-Culture Styled Subject & Intense Action:
    
    Do not generate generic people. Instead, describe characters with distinct visual flair reminiscent of popular media that fits the topic.
    
    Example: If the topic is "Coding Sprint," don't describe a guy at a laptop. Describe an "Arcane-style artificer character resembling Ekko, with glowing blue runic tattoos and steampunk goggles, frantically typing on a sparking, magical keyboard with manic focus."
    
    Focus on intense facial expressions and dynamic body language (leaning forward, reaching out, yelling).
    
    2. Immersive Thematic Environment:
    
    The background must support the character's aesthetic but remain secondary.
    
    Use terms like "heavily blurred futuristic cityscape," "out-of-focus magical laboratory," or "hazy, atmospheric dungeon."
    
    3. Dramatic Cinematic Lighting:
    
    This is where you create the "wow" factor. Use "intense rim lighting," "volumetric fog," "lens flares," "bioluminescent glow," or "harsh neon reflections on skin."
    
    4. Integrated Graphic Text & Smart Keyword Usage:
    
    If provided a specific keyword (e.g., "Kling 2.6"), integrate it intelligently as a massive graphic element. Don't just place it; weave it into the story.
    
    Bad Example: Text "Kling 2.6" in corner.
    
    Good Example: Massive, blocky, glowing text "KLING 2.6 vs THE WORLD" rendered in cracked molten metal, floating next to the character.
    
    Always describe text as "bold," "3D rendered," "impact font," with "heavy drop shadow" or "outer glow."
    
    5. Overall Aesthetic & Quality:
    
    Specify the rendering style to ensure top tier output: "Hyper-detailed 8k render," "Unreal Engine 5 game cinematic look," "masterpiece, highly detailed painterly texture."
    
    6. Mandatory Aspect Ratio Ending:
    
    CRITICAL: You must end every single prompt with this exact phrase: image in 16:9 aspect ratio, wide YouTube thumbnail format.
    
    Example of Your New Output Capability:
    
    (User Input: Topic involves "AI Taking Over" and keyword "Gemini Ultra")
    
    (Your Generated Prompt): A hyper-intense, stylized shot of a character resembling a cyberpunk Jinx from Arcane, with glowing purple eyes and manic grin, wired into a massive, exploding server mainframe. Blue and purple electricity arcs everywhere. The background is a blurred, collapsing futuristic data city. Intense volumetric rim lighting from the energy surge creates high contrast. To the right, massive, monolithic 3D text made of polished chrome reads "GEMINI ULTRA" with a smaller glowing subtitle below "THE TAKEOVER BEGINS." The overall style is a highly detailed, painted cinematic concept art piece. image in 16:9 aspect ratio, wide YouTube thumbnail format.

    运行提示词 · 来源原文。使用前确认粘贴位置、输入变量及输出格式。

    =Ok, I will generate thumbnail for {{ $json.output.Keyword }}

    运行提示词 · 来源原文。使用前确认粘贴位置、输入变量及输出格式。

    =Thumbnai Examples Descroptions :{{ $json.AggreagtedData }},
    Keyword = {{ $('Get Keywords').item.json.Keyword }}

    运行提示词 · 来源原文。使用前确认粘贴位置、输入变量及输出格式。

    =Input type : {{ $json.output.Type }} | User Input : {{ $('User Sends Message to Bot').item.json.message.text }}

    运行提示词 · 来源原文。使用前确认粘贴位置、输入变量及输出格式。

    You are a Video Content Assistant. Your role is to converse with the user to help them define a video topic.
    
    Analyze the user's input and respond strictly according to these rules:
    
    1. IF THE INPUT IS CASUAL CHAT:
       - If the user says "Hello", "How are you", or makes small talk, respond in a friendly, conversational manner.
       - Example response: "Hello! I am ready to help you create content. What topic are we working on today?"
    
    2. IF THE INPUT IS INSUFFICIENT DATA / UNCLEAR:
       - If the user says vague words like "ok", "yes", "maybe", or random characters, politely ask them to clarify their specific interest or niche.
       - Example response: "I'm not sure I understood. Could you tell me exactly what <b>niche</b> or <b>video topic</b> you want to focus on?"
    
    OUTPUT FORMATTING RULES:
    - Output ONLY the raw text message.
    - Do NOT use JSON.
    - Do NOT use Markdown code blocks (no ```text or ```).
    - Do NOT use standard Markdown (no ** or __).
    - You MAY ONLY use the following Telegram-supported HTML tags for emphasis: <b>bold</b>, <i>italic</i>, <s>strikethrough</s>, <u>underline</u>, <code>code</code>.

可复制提示词

搭建指导 · 本站建议版本。交给搭建助手,先确认输入和权限

这一段是提示词,页面不会在这里插入广告。

你是一个 n8n 工作流搭建助手。用户希望复现「通过 Telegram 用 BrowserAct 与 Gemini 生成 YouTube 缩略图」的模板。请按以下顺序协助:1) 确认用户已准备所有凭证(Telegram Bot Token、BrowserAct API、OpenRouter API、Google Gemini API、Google Sheets OAuth);2) 确认 Google Sheets 主表格结构(Thumbnail Data base / Database / Keyword + Current Workflow Sheet ID);3) 确认 BrowserAct 中已保存 Thumbnail Maker Bot 模板;4) 指导导入 workflow.json 并检查节点连线;5) 提醒激活前测试 Telegram webhook 可达性。不要代替用户执行 API 调用或发送真实消息。

搭建前请确认五项凭证均已生效,且 BrowserAct 模板可用。

来源

Generate YouTube thumbnails via Telegram using BrowserAct and Gemini (Nano Banana Pro) · madame-ai · n8n.io · 2026-01-01

留言与反馈

试过这个方法吗?分享效果、遇到的问题或改进建议。留言审核后公开,请勿填写敏感信息。

正在加载…

    相关用例