Overview
Tasks are the fundamental building block in Skyvern. Each task is a single request to Skyvern, instructing it to navigate through a website and accomplish a specific goal. You can create tasks using either the Python SDK, TypeScript SDK, or directly via the REST API.Creating Tasks with the Python SDK
Basic Task Execution
The simplest way to create and run a task is using therun_task method:
Task with URL and Data Extraction
For more control, specify a starting URL and extract structured data:Waiting for Task Completion
By default,run_task returns immediately. To wait for completion:
Using Local Mode
Run Skyvern locally in-process (requires runningskyvern quickstart first):
Creating Tasks with the TypeScript SDK
Creating Tasks via REST API
API Endpoint
Request Body
Response
Task Execution Engines
Skyvern supports multiple execution engines:skyvern-2.0(default): Latest Skyvern agent, best for complex and multi-step tasksskyvern-1.0: Good for simple tasks like filling forms or searchingopenai-cua: Uses OpenAI’s Computer Use Agent modelanthropic-cua: Uses Anthropic’s Claude Sonnet 3.7 with computer use toolui-tars: Specialized UI interaction engine
Advanced Configuration
Custom LLM Model
Specify a custom model configuration:Browser Session Persistence
Run tasks in a persistent browser session:Using Webhooks
Receive notifications when tasks complete:Next Steps
Task Parameters
Learn about all available task parameters and options
Data Extraction
Extract structured data with JSON schemas
Monitoring Runs
Monitor task execution and view results