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

# AI Analytics

> Run natural language queries against your CRM data and save charts to your dashboard or reports — no SQL required.

<div
  style={{ 
display: "inline-block",
color: "#1C758A",
fontSize: "12px",
fontWeight: "700",
marginBottom: "10px",
letterSpacing: "0.06em",
textTransform: "uppercase",
background: "rgba(48,200,202,0.10)",
padding: "7px 12px",
borderRadius: "999px",
border: "1px solid rgba(48,200,202,0.16)"
}}
>
  AI Assistant
</div>

## Natural Language Analytics

<div
  className="dark:shadow-none"
  style={{
background: "linear-gradient(135deg, rgba(20,61,78,0.04) 0%, rgba(28,117,138,0.08) 55%, rgba(48,200,202,0.10) 100%)",
border: "1px solid rgba(28,117,138,0.14)",
borderRadius: "22px",
padding: "22px",
marginBottom: "26px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)",
position: "relative",
overflow: "hidden"
}}
>
  <div
    style={{
position: "absolute",
top: "-38px",
right: "-38px",
width: "130px",
height: "130px",
background: "rgba(48,200,202,0.12)",
borderRadius: "999px"
}}
  />

  <div
    style={{
position: "absolute",
bottom: "-34px",
left: "-24px",
width: "100px",
height: "100px",
background: "rgba(20,61,78,0.05)",
borderRadius: "999px"
}}
  />

  <div
    className="bg-white dark:bg-black dark:border-white/10 dark:text-white [&_*]:dark:text-white"
    style={{
borderRadius: "18px",
padding: "18px",
position: "relative"
}}
  >
    Instead of building manual reports with filters and pivot tables, you can ask Parsa AI direct questions about your CRM data in plain English. The AI translates your query into a data analysis, returns results as a chart or table, and you can save it for later.

    Go to **AI → Analytics** or use the AI chat panel with any analytics-style question.
  </div>
</div>

***

<div
  style={{ 
display: "inline-block",
color: "#1C758A",
fontSize: "12px",
fontWeight: "700",
marginBottom: "8px",
letterSpacing: "0.06em",
textTransform: "uppercase",
background: "rgba(28,117,138,0.08)",
padding: "6px 12px",
borderRadius: "999px",
border: "1px solid rgba(28,117,138,0.12)"
}}
>
  Example Queries
</div>

## Example Queries

