Run AI agent
import requests
import json

url = 'https://api.simplex.sh/agentic'
headers = {
    'X-API-Key': 'your_api_key_here'
}
data = {
    'task': 'Find and click the login button',
    'max_steps': 10,
    'session_id': 'your_session_id',
    'variables': json.dumps({'username': 'user@example.com'})  # Optional JSON string
}

response = requests.post(url, headers=headers, data=data)
print(response.json())
{
  "succeeded": true,
  "result": {},
  "error": "<string>"
}
Runs an AI agent to automate a task on the page.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

multipart/form-data

Response

Agentic response

The response is of type object.