Browser

Google Flow Video Automation

Try it

Automatically generate AI videos on Google Flow (labs.google/fx/tools/flow) via Chrome CDP. Supports 16:9 aspect ratio, 10s duration, auto-download MP4.

What it does

**2. 手动登录 Google 账号** 在打开的 Chrome 窗口中登录你的 Google 账号 登录后保持 Chrome 窗口打开(Cookie 会保持登录状态)

The skill document

Google Flow 视频自动化 Skill

🚀 快速使用流程

首次使用(一次性设置)

1. 启动 Chrome(CDP 远程调试)

pkill -9 "Google Chrome"
sleep 2
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/Library/Application Support/Google/Chrome/Default" \
  "https://labs.google/fx/tools/flow" &
sleep 5

2. 手动登录 Google 账号

  • 在打开的 Chrome 窗口中登录你的 Google 账号
  • 登录后保持 Chrome 窗口打开(Cookie 会保持登录状态)

3. 探索可用选项(保存配置)

cd ~/.workbuddy/skills/google-flow-automation
node explore-options.js

4. 生成第一条视频

node generate-one.js --prompt "Video of a joyful horse..." --output ./videos

日常使用(非首次)

# 1. 检查 Chrome 是否已启动
cd ~/.workbuddy/skills/google-flow-automation
node check-chrome.js

# 2. 如果没启动,运行:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
  --remote-debugging-port=9222 \
  --user-data-dir="$HOME/Library/Application Support/Google/Chrome/Default" &

# 3. 生成视频(一次一条)
node generate-one.js --prompt "你的提示词" --output ./videos

⚠️ 关键要求

1. 提示词必须以 "Video of" 开头!

原因: Google Flow AI 解析提示词时,如果开头不是视频关键词,会默认生成图片(JPG)而非视频(MP4)。

正确: Video of a joyful horse magically stepping out...
错误: A joyful horse magically stepping out...(会生成图片)

脚本会自动处理: 如果提示词不是以视频关键词开头,generate-one.js 会自动添加 "Video of " 前缀。

2. 一次只生成一条视频

避免浪费积分(Omni Flash 模型:15 credits/条)


🎨 提示词模板

Video of [主体] + [动作:从屏幕走出] + [目标:到用户手里] + [风格/光照]

示例(直接可用)

中文意图英文提示词
快乐的马从屏幕走出Video of a joyful horse magically stepping out of a glowing screen into the viewer's hands, warm cinematic lighting
快乐的狗从屏幕走出Video of a happy golden dog leaping out of a bright screen into the viewer's open hands, playful and magical
快乐的龙从屏幕走出Video of a friendly dragon crawling out of a mystical screen into the user's hands, fantasy style, glowing particles
快乐的兔子从屏幕走出Video of a cute bunny hopping out of a colorful screen into the viewer's palms, cheerful and vibrant

💡 技巧:

  • "magically stepping out""leaping out" 描述"从屏幕走出"
  • "into the viewer's hands" 描述"到用户手里"
  • "cinematic lighting" 提升画面质量
  • 保持 50 词以内

📁 文件结构

~/.workbuddy/skills/google-flow-automation/
├── SKILL.md                   # 本文档
├── QUICKSTART.md              # 5分钟快速入门
├── explore-options.js         # 探索可用选项(首次使用)
├── generate-one.js            # 生成单条视频(日常使用)★
├── check-chrome.js           # 检查 Chrome CDP 状态
├── config.json                # 用户配置(自动生成)
├── available-options.json     # 可用选项(探索后生成)
└── examples/
    └── prompts-example.txt   # 提示词示例

🔧 配置说明

available-options.json(探索后自动生成)

{
  "videoGeneration": {
    "models": [
      {"name": "Omni Flash", "credits": 15},
      {"name": "Omni Pro", "credits": 30}
    ],
    "aspectRatios": ["16:9", "9:16"],
    "durations": ["1x", "x2", "x3", "x4"]
  }
}

推荐参数配置

  • 模型: Omni Flash(15 credits,性价比高)
  • 比例: 16:9(横屏)
  • 时长: x2(10秒)

🚨 常见问题

Chrome 启动失败?

# 检查 9222 端口是否监听
curl -s http://127.0.0.1:9222/json/version

# 如果没反应,重新启动 Chrome

积分不足?

  • Omni Flash:15 credits/条
  • Omni Pro:30 credits/条
  • 检查账号剩余积分(Google Flow 网页右上角)

视频下载失败?

脚本会自动等待,但如果超时:

  1. 在 Chrome 里找到生成的视频
  2. 右键 → "Save video as..."
  3. 选择保存位置

📝 更新日志

v3.0(当前版本 - 精简高效版)

  • ✅ 精简文档,移除冗余说明
  • ✅ 突出关键要求("Video of" 开头)
  • ✅ 优化提示词模板
  • ✅ 增强 generate-one.js 自动添加视频关键词前缀

v2.0

  • ✅ 改为一次只生成一条(避免浪费积分)
  • ✅ 新增首次使用完整引导
  • ✅ 新增 explore-options.jsgenerate-one.js

🎬 快速开始:直接运行 node generate-one.js --prompt "Video of ..." --output ./videos

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai21 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván555 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván854 installs69 stars

More from hitjcl

Browse all skills

AI短剧制作助手 | AI Short Film Producer — 低成本AI短剧/短片全流程制作技能。使用Grok Imagine生成视频镜头、TTS生成配音,配合FFmpeg+Python本地合成。适用于从零制作AI短片、短视频、短剧EP、预告片等场景。包含完整的分镜脚本创作、视频生成、配音生成、音频驱动...

by hitjcl17 installs

中小商家免费GEO优化助手。当商家老板需要以下场景时触发: - 发布企业宣传信息到自媒体平台 - 生成符合SEO/GEO优化的文章内容 - 管理企业在抖音、小红书、知乎、百家号、头条号、搜狐号、网易号、快手等平台的品牌内容 - 上传营业执照、门头照片等产品资料自动生成宣传文案 - 客户案例包装和企业口碑内容创作...

by hitjcl12 installs1 stars

低成本AI短剧/短片全流程制作技能。三套制作路线:①速创API+Grok Imagine直出视频(¥30-50/部);②可灵Kling V3+Gemini Image图生视频(¥80-120/部);③Google Flow Omni Flash免费批量文生视频(¥0/部,Chrome CDP自动化)。包含分镜脚本...

by hitjcl13 installs

Automates browser to fetch and summarize publicly visible tweets from a specified X (Twitter) user into a Markdown report.

by hitjcl16 installs

微信好用知识库,打通 Agent,多平台视频链接一键下载归档。 微信/视频号/抖音/小红书/公众号的内容,丢过来自动识别、下载、上传腾讯文档,智能表格一键归档。 抖音下载同步提取视频描述(创作者文案/#标签),保存为 .caption.txt。 视频直传在线播放,文章自动转存。视频号用自研 sph-downloa...

by hitjcl6 installs1 stars

AI科普视频全流程自动化制作技能。将数字人形象(Google Flow / SadTalker)、AI语音克隆(F5-TTS MLX)、Pillow内容幻灯片、逐字卡拉OK字幕(Pillow + FFmpeg)、以及专业级音视频QA整合为8阶段自动化流水线。覆盖:脚本策划 → 数字人生成 → TTS语音克隆 →...

by hitjcl1 installs