Selenium & Playwright code generation from text instructions
Project description
🏄♀️ What is LaVague?
LaVague is an open-source Large Action Model framework for turning natural language into browser actions.
At LaVague's core, we have an Action Engine which uses advanced AI techniques (RAG, Few-shot learning, Chain of Thought) to “compile” natural language instructions into browser automation code, by leveraging Selenium or Playwright.
LaVague in Action
Here's an example of LaVague being used to execute natural language instructions on a browser to automate web interactions. This example uses the Gradio interface available with the lavague launch CLI command:
🚀 Getting Started
Running LaVague in your local env
You can get started with LaVague in 2 steps:
- Install LaVague & dependencies
wget https://raw.githubusercontent.com/lavague-ai/LaVague/main/setup.sh &&
bash setup.sh
- Run your LaVague command!
You can either launch an interactive Gradio interface, where you will see both the automation code generated for each instruction but also a live preview of the results of executing the code with a debug tab:
lavague launch
Or you can use the build command to directly get the Python code leveraging Selenium in a file, which you can then inspect & execute locally:
lavague build
Note, you'll need an OpenAI API key for this default example and will need the
OPENAI_API_KEYset in your environment. To use LaVague with a different API, see our integrations section.
For an end-to-end example of LaVague in a Google Colab, see our quick-tour notebook
🎭 Playwright integration
If you want to get started with LaVague build using Playwright as your underlying automation tool, see our Playwright integration guide
🙋 Contributing
We would love your help and support on our quest to build a robust and reliable Large Action Model for web automation.
To avoid having multiple people working on the same things & being unable to merge your work, we have outlined the following contribution process:
- 📢 We outline tasks on our
backlog: we recommend you check out issues with thehelp-wantedlabels &good first issuelabels - 🙋♀️ If you are interested in working on one of these tasks, comment on the issue!
- 🤝 We will discuss with you and assign you the task with a
community assignedlabel - 💬 We will then be available to discuss this task with you
- ⬆️ You should submit your work as a PR
- ✅ We will review & merge your code or request changes/give feedback
Please check out our contributing guide for a more detailed guide.
If you want to ask questions, contribute, or have proposals, please come on our Discord to chat!
🗺️ Roadmap
TO keep up to date with our project backlog here.
🚨 Disclaimer
Note, this project executes LLM-generated code using exec. This is not considered a safe practice. We therefore recommend taking extra care when using LaVague (such as running LaVague in a sandboxed environment)!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lavague-1.0.12.tar.gz.
File metadata
- Download URL: lavague-1.0.12.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3f91d3087fd6eba81799994091bc787c85cacb114fdcada388979de5e3b0afe
|
|
| MD5 |
2435b370a07603573ad6bef8e647f5b5
|
|
| BLAKE2b-256 |
8376f49ff24de48f701dbd1920289047d6d0b83c2a4080f8617945d9565eaf11
|
File details
Details for the file lavague-1.0.12-py3-none-any.whl.
File metadata
- Download URL: lavague-1.0.12-py3-none-any.whl
- Upload date:
- Size: 36.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5969d4888d948928a93781017484f36ec1e5922d74d57cc9c4cc84f0f42dccb5
|
|
| MD5 |
3036a14240cc1f99415d3251b3815b43
|
|
| BLAKE2b-256 |
1cc7095d5485c0062135c9933c3977f43d3ef5e3267be51a533cd59bc265edac
|