Task Management
Create Task
Task Management
Create Task
Create a new automated browser task
POST
/
task
/
create
curl --request POST \
--url 'http://localhost:2003/api/v1/task/create' \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"task": "Monitor a website for price changes",
"agent": "BROWSER_AGENT",
"tools": [
{
"type": "function",
"function": {
"name": "form_input",
"description": "Use this tool to ask information from the user",
"parameters": {
"type": "object",
"properties": {
"heading": {
"type": "string",
"description": "The heading of the form input"
},
"description": {
"type": "string",
"description": "The description of the form input"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Input field type"
},
"label": {
"type": "string",
"description": "Label text"
}
}
}
}
}
}
}
}
]
}'
{
"success": true,
"data": {
"taskId": "task_123"
}
}
curl --request POST \
--url 'http://localhost:2003/api/v1/task/create' \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"task": "Monitor a website for price changes",
"agent": "BROWSER_AGENT",
"tools": [
{
"type": "function",
"function": {
"name": "form_input",
"description": "Use this tool to ask information from the user",
"parameters": {
"type": "object",
"properties": {
"heading": {
"type": "string",
"description": "The heading of the form input"
},
"description": {
"type": "string",
"description": "The description of the form input"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Input field type"
},
"label": {
"type": "string",
"description": "Label text"
}
}
}
}
}
}
}
}
]
}'
{
"success": true,
"data": {
"taskId": "task_123"
}
}
Authorizations
Body
application/json
Natural language description of the task to be automated
Example:
"Monitor a website for price changes"
Agent to use for the task
List of tools available to the agent
curl --request POST \
--url 'http://localhost:2003/api/v1/task/create' \
--header 'x-api-key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"task": "Monitor a website for price changes",
"agent": "BROWSER_AGENT",
"tools": [
{
"type": "function",
"function": {
"name": "form_input",
"description": "Use this tool to ask information from the user",
"parameters": {
"type": "object",
"properties": {
"heading": {
"type": "string",
"description": "The heading of the form input"
},
"description": {
"type": "string",
"description": "The description of the form input"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Input field type"
},
"label": {
"type": "string",
"description": "Label text"
}
}
}
}
}
}
}
}
]
}'
{
"success": true,
"data": {
"taskId": "task_123"
}
}