{ "schema_version": "workflow/v1", "workflow_key": "douyin-random-video", "name": "视觉点击:打开随机抖音视频", "description": "打开真实浏览器中的抖音推荐页,用多模态 AI 定位当前推荐视频区域并点击播放/聚焦。", "variables": { "douyin_url": { "type": "string", "default": "https://www.douyin.com/", "description": "抖音推荐入口地址,通常保持默认即可" } }, "settings": { "max_steps": 10, "default_timeout_ms": 120000, "on_unhandled_error": "pause_for_user", "return": {"node_id": "locate"} }, "nodes": [ {"id": "start", "type": "flow.start", "title": "开始", "position": {"x": 80, "y": 180}, "params": {}, "inputs": {}}, {"id": "open", "type": "browser.open_url", "title": "打开抖音推荐页", "position": {"x": 300, "y": 180}, "params": {"browser": "edge", "new_window": true}, "inputs": {"url": {"source": "variable", "name": "douyin_url"}}}, {"id": "wait", "type": "wait.seconds", "title": "等待页面加载", "position": {"x": 540, "y": 180}, "params": {"seconds": 8}, "inputs": {}}, { "id": "locate", "type": "vision.locate_element", "title": "AI 定位当前视频", "position": {"x": 780, "y": 180}, "params": { "target_description": "定位当前抖音推荐页中正在展示的主视频画面中心,优先点击视频画面可播放区域。不要选择搜索框、头像、关注按钮、评论按钮、点赞按钮、分享按钮或浏览器控件。", "screen_context": "抖音网页推荐视频流。", "randomize": false, "save_screenshot": true, "fail_if_not_found": true, "temperature": 0.1 }, "inputs": {} }, { "id": "click", "type": "mouse.click", "title": "点击播放/聚焦", "position": {"x": 1040, "y": 180}, "params": {"button": "left", "clicks": 1, "duration": 0}, "inputs": { "x": {"source": "node_output", "node_id": "locate", "output": "x"}, "y": {"source": "node_output", "node_id": "locate", "output": "y"} } }, {"id": "end", "type": "flow.end", "title": "结束", "position": {"x": 1280, "y": 180}, "params": {}, "inputs": {}} ], "edges": [ {"id": "start_to_open", "kind": "control", "source": "start", "source_port": "next", "target": "open", "target_port": "run"}, {"id": "open_to_wait", "kind": "control", "source": "open", "source_port": "success", "target": "wait", "target_port": "run"}, {"id": "wait_to_locate", "kind": "control", "source": "wait", "source_port": "success", "target": "locate", "target_port": "run"}, {"id": "locate_to_click", "kind": "control", "source": "locate", "source_port": "success", "target": "click", "target_port": "run"}, {"id": "click_to_end", "kind": "control", "source": "click", "source_port": "success", "target": "end", "target_port": "run"} ] }