> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-platform-docs-release.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Smart Replies

> AI Smart Replies — CometChat documentation.

`AI Smart Replies` is a class which fetches a list of replies generated using AI for replying to a message in a conversation.

### Integration

`AI Smart Replies` will be enabled by default if it is enabled in the Dashboard. The UI & functionality of `AI Smart Replies` can be customized via Configuration.

<Tabs>
  <Tab title="JavaScript">
    ```js theme={null}
    const smartRepliesConfiguration = new AISmartRepliesConfiguration({});
    ```
  </Tab>
</Tabs>

This configuration needs to be passed to AI Smart Replies Class when it is passed to `setAiFeatures()` method of `UIKitSettingsBuilder`.

<Tabs>
  <Tab title="JavaScript">
    ```js theme={null}
    const aiFeatures = [new AISmartRepliesExtension(smartRepliesConfiguration)];

    // Pass this list of features to setAiFeatures method.
    new UIKitSettingsBuilder().setAiFeatures(aiFeatures);
    ```
  </Tab>
</Tabs>

| Properties    | Type                                                                      | Description                                                                |
| ------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| configuration | [AISmartRepliesConfiguration](/web-shared/ai-smart-replies-configuration) | This is a configuration to customise behaviour & UI of `AI Smart Replies`. |
