Skip to main content
CometChat AI helps conversations start faster, stay on track, and wrap up clearly with smart suggestions and summaries.
Out-of-the-box in: UI Kit Builder ✅ | Widget Builder ✅ | UI Kits ✅ | SDK
Smart Chat Features use OpenAI’s API. You’ll be billed by OpenAI based on your usage. Monitor your OpenAI dashboard for cost tracking.

Prerequisites

1

Open your CometChat app

Login to your CometChat dashboard and choose your app.
2

Open AI settings

Navigate to AI ChatbotSettings in the left-hand menu.

Configure AI

1

Set the GPT model

Enter the OpenAI ChatGPT model name you intend to use (e.g., gpt-4, gpt-3.5-turbo).
2

Save the OpenAI key

Generate an API key from your OpenAI account and save it here.
3

Set a custom instruction

Add app-level context to guide how CometChat AI responds. Example: “You are a helpful customer support assistant for an e-commerce platform.”
4

Set the temperature

Choose a value based on the desired balance between consistency and creativity.
5

Enable AI

Toggle AI on to activate these features.

Temperature Guidelines

TemperatureBehaviorBest for
0.0 - 0.3Highly consistent, deterministicCustomer support, factual responses
0.4 - 0.6BalancedGeneral conversation, most use cases
0.7 - 1.0Creative, variedCreative writing, brainstorming
Start with 0.3-0.5 for most business applications. Increase if responses feel too repetitive.

Conversation Starter

Conversation Starter enables you to retrieve an initial message in a new conversation, often used to set the context for the conversation that is about to begin. When to use: Empty chat screens, onboarding new users, or helping users break the ice in new conversations.
SDK Implementation: JavaScript ✅ | React Native ✅ | Android ✅ | iOS ✅ | Flutter

Before you begin

1

Enable Conversation Starter

Go to ChatFeatures, under AI User Copilot, enable Conversation Starter.
2

Use v4 Chat SDKs

Implement chat using CometChat 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. Configuration options:
  • lastNMessages: Fetch a specific number of recent messages.
  • fromTimestamp: Fetch messages from a particular timestamp.
  • toTimestamp: Fetch messages up to a particular timestamp.
A maximum of only 1000 messages will be fetched regardless of configuration.

UI Kits

Conversation Starter functions seamlessly starting from v4 of the Chat UI Kits. It is triggered automatically when there are no messages in a conversation.

Smart Replies

Smart Replies enable the retrieval of an AI-generated response message within a conversation. Helps users respond quickly with contextually appropriate messages. When to use: Busy support agents, users who want quick responses, or reducing typing effort on mobile.
SDK Implementation: JavaScript ✅ | React Native ✅ | Android ✅ | iOS ✅ | Flutter

Before you begin

1

Enable Smart Replies

Go to ChatFeatures, under AI User Copilot, enable Smart Replies.
2

Use v4 Chat SDKs

Implement chat using CometChat v4 Chat SDKs.

How does it work?

CometChat AI goes through the messages of a conversation to understand the context & provide relevant replies. It returns three replies: positive, negative & neutral. Configuration options:
  • lastNMessages: Fetch a specific number of recent messages.
  • fromTimestamp: Fetch messages from a particular timestamp.
  • toTimestamp: Fetch messages up to a particular timestamp.
  • unreadOnly: Fetch only unread messages.
A maximum of only 1000 messages will be fetched regardless of configuration.

UI Kits

Smart Replies function seamlessly starting from v4 of the Chat UI Kits. In v4, Smart Replies are accessible manually, whereas in v5, they work automatically.

Conversation Summary

Conversation Summary enables the summarization of conversations using AI. Get quick overviews of long conversations without reading every message. When to use: Catching up on missed conversations, handoffs between support agents, or reviewing discussion outcomes.
SDK Implementation: JavaScript ✅ | React Native ✅ | Android ✅ | iOS ✅ | Flutter

Before you begin

1

Enable Conversation Summary

Go to ChatFeatures, under AI User Copilot, enable Conversation Summary.
2

Use v4 Chat SDKs

Implement chat using CometChat v4 Chat SDKs.

How does it work?

CometChat AI goes through the messages of a conversation to understand the context & provide a short summary of the conversation. The SDK method returns the conversation summary as a string. Configuration options:
  • lastNMessages: Fetch a specific number of recent messages.
  • fromTimestamp: Fetch messages from a particular timestamp.
  • toTimestamp: Fetch messages up to a particular timestamp.
  • unreadOnly: Fetch only unread messages.
A maximum of only 1000 messages will be fetched regardless of configuration.

UI Kits

Conversation Summary functions seamlessly starting from v4 of the Chat UI Kits. The placement of the AI icon may vary based on the version. Clicking on the icon will display the Conversation Summary.