Run a task
A task has one required parameter and one commonly used optional parameter:prompt(required): Natural language instructions describing what the AI should dourl(optional): The starting page for the automation
run_task, Skyvern spins up a cloud browser, navigates to the URL, and executes your prompt. A typical task takes 30-90 seconds depending on complexity.
run_id. Use this ID to check status, fetch results, and retrieve artifacts.
Get results
Therun_task call queues the task and returns immediately.
Use the run_id to fetch results once the task reaches a terminal state.
You have three options for retrieving results:
Option 1: Polling
Pollget_run until status is terminal (completed, failed, terminated, timed_out, or canceled).
Option 2: Webhooks
Pass awebhook_url when creating the task. Skyvern sends a POST request to your URL when the task completes.
Option 3: Wait for completion (Python only)
Block until the task finishes instead of polling manually.Python
Understand the response
The response from polling (get_run) and webhooks have slightly different structures. Both contain the core task data, but webhooks include additional metadata.
Polling-only fields:
Webhook-only fields:
Artifacts
Every run captures recordings, screenshots, and logs. See Using Artifacts for retrieval and the full artifact type reference.For multi-step automations that chain multiple actions, see Browser Automation.

