import requests
response = requests.post(
"https://api.threetone.in/v1/convai/agents/create",
headers={
"x-api-key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"name": "Customer Support Agent",
"system_prompt": "You are a helpful customer support representative.",
},
timeout=30,
)
response.raise_for_status()
print(response.json()["agent_id"])