Agent
The Agent API handles methods to create and manage each agent and its relations of a Virtual Agent.
Supervisor
Pagination and Listings
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Current page, starting at 1
1
Example: 1
Size of the page
5
Example: 5
Field to sort by
updatedAt
Example: updatedAt
Sort direction (ASC or DESC)
DESC
Example: DESC
Optional search term to filter supervisors
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/supervisors HTTP/1.1
Host:
Accept: */*
{
"totalElements": 1,
"totalPages": 1,
"pageable": {
"unpaged": true,
"pageNumber": 1,
"paged": true,
"pageSize": 1,
"offset": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
}
},
"numberOfElements": 1,
"size": 1,
"content": [
{}
],
"number": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"first": true,
"last": true,
"empty": true
}
CRUD Operations
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The supervisor UUID to retrieve
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/supervisors/{supervisorUUID} HTTP/1.1
Host:
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"role": "Customer Support Agent",
"flowUUID": "123e4567-e89b-12d3-a456-426614174001",
"goal": "Assist customers with their inquiries",
"instructions": "text",
"guardrails": "text",
"persona": {
"uuid": "text",
"name": "text",
"image": "text",
"backstory": "text",
"personality": "text",
"communicationStyle": "POLITE_AND_PERSUASIVE"
},
"inheritFromSupervisor": true,
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"functions": [
{
"uuid": "text",
"name": "text"
}
],
"knowledge": [
{
"uuid": "text",
"name": "text",
"description": "text",
"documentCount": 1,
"searchType": {
"type": "text",
"semanticWeight": 1,
"fullTextWeight": 1
},
"previousUserInput": 1,
"threshold": 1,
"topK": 1
}
],
"heirs": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The supervisor UUID to update
Data Transfer Object representing the configuration and attributes for a supervisor
Instructions for the supervisor
Oversee all customer service interactions
Guardrails and limitations for the supervisor
Ensure professional communication
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/supervisors/{supervisorUUID} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 339
{
"instructions": "Oversee all customer service interactions",
"guardrails": "Ensure professional communication",
"persona": {
"uuid": "text"
},
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
}
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"role": "Customer Support Agent",
"flowUUID": "123e4567-e89b-12d3-a456-426614174001",
"goal": "Assist customers with their inquiries",
"instructions": "text",
"guardrails": "text",
"persona": {
"uuid": "text",
"name": "text",
"image": "text",
"backstory": "text",
"personality": "text",
"communicationStyle": "POLITE_AND_PERSUASIVE"
},
"inheritFromSupervisor": true,
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"functions": [
{
"uuid": "text",
"name": "text"
}
],
"knowledge": [
{
"uuid": "text",
"name": "text",
"description": "text",
"documentCount": 1,
"searchType": {
"type": "text",
"semanticWeight": 1,
"fullTextWeight": 1
},
"previousUserInput": 1,
"threshold": 1,
"topK": 1
}
],
"heirs": [
{
"role": "text"
}
]
}
Auxiliary Methods
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/supervisors/default HTTP/1.1
Host:
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"role": "Customer Support Agent",
"flowUUID": "123e4567-e89b-12d3-a456-426614174001",
"goal": "Assist customers with their inquiries",
"instructions": "text",
"guardrails": "text",
"persona": {
"uuid": "text",
"name": "text",
"image": "text",
"backstory": "text",
"personality": "text",
"communicationStyle": "POLITE_AND_PERSUASIVE"
},
"inheritFromSupervisor": true,
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"functions": [
{
"uuid": "text",
"name": "text"
}
],
"knowledge": [
{
"uuid": "text",
"name": "text",
"description": "text",
"documentCount": 1,
"searchType": {
"type": "text",
"semanticWeight": 1,
"fullTextWeight": 1
},
"previousUserInput": 1,
"threshold": 1,
"topK": 1
}
],
"heirs": [
{
"role": "text"
}
]
}
Agent
Pagination and Listings
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Current page, starting at 1
1
Example: 1
Size of the page
5
Example: 5
The field to order results by
updatedAt
Example: updatedAt
The sort direction (ASC or DESC)
DESC
Example: DESC
Optional search term to filter results
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents HTTP/1.1
Host:
Accept: */*
{
"totalElements": 1,
"totalPages": 1,
"pageable": {
"unpaged": true,
"pageNumber": 1,
"paged": true,
"pageSize": 1,
"offset": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
}
},
"numberOfElements": 1,
"size": 1,
"content": [
{}
],
"number": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"first": true,
"last": true,
"empty": true
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The name of the agent for quick search
The maximum number of results to return
6
Example: 6
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents/quicksearch?name=text HTTP/1.1
Host:
Accept: */*
text
CRUD Operations
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object representing the parameters required to create an agent
The role of the agent
Customer Support Agent
The goal of the agent
Assist customers with their inquiries
Detailed instructions for the agent
Always be polite and helpful
Guardrails and limitations for the agent
Do not provide personal information
Whether the agent should inherit configurations from supervisor
Created
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 482
{
"role": "Customer Support Agent",
"goal": "Assist customers with their inquiries",
"instructions": "Always be polite and helpful",
"guardrails": "Do not provide personal information",
"persona": {
"uuid": "text"
},
"constraints": [
{
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"inheritFromSupervisor": true,
"functions": [
{
"uuid": "text"
}
],
"knowledge": [
{
"uuid": "text"
}
]
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"role": "Customer Support Agent",
"flowUUID": "123e4567-e89b-12d3-a456-426614174001",
"goal": "Assist customers with their inquiries",
"instructions": "text",
"guardrails": "text",
"persona": {
"uuid": "text",
"name": "text",
"image": "text",
"backstory": "text",
"personality": "text",
"communicationStyle": "POLITE_AND_PERSUASIVE"
},
"inheritFromSupervisor": true,
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"functions": [
{
"uuid": "text",
"name": "text"
}
],
"knowledge": [
{
"uuid": "text",
"name": "text",
"description": "text",
"documentCount": 1,
"searchType": {
"type": "text",
"semanticWeight": 1,
"fullTextWeight": 1
},
"previousUserInput": 1,
"threshold": 1,
"topK": 1
}
],
"heirs": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The specific agent UUID to retrieve
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents/{agentUUID} HTTP/1.1
Host:
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"role": "Customer Support Agent",
"flowUUID": "123e4567-e89b-12d3-a456-426614174001",
"goal": "Assist customers with their inquiries",
"instructions": "text",
"guardrails": "text",
"persona": {
"uuid": "text",
"name": "text",
"image": "text",
"backstory": "text",
"personality": "text",
"communicationStyle": "POLITE_AND_PERSUASIVE"
},
"inheritFromSupervisor": true,
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"functions": [
{
"uuid": "text",
"name": "text"
}
],
"knowledge": [
{
"uuid": "text",
"name": "text",
"description": "text",
"documentCount": 1,
"searchType": {
"type": "text",
"semanticWeight": 1,
"fullTextWeight": 1
},
"previousUserInput": 1,
"threshold": 1,
"topK": 1
}
],
"heirs": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The specific agent UUID to update
Data Transfer Object representing the necessary fields for updating an agent
The role of the agent
Customer Support Agent
The goal of the agent
Assist customers with their inquiries
Detailed instructions for the agent
Always be polite and helpful
Guardrails and limitations for the agent
Do not provide personal information
Whether the agent should inherit configurations from supervisor
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents/{agentUUID} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 496
{
"role": "Customer Support Agent",
"goal": "Assist customers with their inquiries",
"instructions": "Always be polite and helpful",
"guardrails": "Do not provide personal information",
"persona": {
"uuid": "text"
},
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"inheritFromSupervisor": true,
"functions": [
{
"uuid": "text"
}
],
"knowledge": [
{
"uuid": "text"
}
]
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"role": "Customer Support Agent",
"flowUUID": "123e4567-e89b-12d3-a456-426614174001",
"goal": "Assist customers with their inquiries",
"instructions": "text",
"guardrails": "text",
"persona": {
"uuid": "text",
"name": "text",
"image": "text",
"backstory": "text",
"personality": "text",
"communicationStyle": "POLITE_AND_PERSUASIVE"
},
"inheritFromSupervisor": true,
"constraints": [
{
"uuid": "text",
"value": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameters": {
"maximumTokens": 1,
"requestTimeout": 1,
"temperature": 1,
"topP": 1,
"presencePenalty": 1,
"frequencyPenalty": 1
},
"functions": [
{
"uuid": "text",
"name": "text"
}
],
"knowledge": [
{
"uuid": "text",
"name": "text",
"description": "text",
"documentCount": 1,
"searchType": {
"type": "text",
"semanticWeight": 1,
"fullTextWeight": 1
},
"previousUserInput": 1,
"threshold": 1,
"topK": 1
}
],
"heirs": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The specific agent UUID to delete
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents/{agentUUID} HTTP/1.1
Host:
Accept: */*
{
"name": "My Agent"
}
Auxiliary Methods
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object used to validate and check the existence or usage of a specific value
The value to be checked
agent-identifier
Optional unique identifier of an associated entity
123e4567-e89b-12d3-a456-426614174000
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/agents/check-identifier HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"value": "agent-identifier",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
{
"used": true
}
Persona
Pagination and Listings
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Current page, starting at 1
1
Example: 1
Size of the page
5
Example: 5
The field to order results by
updatedAt
Example: updatedAt
The sort direction (ASC or DESC)
DESC
Example: DESC
Optional search term to filter results
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas HTTP/1.1
Host:
Accept: */*
{
"totalElements": 1,
"totalPages": 1,
"pageable": {
"unpaged": true,
"pageNumber": 1,
"paged": true,
"pageSize": 1,
"offset": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
}
},
"numberOfElements": 1,
"size": 1,
"content": [
{}
],
"number": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"first": true,
"last": true,
"empty": true
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The name to search for
The maximum number of results to return
6
Example: 6
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/quicksearch?name=text HTTP/1.1
Host:
Accept: */*
text
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/dropdown HTTP/1.1
Host:
Accept: */*
text
CRUD Operations
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object representing the fields for creating or updating a persona
Name of the persona
AI Assistant
Image URL or base64 encoded image for the persona
https://example.com/avatar.jpg
Backstory of the persona
An experienced customer service representative
Personality traits of the persona
Friendly, helpful, and professional
Different styles of communication.
Created
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 222
{
"name": "AI Assistant",
"image": "https://example.com/avatar.jpg",
"backstory": "An experienced customer service representative",
"personality": "Friendly, helpful, and professional",
"communicationStyle": "POLITE_AND_PERSUASIVE"
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Assistant",
"image": "https://example.com/avatar.jpg",
"backstory": "An experienced customer service representative",
"personality": "Friendly, helpful, and professional",
"communicationStyle": "POLITE_AND_PERSUASIVE",
"agents": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The specific persona UUID to retrieve
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/{personaUUID} HTTP/1.1
Host:
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Assistant",
"image": "https://example.com/avatar.jpg",
"backstory": "An experienced customer service representative",
"personality": "Friendly, helpful, and professional",
"communicationStyle": "POLITE_AND_PERSUASIVE",
"agents": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The specific persona UUID to update
Data Transfer Object representing the fields for creating or updating a persona
Name of the persona
AI Assistant
Image URL or base64 encoded image for the persona
https://example.com/avatar.jpg
Backstory of the persona
An experienced customer service representative
Personality traits of the persona
Friendly, helpful, and professional
Different styles of communication.
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/{personaUUID} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 222
{
"name": "AI Assistant",
"image": "https://example.com/avatar.jpg",
"backstory": "An experienced customer service representative",
"personality": "Friendly, helpful, and professional",
"communicationStyle": "POLITE_AND_PERSUASIVE"
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "AI Assistant",
"image": "https://example.com/avatar.jpg",
"backstory": "An experienced customer service representative",
"personality": "Friendly, helpful, and professional",
"communicationStyle": "POLITE_AND_PERSUASIVE",
"agents": [
{
"role": "text"
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
The specific persona UUID to delete
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/{personaUUID} HTTP/1.1
Host:
Accept: */*
{
"name": "My Agent"
}
Auxiliary Methods
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object used to validate and check the existence or usage of a specific value
The value to be checked
agent-identifier
Optional unique identifier of an associated entity
123e4567-e89b-12d3-a456-426614174000
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/check-identifier HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"value": "agent-identifier",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
{
"used": true
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/personas/summary HTTP/1.1
Host:
Accept: */*
{
"used": 5,
"limit": 10
}
Function
Pagination and Listings
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Current page, starting at 1
1
Example: 1
Size of the page
5
Example: 5
Field to sort by
updatedAt
Example: updatedAt
Sort direction (ASC or DESC)
DESC
Example: DESC
Search term for filtering
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions HTTP/1.1
Host:
Accept: */*
{
"totalElements": 1,
"totalPages": 1,
"pageable": {
"unpaged": true,
"pageNumber": 1,
"paged": true,
"pageSize": 1,
"offset": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
}
},
"numberOfElements": 1,
"size": 1,
"content": [
{}
],
"number": 1,
"sort": {
"unsorted": true,
"sorted": true,
"empty": true
},
"first": true,
"last": true,
"empty": true
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Name to filter
Maximum number of results to return
6
Example: 6
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions/quicksearch?name=text HTTP/1.1
Host:
Accept: */*
text
CRUD Operations
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object representing the creation of an Agent Function
Name of the function
GetWeatherFunction
Description of the function
Function to get current weather information
JSON string representing function parameters
{"type":"object","properties":{}}
Created
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 299
{
"name": "GetWeatherFunction",
"description": "Function to get current weather information",
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameterJson": "{\"type\":\"object\",\"properties\":{}}",
"parameters": [
{
"name": "text",
"type": "STRING",
"description": "text",
"variable": "text",
"rules": [
{
"value": "text"
}
]
}
]
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "GetWeatherFunction",
"description": "Function to get current weather information",
"agents": [
{
"role": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameterJson": "{\"type\":\"object\",\"properties\":{}}",
"parameters": [
{
"uuid": "text",
"name": "text",
"type": "STRING",
"description": "text",
"variable": "text",
"rules": [
{
"uuid": "text",
"value": "text"
}
]
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Function UUID
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
GET /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions/{functionUUID} HTTP/1.1
Host:
Accept: */*
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "GetWeatherFunction",
"description": "Function to get current weather information",
"agents": [
{
"role": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameterJson": "{\"type\":\"object\",\"properties\":{}}",
"parameters": [
{
"uuid": "text",
"name": "text",
"type": "STRING",
"description": "text",
"variable": "text",
"rules": [
{
"uuid": "text",
"value": "text"
}
]
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Function UUID to update
Data Transfer Object for updating an existing agent function
Name of the function
GetWeatherFunction
Description of the function
Function to get current weather information
JSON string representing function parameters
{"type":"object","properties":{}}
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
PUT /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions/{functionUUID} HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 327
{
"name": "GetWeatherFunction",
"description": "Function to get current weather information",
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameterJson": "{\"type\":\"object\",\"properties\":{}}",
"parameters": [
{
"uuid": "text",
"name": "text",
"type": "STRING",
"description": "text",
"variable": "text",
"rules": [
{
"uuid": "text",
"value": "text"
}
]
}
]
}
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "GetWeatherFunction",
"description": "Function to get current weather information",
"agents": [
{
"role": "text"
}
],
"tags": [
{
"uuid": "text",
"name": "text"
}
],
"parameterJson": "{\"type\":\"object\",\"properties\":{}}",
"parameters": [
{
"uuid": "text",
"name": "text",
"type": "STRING",
"description": "text",
"variable": "text",
"rules": [
{
"uuid": "text",
"value": "text"
}
]
}
]
}
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Function UUID to delete
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
DELETE /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions/{functionUUID} HTTP/1.1
Host:
Accept: */*
{
"name": "My Agent"
}
Auxiliary Methods
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object used to validate and check the existence or usage of a specific value
The value to be checked
agent-identifier
Optional unique identifier of an associated entity
123e4567-e89b-12d3-a456-426614174000
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/functions/check-identifier HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"value": "agent-identifier",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
{
"used": true
}
Variable
Auxiliary Methods
A valid uuid of organization
A valid uuid of environment
A valid uuid of bot
Data Transfer Object used to validate and check the existence or usage of a specific value
The value to be checked
agent-identifier
Optional unique identifier of an associated entity
123e4567-e89b-12d3-a456-426614174000
Ok
Bad Request
Unauthorized
Forbidden
Not Found
Request Timeout
Conflict
Unprocessable Entity
Internal Server Error
POST /org/{orgUUID}/env/{envUUID}/bot/{botUUID}/variables HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"value": "agent-identifier",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
{
"used": true
}
Last updated
Was this helpful?