> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> There is no npm package to install. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# Ask questions about your data with Ask AI

> Use Ask AI in the CrispStats dashboard to ask about traffic and revenue in plain words, find out why a number moved, and have goals, funnels, alerts and notes prepared for you to confirm.

Ask AI answers questions about one site's data in plain words, such as "What are my top sources?" or "Where do people drop off in the checkout funnel?". Open a site and select **Ask AI** under **AI** in the sidebar. Answers lead with the number and say which period they cover, and each one lists the reports it came from, with a link to each.

Ask AI does three more things when the AI model answers:

* **It works out why a number moved.** Ask "Why did traffic drop this week?" and it compares the two periods and names the sources, pages and countries that explain the change.
* **It prepares changes for you to confirm.** Ask for a goal, a funnel, an alert, a note on the chart, an email report or an uptime monitor and it shows the change as a card. Nothing is saved until you select the card's button.
* **It answers from the documentation.** Ask "How do I track button clicks?" and it reads the matching docs page and links to it.
* **It reads what you attach.** Add a screenshot or a CSV export to a question and it compares it with your site's own figures.
* **It makes pictures to share.** Ask for an image of this week's visitors or your top sources and it draws a card from your real numbers, ready to download or copy.

Each question answered by the AI model uses one AI message from your workspace's monthly allowance. When the model is not available or the allowance is used up, Ask AI falls back to **Quick answers**, which answers common questions without a model and without using messages.

## Ask a question

**1. Open Ask AI**

Open a site in the dashboard and select **Ask AI** under **AI** in the sidebar. Anyone who can view the site can use it.

**2. Pick a suggestion or type a question**

A new conversation opens with the question box in the middle of the page and suggested questions under it. Select a suggestion or type your own question, up to 2,000 characters. Press Enter to send, or Shift+Enter for a new line. After the first question the box moves to the bottom of the page and the conversation takes the space above it.

