AI Task
POST/v1/automate
Execute AI-powered browser automation tasks using natural language. This endpoint always streams responses using Server-Sent Events (SSE).
Streaming Response:
- All responses are streamed using Server-Sent Events (
text/event-stream) - Real-time progress updates and results as they're generated
Use Cases:
- Web scraping and data extraction
- Form filling and interaction
- Navigation and information gathering
- Multi-step web workflows
- Content analysis from web pages
Request
Responses
- 200
- 400
- 401
- 500
- 503
Task executed successfully (always streaming)
Streaming Response using Server-Sent Events: All responses from the automate endpoint are streamed using Server-Sent Events.
Event Format:
- Each event starts with
event: <type>followed bydata: <JSON> - Empty lines separate events
Event Types:
Task Events:
start: Task initializationtask:setup: Task configurationtask:started: Task execution beginstask:completed: Task finished successfullytask:aborted: Task was terminatedtask:validated: Task completion validationtask:validation_error: Validation failed
Agent Events:
agent:processing: Agent thinking/planningagent:status: Status updates and plansagent:step: Processing step iterationsagent:action: Actions being performedagent:reasoned: Agent reasoning outputagent:extracted: Data extraction resultsagent:waiting: Agent waiting for operations
Browser Events:
browser:navigated: Page navigation eventsbrowser:action_started: Browser action initiatedbrowser:action_completed: Browser action finishedbrowser:screenshot_captured: Screenshot taken
System Events:
system:debug_compression: Debug compression infosystem:debug_message: Debug messages
Stream Control:
complete: End of stream with resultsdone: Stream terminationerror: Error occurred
Bad request - Invalid task or missing required fields
Unauthorized - Invalid or missing Bearer token
Internal server error
Service unavailable - Automate service not configured