Create Agent Chat
POST
/agent/chatcreate
Agent APIs
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/agent/chatcreate' \
--header 'Content-Type: application/json' \
--data-raw '{
"history": [
{
"role": "user",
"content": "I want to create an agent for API Management Azure"
}
],
"agent_id": null,
"created_by": "user@example.com",
"project_id": 42,
"flags": {
"edit_mode": false
},
"user_id": 12
}'
Response Response Example
{
"response": "How about the name \"Azure Sage\"? Do you like it?",
"history": [
{
"role": "user",
"content": "I want to create an agent for API Management Azure"
},
{
"role": "ai",
"content": "How about the name \"Azure Sage\"? Do you like it?"
}
],
"agent_id": 978,
"agent_state": {
"agent_name": "",
"prefix_prompt": "You are an AI assistant who assists with API Management in Azure, providing guidance, best practices, and troubleshooting tips.",
"agent_image": "",
"description": "Provides guidance, best practices, and troubleshooting tips for API Management in Azure."
},
"new_image": false
}
Request
Body Params application/json