Create Agent By Agent Builder
POST
/v2/api/agent/agentbuilder
Agent
How It Works
1.
2.
agent_id
and details is returned.3.
Step-by-Step Guide to Creating an Agent
Create Agent by Agent Builder Guide
Request Body Details
agent_id
(integer, required): Unique identifier for the agent.1297
project_id
(integer, required): ID of the project to which the agent belongs.254
history
(string, optional): Background information or previous interactions related to the agent."I am history"
flags
(object, optional): Configuration options for the agent.image_generation_enabled
(boolean): Specifies if the agent supports image generation.true
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/api/agent/agentbuilder' \
--header 'Content-Type: application/json' \
--data-raw '{
"agent_id": 1297,
"project_id": 254,
"history": "i am history",
"flags": {
"image_generation_enabled": true
}
}'
Response Response Example
{
"success": true,
"message": "Agent chat created successfully",
"data": {
"id": 1297,
"agent_type": {
"id": 1,
"created_by": "System",
"created_on": "2024-04-17T23:10:22.313394Z",
"modified_by": "user@example.com",
"modified_on": "2024-04-17T23:10:22.313414Z",
"name": "QnA",
"description": ""
},
"instructions": [
{
"id": 10611,
"instruction": "",
"is_deleted": false,
"created_by": "user@example.com",
"created_on": "2025-01-29T17:23:00.550155Z",
"agent": 1297
}
],
"user": {
"id": 147,
"email": "user@example.com",
"first_name": "User",
"last_name": "User",
"organization": 1
},
"connected_tool_names": [
[
"Rag Tool",
"Attachment Tool"
]
],
"agent_name": "FC Barcelona Info Assistant",
"industry_area": "",
"domain": "Your go-to assistant for everything related to FC Barcelona! Get real-time updates, match details, player stats, transfer news, and historical insights about the club",
"sample_q1": "",
"sample_q2": "",
"sample_q3": "",
"prefix_prompt": "",
"alias": "FCBarcelonaInfoAssistant_1297-dev@ejento.ai",
"is_active": false,
"is_deleted": false,
"created_by": "user@example.com",
"created_on": "2025-01-29T17:23:00.299537Z",
"agent_image": "[object Object]",
"access": "Public",
"status": "Live",
"caching_enabled": false,
"chunk_count": 32,
"react_enabled": true,
"react_max_iteration_count": 50,
"project": 254,
"llm_config": 8,
"cloned_from": null
}
}
Request
Body Params application/json