Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix skyvern run docs part 2 (#2386)
Shuchang Zheng699502ea8414
diff --git a/README.md b/README.mdindex 89bc2c141..c95a26e89 100644--- a/README.md+++ b/README.md@@ -77,7 +77,7 @@ If you'd like to try it out,# QuickstartThis quickstart guide will walk you through getting Skyvern up and running on your local machine.-## Local+## Install & Run> ⚠️ **REQUIREMENT**: This project requires Python 3.11 ⚠️1. **Install Skyvern**@@ -112,7 +112,7 @@ This quickstart guide will walk you through getting Skyvern up and running on yotask = await skyvern.run_task(prompt="Find the top post on hackernews today")print(task)```- A local browser will pop up. Skyvern will start executing the task in the browser and close the it when the task is done.+ A local browser will pop up. Skyvern will start executing the task in the browser and close the it when the task is done. You will be able to review the task from http://localhost:8080/historyYou can also send a task to Skyvern Cloud:```pythondiff --git a/fern/introduction.mdx b/fern/introduction.mdxindex 7d0a0391f..e6c63fc4f 100644--- a/fern/introduction.mdx+++ b/fern/introduction.mdx@@ -71,34 +71,44 @@ Skyvern was inspired by the Task-Driven autonomous agent design popularized by [## Quickstart### Python SDK Installation+> ⚠️ **REQUIREMENT**: Skyvern runs with Python 3.11 ⚠️+```bashpip install skyvern```### Run Task-After initializing your local Skyvern setup, you can run agent tasks in any python code:+#### Run Task On A Skyvern Service+Get your API key from [Skyvern Cloud](https://app.skyvern.com/settings). Send the task to Skyvern Cloud:```pythonfrom skyvern import Skyvern-skyvern = Skyvern()+skyvern = Skyvern(api_key="YOUR API KEY")+# OR pass the base_url to use any Skyvern service+# skyvern = Skyvern(base_url="http://localhost:8000", api_key="YOUR API KEY")-task = await skyvern.run_task(prompt="Find the top post on hackernews today")+task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")print(task)```+More API & SDK information can be found in the [API Reference](/api-reference) section.++#### Run Task Locally+You can also run browser tasks locally in your python code but it takes a bit more effort to set up the environment:-### Run Task In Skyvern Service-Get your API key from [Skyvern Cloud](https://app.skyvern.com/settings) and to use Skyvern Cloud to run the task:+1. **Configure Skyvern** Run the setup wizard which will guide you through the configuration process, including Skyvern [MCP](https://github.com/Skyvern-AI/skyvern/blob/main/integrations/mcp/README.md) integration. This will generate a `.env` as the configuration settings file.+ ```bash+ skyvern init+ ```++2. **Run Task In Python Code**```pythonfrom skyvern import Skyvern-skyvern = Skyvern(api_key="YOUR API KEY")-# OR pass the base_url to use any Skyvern service-# skyvern = Skyvern(base_url="http://localhost:8000", api_key="YOUR API KEY")+skyvern = Skyvern()-task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")+task = await skyvern.run_task(prompt="Find the top post on hackernews today")print(task)```-More API & SDK information can be found in the [API Reference](/api-reference) section.<CardGroup cols={2}><Card