Skip to content

Automate browser based workflows with AI

fix skyvern run task doc (#2385)

Shuchang Zhengabf581a8ce47
diff --git a/README.md b/README.md
index 36b616342..89bc2c141 100644
--- a/README.md
+++ b/README.md
@@ -98,36 +98,37 @@ This quickstart guide will walk you through getting Skyvern up and running on yo
4. **Launch the Skyvern UI**
-```bash
-skyvern run ui
-```
+ ```bash
+ skyvern run ui
+ ```
5. **Run task**
-Run a skyvern task locally:
-```python
-from skyvern import Skyvern
-
-skyvern = Skyvern()
-task = await skyvern.run_task(prompt="Find the top post on hackernews today")
-print(task)
-```
-You should see your local browser
-You can also send a task to Skyvern Cloud
-```python
-from skyvern import Skyvern
+ Run a skyvern task locally:
+ ```python
+ from skyvern import Skyvern
-skyvern = Skyvern()
-task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
-print(task)
-```
+ skyvern = Skyvern()
+ task = 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.
-Or anywhere Skyvern is hosted:
-```python
-skyvern = Skyvern(base_url="http://localhost:8000", api_key="SKYVERN API KEY in LOCAL SKYVERN")
-task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
-print(task)
-```
+ You can also send a task to Skyvern Cloud:
+ ```python
+ from skyvern import Skyvern
+
+ skyvern = Skyvern()
+ task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
+ print(task)
+ ```
+
+ Or send the task anywhere Skyvern is hosted:
+ ```python
+ skyvern = Skyvern(base_url="http://localhost:8000", api_key="SKYVERN API KEY in LOCAL SKYVERN")
+ task = await skyvern.agent.run_task(prompt="Find the top post on hackernews today")
+ print(task)
+ ```
## Docker Compose setup