To speak instead of typing, select the microphone button and talk; your words appear in the box for you to check and send. See [Dictation](#dictation).

**3. Read the answer**

While it works, Ask AI shows which reports it is looking at and how long it has been working. The answer streams in, followed by up to two small charts from the reports it used.

Above the answer, a line such as **Worked for 6s · looked at 3 reports** sums up the work. Expand it to read the model's reasoning summary and each report it read, and select **Open report** to go to that report in the dashboard with the same period. Under the answer, use the buttons to copy it, put the question back in the box to edit it, or ask it again.

**4. Confirm a change**

When you ask Ask AI to set something up, a card under the answer shows exactly what would be saved. Select the card's button, for example **Create goal**, to save it, or **Not now** to leave everything as it is. The card then says what happened and links to the place the new item lives.

**5. Ask a follow-up**

When the AI model answers, follow-up questions keep the context, so you can go from a total to its biggest source to that source's landing pages. Quick answers reads each question on its own. To start over, open **Conversations** and select **New conversation**.

To stop an answer while it streams, select the stop button in the composer or press Esc. Press / anywhere on the page to jump to the composer, and Arrow up in an empty composer to bring back your last question.

## How answers are built

Ask AI uses Claude, Anthropic's model, with access to the same read-only reports as the [REST API](https://docs.crispstats.com/api-reference/introduction.md) and the [MCP server](https://docs.crispstats.com/ai/connect-ai-assistants.md). It can also compare two periods to find what changed, read what is set up on the site and search this documentation. The model calls those, then writes the answer from the results. Its instructions are:

* **Every figure comes from a report.** If the reports cannot provide something, the answer says so instead of guessing.
* **The period is stated.** If you name no period, the answer uses the last 30 days and says so.
* **Values are formatted for people.** Money is shown in the site's currency, rates as percentages and durations in minutes and seconds.
* **Depth matches the question.** "How many visitors today?" gets a sentence. "Why did traffic drop?" gets the headline, the two or three things behind it with their figures, and one next step. A small table appears only when several things are compared across several measures.
* **What moved is not called a cause.** When it explains a change, it names the values that rose or fell and by how much. It does not claim a reason the data does not show.
* **Comparisons are looked up.** For questions like "is that good?" or "what changed?", the model asks the report for a comparison with the previous period.

The reports cover visitors, sessions, pageviews, sources and campaigns, pages, countries and devices, custom events and their properties, goals, funnels, retention, revenue and payments, web vitals, JavaScript errors, uptime, AI traffic and anonymous visitor journeys. Ask AI cannot answer questions about personal data (CrispStats stores no IP addresses or cookies), ad spend, search rankings or keywords, competitors, or anything outside the site.

Page paths, referrers, campaign names, event names and error messages come from the public web. Ask AI treats them as values to report and never as instructions. The most a crafted page path could cause is another read of the same site's data, or a card that states in plain words what it would save and still needs your confirmation.

One question is bounded: at most eight model rounds. Once the model has made 24 lookups, or reaches the eighth round, it must answer with what it has. One answer prepares at most four changes. If an answer reaches the length limit, Ask AI says it was cut short; ask a narrower question to get the rest.

> [!NOTE]
>
> To answer a question, Ask AI sends your question, anything you attached to it, the recent conversation and the report results for your site to Anthropic's API. Visitor and customer email addresses and your own user ids are removed from the report results first. When it reads your site's setup, it sends the names of your goals, funnels, alerts and monitors, your monitor URLs and your chart notes. It does not send the destinations of your notification channels or the recipients of your email reports.

## Attach a picture or a file

When the AI model answers, you can attach up to four pictures or text files to a question. Select the paperclip button, paste a copied picture into the question box, or drag files onto it.

| You can attach | Formats | Limit |
| - | - | - |
| Pictures, such as a screenshot of another analytics tool or a chart | PNG, JPEG, WebP, GIF | Made smaller in your browser before sending, to at most 1,568 pixels on the long side |
| Text files, such as a CSV export or notes | CSV, TSV, TXT, Markdown, JSON, LOG | 120,000 characters per file |

* **Sent with one question.** Ask AI sees an attachment only with the question it came with. A later question shows the file's name, not its contents: attach it again if you need it.
* **Not stored.** CrispStats does not keep attached pictures or files. A saved conversation keeps their names only.
* **Yours, not your site's.** Figures Ask AI reads from an attachment are reported as coming from your file, separately from your site's reports.
* **Refused with a reason.** A file that is too long or of another type is not attached, and the line under the question box says why. Nothing is cut short without telling you.
* **Not on Quick answers.** Quick answers cannot read attachments and says so.

> [!NOTE]
>
> Attached pictures and files are sent to Anthropic's API with your question, like the rest of the conversation. Do not attach anything you would not send to an AI provider.

## Create an image to share

Ask for a picture and Ask AI draws a 1200 by 675 pixel card from your site's figures: your site's name, the period, and either one figure with its change and trend line or a top five ranking.

* "Make an image of this week's visitors"
* "Create a picture of my top sources by revenue this month"
* "An image of revenue for the last 30 days, with the caption Best month so far"

The figures on the card are read from your reports, never written by the model, so the card cannot show a number your dashboard does not. The card is drawn in your browser, in the light or dark theme you are using. Select **Download** to save it as a PNG or **Copy image** to paste it into a post or a message. Ask AI cannot create other kinds of images, such as illustrations or logos.

## Dictation

In browsers that support speech recognition, the question box has a microphone button. Select it, allow the microphone when your browser asks, and speak. Each finished phrase is added to the question box; nothing is sent until you press Enter or select the send button. Select the button again to stop.

Dictation uses your browser's own speech recognition. CrispStats never receives audio: only the words your browser hands back appear in the box. Some browsers process speech with their vendor's online service, so check your browser's documentation if that matters to you. If the microphone is blocked, the line under the box says how to allow it.

## Changes Ask AI can prepare

Ask AI never changes anything by itself. It prepares a change as a card with the exact values, and the change is saved only when you select the card's button. The save runs with your own access, through the same checks as the dashboard's forms.

| Ask for | What the card saves | Where it lives |
| - | - | - |
| A goal | A goal that counts a custom event or a page path, with an optional value | **Events** |
| Pausing or resuming a goal | The goal stops or starts counting from now | **Events** |
| A funnel | 2 to 12 ordered steps and the time allowed to finish them | **Funnels** |
| A note on the chart | A dated note on the Overview chart | **Overview** |
| An alert | An [alert rule](https://docs.crispstats.com/alerts/rule-types.md) sent to every notification channel that is switched on | **Alerts** |
| Switching an alert on or off | The rule starts or stops sending | **Alerts** |
| An email report | The site's weekly or monthly digest, its recipients and its schedule | **Alerts** |
| An uptime monitor | A public URL checked on a schedule | **Uptime** |

* **Who can confirm.** Owners, admins and members of the site's workspace. Viewers can ask questions, but Ask AI prepares no changes for them.
* **Recipients are yours.** Ask AI only uses email addresses you typed in the conversation.
* **Plan limits apply.** For example, a monitor beyond your plan's allowance is refused with the reason.
* **What it cannot do.** Deleting things, billing, team members, API keys, the tracking script and sharing settings stay in the dashboard. Ask AI tells you where.
* **Not on Quick answers.** Changes are prepared only when the AI model answers.

## Suggested questions

The empty chat shows up to seven suggestions based on what the site tracks, in this order. Each one can also be answered by Quick answers.

1. "How many visitors did I get this week?" and "What are my top sources?", always.
2. "How much revenue did I make this month?" and "What is my best campaign?" when the site recorded revenue in the last 30 days, otherwise "Which pages get the most views?".
3. "What changed compared to last week?".
4. "Where do people drop off in the … funnel?", with your first funnel's name, when the site has a funnel.
5. "How much traffic comes from AI assistants?" when AI assistants sent visitors in the last 30 days.
6. "Who is on the site right now?".

Only the first seven are shown, so when every condition applies the last one is left out. A site that has not received its first event shows three: "How many visitors did I get this week?", "What are my top sources?" and "Which pages get the most views?".

## Quick answers

Quick answers is a built-in answerer that is not a model. It recognizes common questions by their wording, calls the same reports the model would, and writes the answer from the real result. Each answer it writes has a **Quick answer** label. When Quick answers serves the whole page, for example on the public demo, a **Quick answers** notice also appears at the top.

Ask AI uses Quick answers when:

* the AI model is not available for the site, for example on the public demo;
* your workspace has used all of its AI messages this month;
* your usage could not be checked, so the model is not called unmetered.

Quick answers handles these kinds of questions:

| Topic | Example |
| - | - |
| Headline numbers | "How many visitors did I get this week?", "What is my bounce rate?" |
| Rankings | "What are my top sources?", "Which countries convert best?", "What is my best campaign?" |
| Revenue | "How much revenue did I make this month?" |
| Changes | "What changed compared to last week?" |
| Trends | "What was my busiest day this month?" |
| Live visitors | "Who is on the site right now?" |
| Site health | "How are my web vitals?", "Any errors?", "Was the site down?" |
| AI traffic | "How much traffic comes from ChatGPT?" |
| Conversions | "Where do people drop off in the signup funnel?", "How are my goals doing?", "What is my retention?", "Which events fire most?" |

It reads periods such as today, yesterday, last 24 hours, this week or last 7 days (both mean the last 7 days), last 30 days, this month, last month, last 90 days, last 12 months, this year and all time. Without a period it uses the last 30 days, except "what changed" questions (last 7 days) and retention (last 90 days). Questions it does not recognize get a list of examples it can answer.

Quick answers does not use AI messages.

## AI message allowance

The trial and every plan include Ask AI. They differ in how many AI messages your workspace can use each month:

| Plan | AI messages per month |
| - | - |
| Trial | 25 |
| Starter | 250 |
| Growth | 1,000 |
| Scale | 5,000 |

* One question answered by the model uses one message, however many reports it looks at.
* The allowance belongs to the workspace and is shared by all its sites and members.
* The count resets at the start of each month, at midnight UTC on the first.
* The line under the composer shows how many messages you have used, for example **12 of 250 messages this month**.
* When the allowance is used up, Ask AI says so, links to your plans and answers with Quick answers until the reset.

Questions you ask through the [MCP server](https://docs.crispstats.com/ai/connect-ai-assistants.md) from your own assistant do not use AI messages. They count against your plan's API request limit instead.

### Request limits

Separately from the monthly allowance, each person can send up to 6 questions in 20 seconds and 1,000 questions a day. The daily count resets at midnight UTC. Over the 20-second limit, Ask AI tells you how many seconds to wait. Over the daily limit, it tells you the count resets at midnight UTC.

## Your conversation

When the AI model answers, your conversations are saved to your account, so you can leave and return to one on any device. Open **Conversations** at the top of the page to start a new one, reopen a recent one or delete the open one. The address of the page names the open conversation, so a reload returns to it.

* A conversation is private to you. Other members of your workspace, including owners, do not see it.
* A conversation keeps its last 30 questions with their answers, the reports that were read, the pictures that were created and the changes that were prepared, with what you decided for each. Attached pictures and files are not kept, only their names.
* Your 200 most recent conversations per site are kept. Deleting a conversation does not undo anything you confirmed in it.
* If you lose access to a site, you no longer see your conversations about it. Deleting the site or your account deletes them.
* The last eight questions and answers are sent along with a new question as context.

With Quick answers, and on the public demo, the conversation is kept in your browser tab only: it survives a page refresh but not a new tab or another device.

## Learn more on crispstats.com

* Feature: [Ask AI](https://crispstats.com/features/ask-ai).
* Glossary: [MCP](https://crispstats.com/glossary/mcp), the protocol behind [connecting AI assistants](https://docs.crispstats.com/ai/connect-ai-assistants.md).

## Next steps

> [card] [Connect your own assistant](https://docs.crispstats.com/ai/connect-ai-assistants.md)
>
> Ask the same questions from Claude, Cursor or VS Code over MCP.

> [card] [Plans and limits](https://docs.crispstats.com/account/plans-and-limits.md)
>
> Compare AI message allowances and other limits by plan.

> [card] [See AI traffic](https://docs.crispstats.com/ai/ai-traffic.md)
>
> Find out which AI assistants send you visitors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.