agents
Create Agent
Create a new agent
post/api/v1/agents/
Request body
Example request
{
"name": "Weather agent",
"description": "Agent for answering questions about weather.",
"label": "Information",
"labels": [
"Information",
"Weather"
],
"type": "ca_v1",
"prompt_id": 1,
"prompt_version_number": 3,
"custom_message_id": 1,
"language_group_id": 1,
"bridge_phrases_id": 1,
"timezone": "America/New_York",
"prompt_tool_defaults": [
{
"default_values": [
{
"default_value": "fahrenheit",
"field_name": "temperature_unit"
}
],
"tool_name": "get_weather"
}
],
"languages": [
"en-US",
"es-US"
],
"variables": {
"vars.location_name": "Main Street Pizza"
},
"tool_headers": {
"some-header": "some-value"
}
}Response
Successful Response