AI Features base on SmartChat Assistants
Name | Description |
---|---|
AI Assist | Provides answers based on chat history to selected message. |
AI Translate | Provides translation based on chat history to selected incoming message. |
smartChatAssistantId
param follow the steps below:
Parameter name | Type | Description |
---|---|---|
smartChatAssistantId | String | This field should hold your actual Smart Chat Assistant ID that you’ll receive from the QuickBlox account. This ID is used to authenticate your requests to the AI service. |
messageToAssist | String | Message you want to get answer for. |
history | Array of Object | Conversation history. Used to add context. Each object of array should have the two fields: ‘role’ and ‘message’. The field role should contains one of next values: ‘user’ or ‘assistant’. The field message should be a string with chat message. |
callback | function | The callback function. |
Parameter name | Type | Description |
---|---|---|
smartChatAssistantId | String | This field should hold your actual Smart Chat Assistant ID that you’ll receive from the QuickBlox account. This ID is used to authenticate your requests to the AI service. |
textToTranslate | String | Text to translate. |
languageCode | Stringt | Translation language code. |
callback | function | The callback function. |