Before you begin
- Set up the AI settings through the CometChat dashboard as detailed in the Overview section.
-
Navigate to Chat > Features, under AI User Copilot, enable Conversation Starter.
- Implement the chat functionality in your applications using CometChat’s v4 Chat SDKs.
How does it work?
CometChat AI analyzes the user’s tone and writing style by reviewing recent messages sent by that user within the application. The SDK includes a method for retrieving conversation starters in a chat. This method returns an array containing three potential starters for the conversation. The number of messages to be fetched to generate relevant conversation starter is configurable. By default the CometChat AI takes the latest1000
messages. This can be configured to specific timestamps as well.
Configuration | Value |
---|---|
lastNMessages | This will fetch specific number of messages. |
fromTimestamp | This will fetch messages from a particular timestamp. |
toTimestamp | This will fetch messages until a particular timestamp. |
While using any configuration mentioned above a maximum of only
1000
messages will be fetched.