Generate AI chatbot replies
With the AI chatbot replies API, you can generate AI chatbot responses to user messages.
AI agents are here; Go beyond AI chatbots and reimagine AI customer service with an AI agent platform that allows you to create AI agents that not only chat but think and act to resolve complex customer requests.
HTTP request
Headers
- Content-Type: every request must include a
Content-Type
header. - Api-Token: Your API requests must be authenticated by Sendbird server using any of the API tokens from your Sendbird application. To do this, you can use the master API token in your dashboard under Settings > Application > General > API tokens, which is generated when an application is created.
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
messages | string | Specifies the series of messages sent to the chatbot. You must specify the content and role of each message. Role can be one of the following: |
Optional | Type | Description |
---|---|---|
use_streaming_response | boolean | If |
Response
The following is a sample response for a successful request.
In the case of an error, an error object is returned. A detailed list of error codes is available here.