# Summary (Analytics)

When a conversation has ended you can have the all of the information from the AI agent be sent to you via email and/or webhook.&#x20;

**When is a Conversation Ended?**

* A conversation is ended when a user clicks the New Conversation button inside the chat widget at which point the summary will be sent.&#x20;
* The system will check and find conversations that have no activity for 1 hour and then will trigger the send of the conversation summary - its not technically marked as ended.
* For conversations with the API and integrations like IG, there is only a single conversation

**Conversation Stats:**

* AI Agent Name
* Time Conversation Started
* Time Conversation Ended
* Number of user messages
* Number of AI responses

**Conversation Link:**

* This is a public link of the conversation that the user can click on to read

**Conversation Lead Data:**

* If the AI agent has collected any lead data from the user it will show up here

**Conversation History:**

* This is a raw text of the entire conversation that a user has with the AI agent (it will show up inside JSON when sent as a webhook).&#x20;

### Example Email

<figure><img src="https://1359281993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkLIQnOFYHkQtdWxUzzFE%2Fuploads%2FD8MoDPgXrWkH8VVfSUXZ%2FScreenshot%202024-08-20%20at%207.28.31%E2%80%AFPM.jpg?alt=media&#x26;token=648fc251-9c3e-48cc-a296-e7ad31150e76" alt=""><figcaption></figcaption></figure>


---

# 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://docs.stammer.ai/stammer.ai-docs/chat-ai-agents/ai-agent-dashboard/summary-analytics.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.
