> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AI User Copilot

> AI-powered smart replies, conversation starters, and summaries using the CometChat Android SDK.

> [accordion] AI Integration Quick Reference
>
> ```kotlin theme={null}
> // Smart Replies
> CometChat.getSmartReplies("UID", CometChatConstants.RECEIVER_TYPE_USER,
>     object : CometChat.CallbackListener<HashMap<String, String>>() {
>         override fun onSuccess(replies: HashMap<String, String>) { }
>         override fun onError(e: CometChatException) { }
>     })
>
> // Conversation Starter
> CometChat.getConversationStarter("UID", CometChatConstants.RECEIVER_TYPE_USER,
>     object : CometChat.CallbackListener<List<String>>() {
>         override fun onSuccess(starters: List<String>) { }
>         override fun onError(e: CometChatException) { }
>     })
>
> // Conversation Summary
> CometChat.getConversationSummary("UID", CometChatConstants.RECEIVER_TYPE_USER,
>     object : CometChat.CallbackListener<String>() {
>         override fun onSuccess(summary: String) { }
>         override fun onError(e: CometChatException) { }
>     })
> ```
>
> **Requires:** AI features enabled in [CometChat Dashboard](https://app.cometchat.com)

AI User Copilot provides AI-powered assistance to users during conversations. For a broader introduction and Dashboard configuration, see the [AI User Copilot Overview](https://www.cometchat.com/docs/fundamentals/ai-user-copilot/overview.md).

## Smart Replies

Use `getSmartReplies()` to get AI-suggested replies for the current conversation context.

> [tab] Kotlin
>
> ```kotlin theme={null}
> val receiverId = "UID"
> val receiverType = CometChatConstants.RECEIVER_TYPE_USER
>
> CometChat.getSmartReplies(receiverId, receiverType,
>     object : CometChat.CallbackListener<HashMap<String, String>>() {
>         override fun onSuccess(replies: HashMap<String, String>) {
>             Log.d(TAG, "Smart replies: $replies")
>             // Display reply suggestions to the user
>         }
>
>         override fun onError(e: CometChatException) {
>             Log.e(TAG, "Error: ${e.message}")
>         }
>     })
> ```

> [tab] Java
>
> ```java theme={null}
> String receiverId = "UID";
> String receiverType = CometChatConstants.RECEIVER_TYPE_USER;
>
> CometChat.getSmartReplies(receiverId, receiverType,
>     new CometChat.CallbackListener<HashMap<String, String>>() {
>         @Override
>         public void onSuccess(HashMap<String, String> replies) {
>             Log.d(TAG, "Smart replies: " + replies);
>             // Display reply suggestions to the user
>         }
>
>         @Override
>         public void onError(CometChatException e) {
>             Log.e(TAG, "Error: " + e.getMessage());
>         }
>     });
> ```

| Parameter | Description |
| - | - |
| `receiverId` | UID of the user or GUID of the group |
| `receiverType` | `CometChatConstants.RECEIVER_TYPE_USER` or `RECEIVER_TYPE_GROUP` |

Returns a `HashMap<String, String>` of suggested reply options.

## Conversation Starter

Use `getConversationStarter()` to get AI-suggested opening messages for a new conversation.

> [tab] Kotlin
>
> ```kotlin theme={null}
> val receiverId = "UID"
> val receiverType = CometChatConstants.RECEIVER_TYPE_USER
>
> CometChat.getConversationStarter(receiverId, receiverType,
>     object : CometChat.CallbackListener<List<String>>() {
>         override fun onSuccess(starters: List<String>) {
>             Log.d(TAG, "Conversation starters: $starters")
>             // Display starter suggestions to the user
>         }
>
>         override fun onError(e: CometChatException) {
>             Log.e(TAG, "Error: ${e.message}")
>         }
>     })
> ```

> [tab] Java
>
> ```java theme={null}
> String receiverId = "UID";
> String receiverType = CometChatConstants.RECEIVER_TYPE_USER;
>
> CometChat.getConversationStarter(receiverId, receiverType,
>     new CometChat.CallbackListener<List<String>>() {
>         @Override
>         public void onSuccess(List<String> starters) {
>             Log.d(TAG, "Conversation starters: " + starters);
>             // Display starter suggestions to the user
>         }
>
>         @Override
>         public void onError(CometChatException e) {
>             Log.e(TAG, "Error: " + e.getMessage());
>         }
>     });
> ```

| Parameter | Description |
| - | - |
| `receiverId` | UID of the user or GUID of the group |
| `receiverType` | `CometChatConstants.RECEIVER_TYPE_USER` or `RECEIVER_TYPE_GROUP` |

Returns a `List<String>` of suggested conversation openers.

## Conversation Summary

Use `getConversationSummary()` to get an AI-generated summary of the conversation history.

> [tab] Kotlin
>
> ```kotlin theme={null}
> val receiverId = "UID"
> val receiverType = CometChatConstants.RECEIVER_TYPE_USER
>
> CometChat.getConversationSummary(receiverId, receiverType,
>     object : CometChat.CallbackListener<String>() {
>         override fun onSuccess(summary: String) {
>             Log.d(TAG, "Summary: $summary")
>             // Display summary to the user
>         }
>
>         override fun onError(e: CometChatException) {
>             Log.e(TAG, "Error: ${e.message}")
>         }
>     })
> ```

> [tab] Java
>
> ```java theme={null}
> String receiverId = "UID";
> String receiverType = CometChatConstants.RECEIVER_TYPE_USER;
>
> CometChat.getConversationSummary(receiverId, receiverType,
>     new CometChat.CallbackListener<String>() {
>         @Override
>         public void onSuccess(String summary) {
>             Log.d(TAG, "Summary: " + summary);
>             // Display summary to the user
>         }
>
>         @Override
>         public void onError(CometChatException e) {
>             Log.e(TAG, "Error: " + e.getMessage());
>         }
>     });
> ```

| Parameter | Description |
| - | - |
| `receiverId` | UID of the user or GUID of the group |
| `receiverType` | `CometChatConstants.RECEIVER_TYPE_USER` or `RECEIVER_TYPE_GROUP` |

Returns a `String` containing the AI-generated conversation summary.

***

## Next Steps

> [card] [AI Agents](https://www.cometchat.com/docs/sdk/android/v4/ai-agents.md)
>
> Integrate AI-powered agents for automated interactions

> [card] [AI Moderation](https://www.cometchat.com/docs/sdk/android/v4/ai-moderation.md)
>
> Automatically review messages for inappropriate content

> [card] [AI User Copilot Overview](https://www.cometchat.com/docs/fundamentals/ai-user-copilot/overview.md)
>
> Configure AI Copilot features in the Dashboard

> [card] [Send Messages](https://www.cometchat.com/docs/sdk/android/v4/send-message.md)
>
> Send messages in conversations


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.