yutori-browse

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Browser Automation

浏览器自动化

Help the user automate browser-based tasks using Yutori's Navigator agent.
使用Yutori的Navigator Agent帮助用户自动化基于浏览器的任务。

Process

流程

  1. Understand the task
    • What website needs to be automated?
    • What actions are required? (clicking, typing, extracting data)
    • Does it require login or authentication?
  2. Define the task clearly
    • Break complex workflows into clear steps
    • Specify what data to extract if applicable
    • Note any buttons or elements to interact with
  3. Start the browsing task Use
    run_browsing_task
    with:
    • task
      : Clear natural language instructions
    • start_url
      : The URL to begin browsing
    • max_steps
      : 25 (default) to 100 for complex flows
    • output_fields
      : For structured data extraction (e.g., ["name", "price", "url"])
  4. Poll for results
    • Browsing typically takes 30-120 seconds depending on complexity
    • Use
      get_browsing_task_result
      to check status
    • Poll every 10-15 seconds until complete
  5. Review and validate
    • Check the extracted data or confirmation
    • Verify the task completed as expected
  1. 理解任务
    • 需要自动化哪个网站?
    • 需要执行哪些操作?(点击、输入、提取数据)
    • 是否需要登录或身份验证?
  2. 清晰定义任务
    • 将复杂工作流拆分为清晰的步骤
    • 如果需要提取数据,请明确指定提取内容
    • 记录需要交互的按钮或元素
  3. 启动浏览任务 使用
    run_browsing_task
    时需传入:
    • task
      :清晰的自然语言指令
    • start_url
      :开始浏览的URL
    • max_steps
      :默认25,复杂流程可设为100
    • output_fields
      :用于结构化数据提取(例如,["name", "price", "url"])
  4. 轮询获取结果
    • 浏览任务通常需要30-120秒,具体取决于任务复杂度
    • 使用
      get_browsing_task_result
      检查任务状态
    • 每10-15秒轮询一次,直到任务完成
  5. 审核与验证
    • 检查提取的数据或任务完成确认信息
    • 验证任务是否按预期完成

Task Writing Tips

任务编写技巧

  • Be specific about UI elements: "Click the blue 'Submit' button"
  • Reference visible text when possible
  • For forms, specify which fields get which values
$ARGUMENTS
  • 明确指定UI元素:“点击蓝色的‘提交’按钮”
  • 尽可能参考可见文本
  • 对于表单,明确指定各字段对应的输入值
$ARGUMENTS