AI Agent APIs enhance user interaction by providing intelligent automation and decision-making support. These APIs allow you to integrate AI-driven features into workflows such as automated approval, task assignments, and user interactions through chat-based interfaces.
Overview
Below are APIs for retrieving, creating, updating, deleting, and managing AI Agents, as well as handling workflows associated with them.
1. Get AI Agent
Retrieve a list of all AI Agents in the system.
Endpoint for Product:GET https://app-gateway.imbrace.co/v2/backend/templates
Endpoint for Demo:GET https://app-gateway.demo.imbrace.co/v2/backend/templates
Endpoint for Dev:GET https://app-gateway.dev.imbrace.co/v2/backend/templates
Headers:
Content-Type: application/json
x-access-token: Your Access TokenYour Access Token
{
"message": "UseCase with title Test Agent already exists in organization name "
}
curl --location 'https://app-gateway.imbrace.co/v2/backend/templates/custom' \
--header 'x-access-token: acc_3064efc7-4ccc-4b48-8ffa-50313e5b19df' \
--header 'Content-Type: application/json' \
--data '{
"assistant": {
"agent_type": "agent",
"banned_words": "",
"category": [],
"channel": "",
"core_task": "",
"credential_name": "Standard AI Assistant | Test Agent",
"description": "This name is for internal management only. It won'\''t be shown in the conversation as the agent'\''s name.",
"file_ids": [],
"instructions": "",
"knowledge_hubs": [],
"metadata": {
"channel_id": "",
"other_requirements": [],
"team_ids": []
},
"mode": "standard",
"model_id": "Default",
"name": "Test Agent",
"personality_role": "",
"response_length": "",
"show_thinking_process": false,
"streaming": false,
"sub_agents": [],
"team_leads": [],
"temperature": 0.1,
"tone_and_style": "",
"use_memory": true,
"workflow_function_call": [],
"workflow_name": "Standard AI Assistant | Test Agent"
},
"usecase": {
"demo_url": "https://chat-widget.imbrace.co",
"short_description": "This demo",
"supported_channels": [
{
"icon": "",
"title": "channel_"
}
],
"title": "Test Agent"
}
}'
{
"usecase": {
"title": "Agent updated",
"short_description": "Testing updated"
},
"assistant": {
"name": "Agent updated",
"description": "Testing updated",
"channel": "whatsapp",
"category": [
"Category 1"
],
"personality_role": "You are a friendly and professional assistant who acts as a Customer Support Representative for an e-commerce platform.",
"core_task": "Your tasks include answering customer inquiries and providing order status updates.",
"tone_and_style": "Always maintain a professional tone, ensure clarity in your explanations.",
"response_length": "within 150 words",
"banned_words": "bullshit, dammit",
"file_ids": [],
"workflow_name": "worflow test 12",
"credential_id": 0,
"credential_name": "placeholder",
"mode": "standard"
}
}