douyin-next-video.workflow.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "schema_version": "workflow/v1",
  3. "workflow_key": "douyin-next-video",
  4. "name": "视觉点击:抖音视频下一条",
  5. "description": "在当前抖音网页视频流中,用多模态 AI 定位下一条/向下切换按钮并点击。",
  6. "variables": {},
  7. "settings": {
  8. "max_steps": 8,
  9. "default_timeout_ms": 60000,
  10. "on_unhandled_error": "pause_for_user",
  11. "return": {"node_id": "locate"}
  12. },
  13. "nodes": [
  14. {"id": "start", "type": "flow.start", "title": "开始", "position": {"x": 80, "y": 180}, "params": {}, "inputs": {}},
  15. {
  16. "id": "locate",
  17. "type": "vision.locate_element",
  18. "title": "AI 定位下一条按钮",
  19. "position": {"x": 360, "y": 180},
  20. "params": {
  21. "target_description": "定位抖音视频流页面中用于切换到下一条视频的向下箭头、下一条按钮或页面右侧的下一个视频切换控件中心。不要选择点赞、评论、收藏、分享、头像、关注或搜索按钮。",
  22. "screen_context": "当前已经停留在抖音网页视频播放页。",
  23. "randomize": false,
  24. "save_screenshot": true,
  25. "fail_if_not_found": true,
  26. "temperature": 0.1
  27. },
  28. "inputs": {}
  29. },
  30. {
  31. "id": "click",
  32. "type": "mouse.click",
  33. "title": "点击下一条",
  34. "position": {"x": 620, "y": 180},
  35. "params": {"button": "left", "clicks": 1, "duration": 0},
  36. "inputs": {
  37. "x": {"source": "node_output", "node_id": "locate", "output": "x"},
  38. "y": {"source": "node_output", "node_id": "locate", "output": "y"}
  39. }
  40. },
  41. {"id": "end", "type": "flow.end", "title": "结束", "position": {"x": 860, "y": 180}, "params": {}, "inputs": {}}
  42. ],
  43. "edges": [
  44. {"id": "start_to_locate", "kind": "control", "source": "start", "source_port": "next", "target": "locate", "target_port": "run"},
  45. {"id": "locate_to_click", "kind": "control", "source": "locate", "source_port": "success", "target": "click", "target_port": "run"},
  46. {"id": "click_to_end", "kind": "control", "source": "click", "source_port": "success", "target": "end", "target_port": "run"}
  47. ]
  48. }