# Generate Replies in Chat Using AI Agent

The **AI Reply Generation** feature in DoubleTick helps users respond to customer messages quickly by automatically generating reply suggestions directly inside the chat.

Instead of typing a response manually, users can click the **AI Writing Assistance** option in the chat to generate a suggested reply based on the conversation.

The AI analyzes the previous messages in the conversation and produces a response that is relevant to the context of the discussion. This helps teams respond faster while maintaining clear and accurate communication with customers.

***

### How AI Reply Generation Works

When a conversation is open, DoubleTick’s AI can analyze the previous messages exchanged in the chat and generate a suggested reply.

The generated reply is based on:

* The context of the ongoing conversation
* Previous messages in the chat
* The AI agent selected in your AI Studio settings

This allows the AI to generate responses that are relevant to the discussion already taking place.

***

### How to Generate a Reply Using AI

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FsNUXGY0NI6paqXM71OD1%2FUntitled%20design%20-%202026-03-11T133909.234.gif?alt=media&#x26;token=6c0218c8-b904-4fd6-9a89-90dd01dc91ea" alt=""><figcaption></figcaption></figure>

Follow these steps to generate a reply in chat:

1. Open any **conversation** inside DoubleTick.
2. At the bottom of the chat window, locate the **message typing area** where you normally type a reply.
3. On the **right side of the message input box**, you will see a **magic wand icon**.
4. Click the **magic wand icon**.
5. DoubleTick will automatically generate a **suggested reply based on the conversation**.
6. Review the generated message.\
   You can edit the response if required before sending it to the customer.

***

### Default AI Agent Selection

By default, DoubleTick automatically uses a pre-selected AI agent to generate replies.

This means that users can start generating replies immediately without additional configuration.

If your organization has multiple AI agents configured, you can choose a different one from the AI Studio settings.

***

### How to Change the AI Agent Used for Replies

<figure><img src="https://2303112206-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F53n17VnOICC1LtDqlENV%2Fuploads%2FRVypIuDg4n8Nga9lrewj%2FUntitled%20design%20-%202026-03-11T145912.513.gif?alt=media&#x26;token=496965af-e648-468a-ac4c-256712d0add8" alt=""><figcaption></figcaption></figure>

Follow these steps to select a different AI agent:

1. Open the **DoubleTick Dashboard**.
2. Navigate to **AI Studio**.
3. Click **AI Agents**.
4. Open **General Settings**.
5. Select the AI agent you want to use for generating chat replies.
6. Save the changes.

Once updated, the selected AI agent will be used when generating replies in chat.

***

### Best Practices When Using AI Replies

To ensure the best communication with customers:

* Always review the AI-generated response before sending it.
* Edit the message if you want to personalize it further.
* Use AI replies as a starting point to speed up your response time.

***

### Key Points to Remember

* AI replies are generated **directly inside the chat window**.
* The feature is accessed using the **magic wand icon (AI Writing Assistance)** near the message typing area.
* The AI generates replies based on **previous messages in the conversation**.
* Responses can be **edited before sending** to the customer.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.doubletick.io/ai-suite/generate-replies-in-chat-using-ai-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
