POST /assistants Create a new assistant
createAssistant
Chat
This endpoint allows for the creation of a versatile assistant capable of interacting with different platforms such as OpenAI and Google. It enables the configuration of staircase service calls (functions). Users can define attributes like the assistant's name, functionality, and the tools it will use, ensuring the assistant is tailored to specific operational needs.
Request
{
"name": "General Helper",
"description": "An assistant designed to offer general help across various tasks, including scheduling, reminders, and basic inquiries.",
"platforms": [
{
"platform_name": "OpenAI",
"model": "gpt-4-1106-preview"
}
],
"tools": [
{
"tool_type": "retrival"
},
{
"tool_type": "code_interpretor"
},
{
"tool_type": "function",
"function": {
"http_method": "GET",
"path": "/data/retrieve",
"name": "retrieveData",
"description": "Function to retrieve data from the database.",
"parameters": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The identifier of the data to retrieve."
},
"fields": {
"type": "array",
"description": "The fields to retrieve.",
"items": {
"type": "string"
}
},
"limit": {
"type": "integer",
"description": "The maximum number of records to retrieve."
},
"offset": {
"type": "integer",
"description": "The number of records to skip."
},
"order_by": {
"type": "string",
"description": "The field to order by."
},
"order_direction": {
"type": "string",
"description": "The direction to order by."
},
"filter": {
"type": "object",
"description": "The filter to apply."
},
"search": {
"type": "string",
"description": "The search to apply."
}
}
}
}
}
]
} {
"name": "EduBot",
"description": "An educational assistant designed to help students with learning, offering explanations, and quizzing capabilities.",
"platforms": [
{
"platform_name": "OpenAI",
"model": "gpt-4-1106-preview"
}
],
"tools": [
{
"tool_type": "function",
"function": {
"http_method": "POST",
"path": "/education/evaluate",
"name": "evaluateAnswer",
"description": "Function to evaluate student responses in quizzes.",
"parameters": {
"type": "object",
"properties": {
"question": {
"type": "string",
"description": "The question to evaluate."
},
"answer": {
"type": "string",
"description": "The answer to evaluate."
},
"options": {
"type": "array",
"description": "The options to evaluate.",
"items": {
"type": "string"
}
},
"correct_answer": {
"type": "string",
"description": "The correct answer."
},
"correct_options": {
"type": "array",
"description": "The correct options.",
"items": {
"type": "string"
}
},
"incorrect_answer": {
"type": "string",
"description": "The incorrect answer."
},
"incorrect_options": {
"type": "array",
"description": "The incorrect options.",
"items": {
"type": "string"
}
},
"explanation": {
"type": "string",
"description": "The explanation."
},
"metadata": {
"type": "object",
"description": "The metadata."
}
}
}
}
}
]
} Request bodyapplication/json
10 fields
application/json| Field | Type | Description |
|---|---|---|
assistant_id | string | Unique identifier for the assistant |
created_at | integer (int64) | Timestamp of creation |
name | string | Name of the assistant |
description | string | Description of the assistant's purpose |
instructions | string | Instructions for using the assistant |
platforms | array | List of platforms the assistant is available on |
tools | array | Tools utilized by the assistant |
file_ids | string[] | List of OpenAI file identifiers associated with the assistant |
blob_file_ids | string[] | List of `Persistence Blob` identifiers associated with the assistant |
metadata | object | Metadata related to the assistant |
Response 201application/json
10 fields
201application/jsonAssistant created
| Field | Type | Description |
|---|---|---|
assistant_id | string | Unique identifier for the assistant |
created_at | integer (int64) | Timestamp of creation |
name | string | Name of the assistant |
description | string | Description of the assistant's purpose |
instructions | string | Instructions for using the assistant |
platforms | array | List of platforms the assistant is available on |
tools | array | Tools utilized by the assistant |
file_ids | string[] | List of OpenAI file identifiers associated with the assistant |
blob_file_ids | string[] | List of `Persistence Blob` identifiers associated with the assistant |
metadata | object | Metadata related to the assistant |
Other responses
400403