curl -X POST https://api.rotavision.com/v1/dastavez/agents/agent_xyz789/workflows \
-H "Authorization: Bearer rv_live_..." \
-H "Content-Type: application/json" \
-d '{
"workflow": {
"steps": [
{
"action": "navigate",
"url": "https://services.gst.gov.in"
},
{
"action": "login",
"credentials_key": "gst_portal"
},
{
"action": "wait",
"selector": ".dashboard-loaded",
"timeout": 10000
},
{
"action": "click",
"selector": "[data-menu=\"returns\"]"
},
{
"action": "extract",
"selector": ".returns-table tr",
"multiple": true,
"fields": {
"period": "td:nth-child(1)",
"status": "td:nth-child(2)",
"filed_date": "td:nth-child(3)"
}
},
{
"action": "screenshot",
"full_page": false
}
]
},
"inputs": {
"financial_year": "2025-26"
}
}'
{
"id": "workflow_exec_123",
"agent_id": "agent_xyz789",
"status": "running",
"progress": {
"current_step": 2,
"total_steps": 6,
"current_action": "login"
},
"created_at": "2026-02-01T10:30:00Z"
}
Execute a browser automation workflow
curl -X POST https://api.rotavision.com/v1/dastavez/agents/agent_xyz789/workflows \
-H "Authorization: Bearer rv_live_..." \
-H "Content-Type: application/json" \
-d '{
"workflow": {
"steps": [
{
"action": "navigate",
"url": "https://services.gst.gov.in"
},
{
"action": "login",
"credentials_key": "gst_portal"
},
{
"action": "wait",
"selector": ".dashboard-loaded",
"timeout": 10000
},
{
"action": "click",
"selector": "[data-menu=\"returns\"]"
},
{
"action": "extract",
"selector": ".returns-table tr",
"multiple": true,
"fields": {
"period": "td:nth-child(1)",
"status": "td:nth-child(2)",
"filed_date": "td:nth-child(3)"
}
},
{
"action": "screenshot",
"full_page": false
}
]
},
"inputs": {
"financial_year": "2025-26"
}
}'
{
"id": "workflow_exec_123",
"agent_id": "agent_xyz789",
"status": "running",
"progress": {
"current_step": 2,
"total_steps": 6,
"current_action": "login"
},
"created_at": "2026-02-01T10:30:00Z"
}
| Action | Description | Parameters |
|---|---|---|
navigate | Go to URL | url |
click | Click element | selector, wait_for |
type | Type text | selector, text, clear |
extract | Extract data | selector, attribute, multiple |
screenshot | Capture screen | full_page, selector |
download | Download file | selector, wait_for |
wait | Wait for element/time | selector, timeout, duration |
login | Authenticate | credentials_key |
conditional | If/else logic | condition, then, else |
loop | Iterate | items, steps |
curl -X POST https://api.rotavision.com/v1/dastavez/agents/agent_xyz789/workflows \
-H "Authorization: Bearer rv_live_..." \
-H "Content-Type: application/json" \
-d '{
"workflow": {
"steps": [
{
"action": "navigate",
"url": "https://services.gst.gov.in"
},
{
"action": "login",
"credentials_key": "gst_portal"
},
{
"action": "wait",
"selector": ".dashboard-loaded",
"timeout": 10000
},
{
"action": "click",
"selector": "[data-menu=\"returns\"]"
},
{
"action": "extract",
"selector": ".returns-table tr",
"multiple": true,
"fields": {
"period": "td:nth-child(1)",
"status": "td:nth-child(2)",
"filed_date": "td:nth-child(3)"
}
},
{
"action": "screenshot",
"full_page": false
}
]
},
"inputs": {
"financial_year": "2025-26"
}
}'
{
"id": "workflow_exec_123",
"agent_id": "agent_xyz789",
"status": "running",
"progress": {
"current_step": 2,
"total_steps": 6,
"current_action": "login"
},
"created_at": "2026-02-01T10:30:00Z"
}