AI Agent is not available in Public Dialogs.
Create a private dialog with AI Agent
The easiest way to interact with the AI Agent is to create a private (1-to-1) dialog — the AI Agent will answer any message you send.iOS
To create a private (1-to-1) dialog, you need to set the dialog type field toprivate and provide the ID of the opponent you want to create a chat with.
- Swift
- Objective-C
Android
To create a private (1-to-1) dialog, you need to set the dialog type toQBDialogType.PRIVATE and provide the ID of the opponent you want to create a chat with.
- Java
- Kotlin
JavaScript
To create a private (1-to-1) dialog, you need to set the dialog type to3 and provide the ID of the opponent you want to create a chat with.
- JavaScript
ReactNative
To create a private (1-to-1) dialog, you need to set the type toQB.chat.DIALOG_TYPE.CHAT and provide the ID of the opponent you want to create a chat with.
- JavaScript
Flutter
To create a private (1-to-1) dialog, you need to set the type toQBChatDialogTypes.CHAT and provide the ID of the opponent you want to create a chat with.
- Dart
Create a group dialog with AI Agent
Your users can also interact with the AI Agent in group dialogs.iOS
To create a group dialog for a predefined number of occupants, you need to set the dialog type field togroup and provide the IDs of the opponents you want to create a chat with.
- Swift
- Objective-C
Android
To create a group dialog for a predefined number of occupants, you need to set the dialog type toQBDialogType.GROUP and provide the IDs of the opponents you want to create a chat with.
- Java
- Kotlin
JavaScript
To create a group dialog for a predefined number of occupants, you need to set the dialog type to2 and provide the IDs of the opponents you want to create a chat with.
- JavaScript
ReactNative
To create a group dialog for a predefined number of occupants, you need to set the dialog type toQB.chat.DIALOG_TYPE.GROUP_CHAT and provide the IDs of the opponents you want to create a chat with.
- JavaScript
Flutter
To create a group dialog for a predefined number of occupants, you need to set the dialog type toQBChatDialogTypes.GROUP_CHAT and provide the IDs of the opponents you want to create a chat with.
- Dart
Send message to AI Agent in a group dialog with command
To be able to interact with an AI Agent in a group dialog the following conditions must be met:- Enable AI Agent for group dialogs on the dashboard.
- Define the command for the AI Agent on the dashboard.
- The AI Agent must be added to the group dialog and be present in the
occupant_ids. - Your message must begin with a command.
/SuperHelpfulAssistant Help me with something
Send message to AI Agent in a group dialog with mentions
To be able to interact with an AI Agent in a group dialog via mentions, the following conditions must be met:- Enable AI Agent for group dialogs on the dashboard.
- The AI Agent must be added to the group dialog and be present in the
occupant_ids. - The message must contain the AI Agent’s user ID in the
mentioned_user_idscustom field.
If you want to mention several users, you must enumerate them joined by a comma (,).Example:“34,45,55”
iOS
- Swift
- Objective-C
Android
- Java
- Kotlin
JavaScript
- JavaScript
ReactNative
- JavaScript
Flutter
- Dart