### Pipeline and Revenue

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white dark:shadow-none"
  style={{
display: "grid",
gap: "10px",
marginBottom: "20px",
borderRadius: "18px",
padding: "18px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  ```
  What's the total pipeline value by stage?
  ```

  ```
  Show me monthly closed won revenue for the last 6 months.
  ```

  ```
  What's the average deal size for each rep?
  ```

  ```
  Which opportunities are most at risk of slipping this quarter?
  ```
</div>

### Leads and Contacts

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white dark:shadow-none"
  style={{
display: "grid",
gap: "10px",
marginBottom: "20px",
borderRadius: "18px",
padding: "18px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  ```
  Show me leads created in the last 30 days, grouped by source.
  ```

  ```
  What percentage of leads converted to contacts last month?
  ```

  ```
  How many new contacts were added each week this quarter?
  ```

  ```
  Which lead sources produce the highest conversion rate?
  ```
</div>

### Activities and Engagement

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white dark:shadow-none"
  style={{
display: "grid",
gap: "10px",
marginBottom: "20px",
borderRadius: "18px",
padding: "18px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  ```
  How many emails were sent by each team member last week?
  ```

  ```
  Which contacts haven't had any activity in the last 45 days?
  ```

  ```
  What's the average time between lead creation and first contact?
  ```
</div>

### Cases and Support

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white"
  style={{
display: "grid",
gap: "10px",
marginBottom: "24px",
borderRadius: "18px",
padding: "18px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  ```
  Show me open cases by priority.
  ```

  ```
  What's the average resolution time for cases this month?
  ```

  ```
  Which accounts have the most open cases?
  ```
</div>

***

<div
  style={{ 
display: "inline-block",
color: "#1C758A",
fontSize: "12px",
fontWeight: "700",
marginBottom: "8px",
letterSpacing: "0.06em",
textTransform: "uppercase",
background: "rgba(28,117,138,0.08)",
padding: "6px 12px",
borderRadius: "999px",
border: "1px solid rgba(28,117,138,0.12)"
}}
>
  Dashboard
</div>

## Saving Charts to Dashboard

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white"
  style={{
border: "1px solid #E7EAEC",
borderRadius: "18px",
padding: "20px",
marginBottom: "24px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  After running an analytics query, you'll see the result as a chart or table. To save it:

  1. Click **Save to Dashboard** below the chart.
  2. Give the chart a name (e.g., "Pipeline by Stage — Live").
  3. The chart is added to your CRM dashboard and refreshes automatically with live data every time you view it.

  You can add multiple charts to your dashboard and rearrange them by dragging. Remove a chart from the dashboard by clicking the **×** icon in dashboard editing mode.
</div>

***

<div
  style={{ 
display: "inline-block",
color: "#1C758A",
fontSize: "12px",
fontWeight: "700",
marginBottom: "8px",
letterSpacing: "0.06em",
textTransform: "uppercase",
background: "rgba(28,117,138,0.08)",
padding: "6px 12px",
borderRadius: "999px",
border: "1px solid rgba(28,117,138,0.12)"
}}
>
  Reports
</div>

## Saving to Reports

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white"
  style={{
border: "1px solid #E7EAEC",
borderRadius: "18px",
padding: "20px",
marginBottom: "24px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  For analytics you want to revisit regularly without pinning to the dashboard:

  1. After running a query, click **Save to Reports**.
  2. Give the report a name and optional description.
  3. Access saved reports from **AI → Reports** at any time.

  Reports re-run against live data each time you open them. You can also export any report to CSV by clicking **Export** from the report view.
</div>

***

<div
  style={{ 
display: "inline-block",
color: "#1C758A",
fontSize: "12px",
fontWeight: "700",
marginBottom: "8px",
letterSpacing: "0.06em",
textTransform: "uppercase",
background: "rgba(28,117,138,0.08)",
padding: "6px 12px",
borderRadius: "999px",
border: "1px solid rgba(28,117,138,0.12)"
}}
>
  Advanced Queries
</div>

## Combining Filters with Natural Language

<div
  className="bg-white dark:bg-black dark:border-white/10 dark:text-white"
  style={{
display: "grid",
gap: "10px",
marginBottom: "24px",
border: "1px solid #E7EAEC",
borderRadius: "18px",
padding: "18px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.05)"
}}
>
  ```
  Show me closed won deals in Q1 where the assigned rep is Alex or Jordan.
  ```

  ```
  Which leads created via the Website Form source in the last 60 days are still in New status?
  ```

  ```
  What's the pipeline value for accounts in the Technology industry with more than 50 employees?
  ```
</div>

The more context you provide, the more precise the results.

<Note>
  AI analytics run against your live CRM data. Deleted records are not included in query results. If a chart looks off, verify that the underlying data (e.g., close dates, stage values) is accurate in the CRM.
</Note>

***

<div
  style={{ 
display: "inline-block",
color: "#1C758A",
fontSize: "12px",
fontWeight: "700",
marginBottom: "8px",
letterSpacing: "0.06em",
textTransform: "uppercase",
background: "rgba(28,117,138,0.08)",
padding: "6px 12px",
borderRadius: "999px",
border: "1px solid rgba(28,117,138,0.12)"
}}
>
  Tips
</div>

## Tips for Better Queries

<div
  style={{
background: "linear-gradient(135deg, rgba(20,61,78,0.04) 0%, rgba(48,200,202,0.07) 100%)",
border: "1px solid rgba(28,117,138,0.14)",
borderRadius: "18px",
padding: "18px 20px",
marginBottom: "20px",
boxShadow: "0 14px 34px rgba(20, 61, 78, 0.04)",
color: "#212121"
}}
>
  * **Be specific about time ranges** — "last 30 days" or "Q1 2025" produces better results than "recently."
  * **Specify groupings** — "by rep," "by stage," "by source" tells the AI how to slice the data.
  * **Ask for comparisons** — "compared to last month" or "vs. the same period last year" triggers trend analysis.
  * **Use CRM terminology** — Terms like "closed won," "lead source," and "pipeline stage" are understood natively.
</div>

***

## Pipeline Health Queries

Ask about pipeline movement, not just snapshots. Behind the scenes the analytics engine reads the `OpportunityStageHistory` ledger — one row per stage transition — so it can answer about drift over time.

> *"What's our average cycle time from Prospecting to Closed Won in the last 90 days?"*
>
> *"Which stage do we drop the most opportunities from?"*
>
> *"How many opportunities sat in Negotiation longer than 14 days last quarter?"*

The chart shows drop-off bars per stage, an average-cycle-time line, or a velocity-by-stage breakdown depending on what you asked. Save it as a [Pipeline Health widget](/crm/reports#widget-types) on a report to track it over time.

***

## Automation Queue Queries

The analytics engine knows about automation-spawned tasks too (via the `automation_action` field on Task). So you can answer:

> *"Which automation rule has fired the most this month?"*
>
> *"How many automation send\_email actions failed in the last week?"*
>
> *"Show me the time-to-complete distribution for create\_task actions."*

Useful for tuning automations — if one rule is doing 80% of the firing, it might be configured too aggressively; if half its actions are failing, something's broken with the rule's email settings.
