Use case

How to Analyze a Sales Pipeline Using AI

Review open opportunity value, historical stage movement, sales cycle time, and aging with the CRM metrics in your Cube deployment.

  • Compare open pipeline value with quota
  • Measure stage conversion with a fixed follow-up window
  • Find opportunities that have aged in their current stage

What is sales pipeline analysis with AI?

Sales pipeline analysis reviews the value and movement of open opportunities through defined CRM stages. A sales operations team can use it to compare open pipeline with quota, measure how opportunities progress, and see how long they remain in a stage. Each calculation depends on clear stage definitions, dates, and opportunity grain.

An AI agent can query the governed opportunity, quota, and stage-history metrics in Cube. Cube is the semantic layer for AI, so the analysis uses modeled business definitions rather than asking the agent to infer them from raw CRM tables. This workflow is for sales operations, RevOps, and analysts reviewing historical data; pipeline coverage is not a revenue forecast, and an observed pattern does not establish why a deal moved or stalled.

Start with opportunity history and a defined period

Confirm the opportunity grain, stage-entry history, close outcomes, reporting time zone, and quota period before comparing results. The figures below describe one fictional sales team.

Inputs for a fictional Q3 2026 sales pipeline review
MetricIllustrative example
Opportunity snapshot100 open opportunities as of September 30, with $1.2 million in open amount across Discovery, Qualified, Proposal, and Negotiation.
QuotaThe same fictional team has a $1.0 million Q3 2026 quota.
Stage conversion cohort50 opportunities entered Qualified from August 1 through August 31 and had a complete 30-day follow-up by September 30.
Closed-won history12 opportunities closed won from July 1 through September 30; each has a Qualified-entry date and a Closed Won date.
Current-stage historyStage-entry dates are available for the 100 open opportunities at the September 30 snapshot.
The Prompt

Copy. Paste. Run a pipeline review.

Connect to Cube with MCP or the CLI, then run the same historical review in your agent.

Start with a Cube deployment connected to your data and a model containing the metrics you want to analyze.

01Connect over MCP

Connect over MCP

Connect your agent to your existing Cube deployment and sign in through OAuth.

MCP endpoint
https://cubecloud.dev/mcp
Sign in to Cube

Complete OAuth in your agent to connect your Cube account.

Choose a deployment

Use your default deployment or select another one available to your account.

Read the MCP setup docs
01Connect with CLI

Connect with CLI

Install the Cube CLI and sign in from a terminal-capable agent.

Install the CLI
curl -fsSL https://raw.githubusercontent.com/cube-js/cube/master/install-cli.sh | sh
Log in (replace TENANT with your account name)
cube login --url https://TENANT.cubecloud.dev
Inspect API operations
cube spec --json
Read the CLI docs

02Run this prompt in your agent

Choose your agent and copy the prompt below.

Prompt for Codex
Use the Cube MCP server connected in Codex and select the intended deployment. Run read-only analytics queries. Run a historical sales pipeline analysis using my connected Cube deployment.Use read-only analytics requests. Do not change CRM records, Cube models,deployments, or permissions. Do not expose customer names or opportunity IDs.Use Q3 2026 as the exact example window: July 1 through September 30, 2026.If I want another period, ask me for its exact dates before querying.Never present this page's fictional example values as deployment results. DEFINITIONSInspect the modeled opportunity, quota, stage, and closed-won definitions.Report the opportunity grain, reporting time zone, stage meanings, amountfield, quota period, and date fields. Use the deployment's reporting timezone; if none is defined, use UTC and say so. Do not invent or substitutemetrics. If a required definition or history is unavailable, name the gap. ANALYSIS1. For the snapshot at the end of September 30, 2026, sum the unweighted   amount of open opportunities with an expected close date in Q3 2026.   Divide by the Q3 2026 quota for the same team or scope. Show the open   amount, quota, and coverage ratio. Do not apply stage probabilities or   call the ratio a forecast.2. For stage conversion, use opportunities first entering Qualified from   August 1 through August 31, 2026. Include only opportunities with a full   30-calendar-day follow-up observed by September 30. The numerator is   those that reached Proposal within 30 calendar days of entering   Qualified; the denominator is the eligible cohort. Show both counts and   the rate. Do not count an incomplete follow-up as a failure.3. For sales cycle, use opportunities closed won from July 1 through   September 30, 2026. Calculate calendar days from first entry into   Qualified to Closed Won; report the median and the number of wins included.4. For stage aging, use open opportunities at the September 30 snapshot.   Calculate calendar days since entry to the current stage. Report the   count and share that have been in stage for more than 30 days, over the   eligible open-opportunity count.5. Where modeled dimensions permit, break out the results by current stage   and team. For each segment show its numerator and denominator. Compute   total rates from total counts; do not average segment percentages. DATA QUALITYCheck for duplicate opportunities, missing stage timestamps, inconsistentstage order, missing close outcomes, and incomplete follow-up windows. Donot treat missing values as zero. Exclude ambiguous records only when thereason and count are stated; otherwise report that the measure cannot becalculated reliably. OUTPUTReturn a table with metric, exact window, numerator, denominator, andresult, followed by a concise interpretation and query context. Separateobserved patterns from hypotheses. State limitations and useful follow-upchecks, but do not claim causes, predict future outcomes, or identifyindividual deals.

How it works

1

Fix the snapshot and the metric definitions

Choose the reporting time zone, quarter-end snapshot, opportunity grain, quota scope, and stage meanings. Keep the unweighted open amount and quota on the same team and period.

2

Measure stage movement with a complete cohort

Count opportunities entering Qualified in the same date window, then check which reached Proposal within 30 calendar days. Show the eligible cohort and numerator so an incomplete follow-up is not mistaken for a failed conversion.

3

Review cycle time and stage aging

Calculate the median Qualified-to-Won time for Q3 wins and the share of open opportunities in their current stage for more than 30 days. Use these as places to investigate, not explanations of why a deal changed.

What a sales pipeline review can show

The chart groups $1.2 million in fictional open opportunity value across four stages for one fictional team. The worked example uses the same fictional Q3 2026 data; none of the values are a query result, forecast, benchmark, or customer outcome.

Worked example: fictional Q3 2026 pipeline metrics for one sales team
MetricIllustrative calculationResult
Open pipeline coverage$1.2M open amount ÷ $1.0M Q3 quota1.2x
Qualified to Proposal30 of 50 eligible August entrants progressed within 30 calendar days60%
Median sales cycleMedian from Qualified entry to Closed Won across 12 Q3 wins38 calendar days
Current-stage aging18 of 100 open opportunities were in stage more than 30 days at September 3018%
  • The open amount is $1.2M against a $1.0M Q3 quota, or 1.2x coverage. This is an unweighted historical snapshot and does not predict whether the team will meet quota.
  • Thirty of 50 eligible opportunities reached Proposal within 30 days of entering Qualified, a 60% conversion rate for that cohort. Compare the underlying counts before interpreting a difference between teams.
  • Eighteen of 100 open opportunities had spent more than 30 days in their current stage. The example does not show why they aged; review stage history and other supported context before drawing conclusions.

All figures in the chart and worked example are fictional, hand-calculated illustrations, not executed queries, customer results, benchmarks, or predictions. Actual results depend on the CRM history, stage definitions, quota model, and time zone available in your Cube deployment.

Frequently Asked Questions

Sales pipeline analysis reviews open opportunity value and historical movement through CRM stages. A useful review defines its snapshot date, stage meanings, opportunity grain, and time windows before comparing coverage, conversion, cycle time, or aging.

Try Cube for free