AISmartReplies
component that are available for customisation.
The AISmartRepliesConfiguration
has the below properties,
Property | Type | Description |
---|---|---|
smartRepliesStyle | AISmartRepliesStyle | Used to provide custom styling to smart replies view. |
backIconUrl | string | Custom back button icon. |
loadingIconUrl | string | Custom loading icon url. |
loadingStateView | () => any | Custom loading state view for the component. |
emptyIconURL | string | Custom empty icon url. |
emptyStateView | () => any | Custom empty state view for the component. |
errorIconURL | string | Custom error icon url. |
errorStateView | () => any | Custom error state view for the component. |
apiConfiguration | (user?: CometChat.User, group?: CometChat.Group) => Promise<Object> | The apiConfiguration callback allows you to override the default logic of fetching smart replies. The apiConfiguration callback passes the user/group object of the conversation. You can use the SDK Method & pass additional configuration to customise the response. |
customView | (response: string[], closeCallBack?: () => void, backCallBack?: () => void) => Promise<any> | The customView callback allows you to display a custom UI for conversation starters. The customView callback passes the list of conversations starters & a close call back which you can call when you want to hide/close your UI. |