> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/build/conversation-settings/conversation-analysis.md).

# Conversation Analytics

Turn on conversation analysis so the AI automatically generates a conversation summary and applies classification tags when a conversation is handed off to a human; configure the analysis model, analy

Conversation analysis lets the AI "read ahead" for your support agents. When a conversation is handed off to a human, it automatically generates a <mark style="color:blue;">conversation summary</mark> from the most recent messages and picks classification tags from this platform's [conversation tags](https://docs.maiagent.ai/maiagent-user-guide/en/build/conversation-settings/conversation-tags.md) to apply. Agents taking over don't have to scroll through the whole conversation, and managers can use the tags to count issue types. Combined with [tag routing](https://docs.maiagent.ai/maiagent-user-guide/en/build/conversation-settings/human-handoff.md#tag-routing), you can also assign conversations directly to the matching group based on the applied tags.

Once enabled, agents can also click "<mark style="color:blue;">Analyze conversation</mark>" in the details panel of any conversation to re-run the analysis manually. See [Conversation details](https://docs.maiagent.ai/maiagent-user-guide/en/serve/daily-operations/reply.md#conversation-details).

## Open the conversation analysis settings <a href="#open" id="open"></a>

Go to <mark style="color:blue;">Customer Service Conversations</mark> → <mark style="color:blue;">Conversation Platforms</mark>, and click <mark style="color:blue;">Edit</mark> on the platform you want to configure:

* **Web, internal, and API platforms**: In the left navigation, open the "Advanced features" group → <mark style="color:blue;">Conversation Analysis</mark>.
* **Messaging platforms such as LINE and WhatsApp**: Open the <mark style="color:blue;">Conversation Analysis</mark> tab in the top tab bar. Slack platforms don't have this tab; see the [platform support matrix](https://docs.maiagent.ai/maiagent-user-guide/en/build/conversation-settings/platform-settings.md#platform-matrix).

## Settings fields <a href="#fields" id="fields"></a>

| Field                                                         | Description                                                                                                                                                                                                               |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">Enable conversation analysis</mark> | When on, the AI automatically analyzes the conversation and applies classification tags at human handoff                                                                                                                  |
| <mark style="color:blue;">Analysis model</mark>               | The LLM that runs the analysis. Analysis is an additional model call and consumes Credits; for high-volume platforms, choose a faster, cheaper model                                                                      |
| <mark style="color:blue;">Analysis prompt</mark>              | Optional. Tells the AI how to analyze and classify conversations, for example which business categories to identify and what information the summary should include. If left blank, the platform's default prompt is used |
| <mark style="color:blue;">Number of reference messages</mark> | Provides the most recent N messages to the AI for analysis. A larger number gives a more complete summary but uses more tokens; 20–50 messages is enough for most customer service scenarios                              |

After filling in the fields, click <mark style="color:blue;">Save</mark> at the bottom right.

{% hint style="info" %}
The AI only chooses from conversation tags that have **already been created** for this platform; it never creates new tags on its own. Create your categories first in [Conversation tag management](https://docs.maiagent.ai/maiagent-user-guide/en/build/conversation-settings/conversation-tags.md). The better the tag names express business categories (for example "Returns and exchanges" rather than "Category A"), the more accurate the automatic tagging will be.
{% endhint %}

## Where to see the analysis results <a href="#where-to-see" id="where-to-see"></a>

In <mark style="color:blue;">All Conversations</mark>, open a conversation → <mark style="color:blue;">Details</mark>:

* <mark style="color:blue;">Conversation summary</mark>: Shows the AI-generated summary. Agents can <mark style="color:blue;">edit the summary</mark>, view the AI's original draft and each revision in the <mark style="color:blue;">edit history</mark>, and <mark style="color:blue;">restore</mark> a version if needed.
* <mark style="color:blue;">Conversation tags</mark>: Automatically applied tags appear here, and agents can add or remove tags manually.

## Analysis prompt example <a href="#prompt-example" id="prompt-example"></a>

```
You are an assistant to the customer service manager. Read the conversation and do two things:
1. Summarize in 2–3 sentences the customer's issue, what has already been tried, and where things are currently stuck.
2. From the available tags, choose the 1–2 categories that fit best; if the customer is clearly dissatisfied, also add "Complaint".
Write the summary in English and do not add speculation that is not in the conversation.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/en/build/conversation-settings/conversation-analysis.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
