# Exporting AI Usage Data

Get detailed insights into your AI Ticket Deflection and Smart Replies performance by exporting usage data to a CSV file.

When you use AI-powered features like AI Ticket Deflection and Smart Replies, Wrangle tracks every attempt to answer requests automatically. Sometimes you want to dig deeper and understand why specific attempts did or did not result in a ticket being created. The AI usage export gives you the detailed information you need to analyze performance and optimize your setup.&#x20;

{% hint style="info" %}
You can ONLY export data after configuring [AI Ticket Deflection](https://docs.wrangle.io/tickets/ai-powered-ticketing/ai-ticket-deflection) and/or [Smart Replies](https://docs.wrangle.io/tickets/ai-powered-ticketing/smart-replies).
{% endhint %}

<figure><img src="https://3500333410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8Mly5TzbK30rAk6_PN%2Fuploads%2FGU7mTwsRkFRs9MMcLZXw%2FWrangle%20AI%20Export%20.jpg?alt=media&#x26;token=d977a41b-39a2-4474-808c-4d4961b09da1" alt="Wrangle Ticketing Report Deflections tab with &#x22;Export AI Usage Data&#x22; button highlighted"><figcaption><p>Export AI usage data from the Deflections report.</p></figcaption></figure>

### How to export AI usage data

1. **Open Deflections report:** Go to <https://slack.wrangle.io/reports/tickets/deflections>
2. **Click "Export AI Usage Data"** at the top of the page
3. **Wait for the export to process:** Wrangle will prepare your data
4. **Receive a notification in Slack:** When your export is ready, you'll get a Slack message with a download link.
5. **Download the CSV file:** Click the link in Slack to download your export.

<figure><img src="https://3500333410-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8Mly5TzbK30rAk6_PN%2Fuploads%2Fe0EqH2MT7gVXA6LlG24K%2Fimage.png?alt=media&#x26;token=d2cb6444-492a-46e0-ad9d-603a5793cc7c" alt=""><figcaption><p>Link to download AI usage data in Slack.</p></figcaption></figure>

### What's included in the export

This data helps you understand what's working well and where you might need to adjust your AI configuration or documentation. The AI usage export provides detailed data about:

* **AI Ticket Deflection attempts:** When Wrangle used AI to answer questions based on your linked documentation
* **Smart Replies attempts:** When Wrangle automatically responds based on your keyword-based smart reply rules
* **Success indicators:** Whether the user confirmed the answer resolved their question
* **Ticket creation:** Which attempts resulted in tickets being created
* **Source information:** Where AI-generated answers came from (which documents or knowledge sources)
* **Timestamps and metadata:** When attempts occurred and other contextual details.

{% hint style="info" %}
The export includes all AI Ticket Deflection and Smart Replies data from your configured inboxes.
{% endhint %}


---

# 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.wrangle.io/tickets/ai-powered-ticketing/exporting-ai-usage-data.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.
