Get a chatbot
GET/bv/aisk/v1/chatbots/:id
This API is used to get a chatbot resource.
Request
Path Parameters
Required. The uuid of the chatbot id.
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
chatbot object
Output only. The uuid of the chatbot resource.
Required. The display name of the chatbot.
Possible values: [CHATBOT_STATUS_TRAINING
, CHATBOT_STATUS_READY
, CHATBOT_STATUS_FAILED
]
Output only. The status of the chatbot.
setting objectrequired
Required. The language model setting of the chatbot.
Possible values: [MODEL_LITE
]
Required.
Optional.
Optional.
Required.
response_length objectrequired
Required. The response length setting of the chatbot.
Optional. Indicates to enable the custom limit response length.
Optional. Required if enabled the custom limit.
Optional. Required if enabled the custom limit.
appearance objectrequired
Required. The appearance setting of the chatbot.
Optional. Indicates to enable the customization appearance setting.
setting object
Optional. Required if enabled the customization appearance setting.
profile objectrequired
Required.
image objectrequired
Required.
Required. The uuid of the file image.
Output only. The image URL to be rendered.
Output only. The name of the image.
Required.
message objectrequired
Required.
Required.
Required.
Possible values: [CHATBOT_THEME_DARK
, CHATBOT_THEME_LIGHT
]
Optional.
color objectrequired
Required.
Required.
Required.
reference objectrequired
Required. The reference setting of the chatbot.
Optional. Indicates the user is able to select which knowledge bases should be used in the chat.
Optional. Indicates the user can see the citation of the answer that is from which source.
player object
Optional. The player setting of the playable citation.
Optional. The BYO domain of the player.
domain_control object
Optional. Specify the domains that will be allowed to embed the iframe.
Optional. Enable domain control.
Optional. The list of domains that will be allowed to embed the iframe.
Output only. The number of characters of this chatbot used.
rate_limit objectrequired
Required. The rate limit setting of the chatbot.
Optional. Indicates to enable the rate limit setting.
setting object
Optional. Required if enabled the rate limit setting.
Required. Indicates the number of messages to throttle the chatbot.
It should be set up together with duration
to throttle the chatbot at the number of limit messages in a specified duration.
Required. Indicates the specified duration to throttle the chatbot.
It should be set up together with limit
to throttle the chatbot at the number of limit messages in a specified duration.
Example:
1s
, 1m
Required. Indicates the response of the message when the chatbot is being throttled.
Possible values: [RATE_LIMIT_VARY_BY_IP
, RATE_LIMIT_VARY_BY_DEVICE_ID
]
Optional. Indicates to vary rate limiting chatbot by the selected mode if provided.
quota_limit objectrequired
Required. The quota limit setting of the chatbot.
Optional. Indicates to enable the quota limit setting.
setting object
Optional. Indicates to enable the quota limit setting.
Required. Indicates the number of quota messages to limit the chatbot.
Possible values: [QUOTA_LIMIT_RESET_DAILY
]
Required. Indicates when the quota will be reset.
Output only. The time that the chatbot created.
Output only. The time that the chatbot last updated.
{
"chatbot": {
"id": "string",
"name": "string",
"status": "CHATBOT_STATUS_TRAINING",
"setting": {
"model": "MODEL_LITE",
"character_role": "string",
"character_description": "string",
"creativity": 0,
"response_length": {
"enabled": true,
"input": 0,
"output": 0
}
},
"appearance": {
"enabled": true,
"setting": {
"profile": {
"image": {
"id": "string",
"url": "string",
"name": "string"
},
"display_name": "string"
},
"message": {
"welcome": "string",
"placeholder": "string"
},
"theme": "CHATBOT_THEME_DARK",
"color": {
"user_message": "string",
"widget": "string"
}
}
},
"reference": {
"kb_selection": true,
"display_citation": true,
"player": {
"domain": "string"
}
},
"domain_control": {
"enabled": true,
"domains": [
"string"
]
},
"character_count": "string",
"rate_limit": {
"enabled": true,
"setting": {
"limit": 0,
"duration": "string",
"throttle_message": "string",
"vary_by": "RATE_LIMIT_VARY_BY_IP"
}
},
"quota_limit": {
"enabled": true,
"setting": {
"limit": 0,
"reset": "QUOTA_LIMIT_RESET_DAILY"
}
},
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}