AIAssistBot component that are available for customisation.
The AIAssistBotConfiguration has the below properties,
Properties
| Property | Type | Description |
|---|---|---|
| title | (bot: CometChat.User) => string | Used to set a custom title. |
| botFirstMessageText | (bot: CometChat.User) => string | Used to set the first bot message. |
| assistBotStyle | AIAssistBotStyle | Used to provide custom styling to conversation summary view. |
| botMessageBubbleStyle | AIBotMessageBubbleStyle | Used to customise the bot message bubble style. |
| senderMessageBubbleStyle | AISenderMessageBubbleStyle | Used to customise the sender message bubble style |
| messageInputStyle | MessageInputStyle | Used to customise the message input style. |
| avatarStyle | AvatarStyle | Used to customise the avatar style. |
| closeIconUrl | string | Custom close button icon url. |
| sendIconURL | string | Custom send button icon url. |
| backIconURL | string | Custom back button icon url. |
| loadingIconUrl | string | Custom loading icon url. |
| errorIconURL | string | Custom error icon url. |
| apiConfiguration | (user?: CometChat.User, group?: CometChat.Group) => Promise<Object> | The apiConfiguration callback allows you to override the default logic of fetching conversation starters. The apiConfiguration callback passes the user/group object of the conversation. You can use the SDK Method & pass additional configuration to customise the response. |
Usage
Custom icon URLs
- React
- Vue
Custom style
- React
- Vue
API Configuration Callback
- React
- Vue