arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.15441cs.AI
收藏

Steward:自然语言Web自动化

Steward: Natural Language Web Automation

University of Michigan(密歇根大学)

Brian Tang, Kang G. Shin

AI总结:

本文提出Steward,一种基于LLM的Web自动化工具,通过自然语言指令驱动浏览器交互,解决了传统框架的可扩展性问题,并在效率和成本上表现优异。

摘要:

最近,大型语言模型(LLMs)在作为AI助手的基础方面展现出了卓越的能力。LLMs的一个新兴应用,即在各种网页间导航并与UI元素交互,仍然有些未被充分探索。我们引入了Steward,这是一种由LLM驱动的新型Web自动化工具,旨在作为一种经济高效、可扩展的端到端解决方案来实现Web交互自动化。传统的浏览器自动化框架(如Selenium、Puppeteer和Playwright)在广泛的Web交互任务中无法实现扩展,例如在YouTube和Twitter等平台上研究推荐算法。这些框架需要手动编写交互代码,限制了它们在大规模或动态环境中的实用性。Steward通过将LLM能力与浏览器自动化相结合来解决这些限制,允许通过自然语言驱动与网站交互。Steward通过接收自然语言指令,反应式地规划并在网站上执行一系列操作,循环直至完成,使其成为开发者和研究人员实用的工具。它实现了高效率,在8.52到10.14秒内完成操作,成本为每次操作0.028美元或平均每任务0.18美元,通过缓存机制进一步降至4.8秒和0.022美元。它在真实网站上运行任务的成功率为40%。我们讨论了各种设计和实现挑战,包括状态表示、操作序列选择、系统响应性、任务完成检测和缓存实现。

英文摘要:

Recently, large language models (LLMs) have demonstrated exceptional capabilities in serving as the foundation for AI assistants. One emerging application of LLMs, navigating through websites and interacting with UI elements across various web pages, remains somewhat underexplored. We introduce Steward, a novel LLM-powered web automation tool designed to serve as a cost-effective, scalable, end-to-end solution for automating web interactions. Traditional browser automation frameworks like Selenium, Puppeteer, and Playwright are not scalable for extensive web interaction tasks, such as studying recommendation algorithms on platforms like YouTube and Twitter. These frameworks require manual coding of interactions, limiting their utility in large-scale or dynamic contexts. Steward addresses these limitations by integrating LLM capabilities with browser automation, allowing for natural language-driven interaction with websites. Steward operates by receiving natural language instructions and reactively planning and executing a sequence of actions on websites, looping until completion, making it a practical tool for developers and researchers to use. It achieves high efficiency, completing actions in 8.52 to 10.14 seconds at a cost of $0.028 per action or an average of $0.18 per task, which is further reduced to 4.8 seconds and $0.022 through a caching mechanism. It runs tasks on real websites with a 40% completion success rate. We discuss various design and implementation challenges, including state representation, action sequence selection, system responsiveness, detecting task completion, and caching implementation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