v1
latestOpenAPI 3.1.02026-07-135055368.9 KBAgents
Create a New AI Agent
Create a New AI Agent
post/v1/ai-agents
Request body
Example request
{
"name": "HelperBot",
"imageUrl": "http://example.com/agent.png",
"mission": {
"prompt": "Check Trata AI docs on the specifics of prompting.",
"objective": "This is a more easier version where the user dont have to given the entire prompt but just share the objective of the call and rest will be handled by Trata.",
"greeting": "Hello! Thank you for taking the time to speak with me today.",
"sequence": [
{
"stageName": "Introduction",
"description": "This stage involves introducing the AI agent to the user and explaining the purpose of the call.",
"otherNotes": "Ensure the user understands the privacy policy."
}
]
},
"role": "Customer Support",
"roleDescription": "Handles customer inquiries and support tasks",
"timezone": "America/New_York"
}Response
AI Agent created successfully
Example response
{
"mission": {
"prompt": "Check Trata AI docs on the specifics of prompting.",
"objective": "This is a more easier version where the user dont have to given the entire prompt but just share the objective of the call and rest will be handled by Trata.",
"greeting": "Hello! Thank you for taking the time to speak with me today.",
"sequence": [
{
"stageName": "Introduction",
"description": "This stage involves introducing the AI agent to the user and explaining the purpose of the call.",
"otherNotes": "Ensure the user understands the privacy policy."
}
]
}
}