Back to cookbook

AI Prompt to Analyze Salesforce Pipeline Data via Salesforce's MCP Server

0 views Updated

Make this prompt yours

Share

This prompt turns an AI assistant into a sales pipeline analyst that reads deal data straight out of Salesforce through Salesforce's MCP server and turns it into a plain-language read on where revenue stands. It's built for sales managers, RevOps analysts, and account executives who want a fast pipeline review without exporting reports or building a dashboard by hand.

Once the MCP connection exposes opportunity, stage, amount, and close-date fields, the model can group deals by stage, flag ones that have sat too long without movement, and estimate a realistic close-weighted forecast instead of a simple sum of open deal value. It also separates deals that look healthy from ones with risk signals, like a close date that's already passed or no recent activity logged.

Because a full pipeline export can run into hundreds of rows that are too large to paste into a single prompt, feeding the raw record set through the Context Extractor first lets you pull just the open, active-stage opportunities before handing them to this prompt, which keeps the analysis focused on the deals that actually need a decision.

Prompt template

Make this prompt yours

prompt-template
341 tokens
ROLE You are a sales operations analyst reviewing Salesforce pipeline data retrieved via the Salesforce MCP server. CONTEXT - Data source: Salesforce opportunities for [TEAM OR TERRITORY NAME] - Reporting period: [START DATE] to [END DATE] - Fields available: opportunity name, stage, amount, probability, close date, last activity date, owner - Audience for this analysis: [SALES MANAGER / EXECUTIVE / BOARD] TASK 1. Group the opportunities by stage and report the total amount and count in each stage. 2. Calculate a probability-weighted forecast for the reporting period (amount x stage probability), not a raw sum of open deal value. 3. Flag any opportunity where the close date has already passed, or where the last activity date is more than [NUMBER] days old, as "at risk." 4. Call out any opportunity missing a close date, amount, or owner as a data quality issue. 5. Summarize in plain language whether the team is on track, behind, or ahead of the target of [TARGET AMOUNT]. CONSTRAINTS - Use only the field values provided; do not assume a probability if one wasn't given. - Do not include closed-won or closed-lost deals in the open-pipeline totals. - State the reporting period and the target amount at the top of the output. OUTPUT FORMAT - A short summary paragraph (2-3 sentences) stating overall pipeline health against the target - A table: Stage | Deal Count | Total Amount | Weighted Forecast - A bulleted list of at-risk opportunities with the reason each was flagged - A bulleted list of data quality issues, if any

Want it sharper? Optimize this prompt with Prompt Optimizer, check it with the Prompt Debugger or shorten it with the Token Optimizer.

Example input

example-input
460 tokens
ROLE You are a sales operations analyst reviewing Salesforce pipeline data retrieved via the Salesforce MCP server. CONTEXT - Data source: Salesforce opportunities for the Enterprise East team - Reporting period: October 1, 2026 to December 31, 2026 - Fields available: opportunity name, stage, amount, probability, close date, last activity date, owner - Audience for this analysis: Sales Manager TASK 1. Group the opportunities by stage and report the total amount and count in each stage. 2. Calculate a probability-weighted forecast for the reporting period. 3. Flag any opportunity where the close date has already passed, or where the last activity date is more than 14 days old, as "at risk." 4. Call out any opportunity missing a close date, amount, or owner as a data quality issue. 5. Summarize whether the team is on track against a target of $850,000. Data pulled from Salesforce MCP: - Acme Corp Expansion | Negotiation | $120,000 | 70% | 2026-11-15 | last activity 2026-10-08 | owner: J. Kim - Beacon Health Renewal | Proposal | $80,000 | 50% | 2026-10-20 | last activity 2026-09-12 | owner: J. Kim - Delta Logistics New Business | Qualification | $45,000 | 20% | 2026-12-01 | last activity 2026-10-09 | owner: R. Alvarez - Fenwick Group Upsell | Negotiation | $200,000 | 70% | 2026-10-05 | last activity 2026-09-01 | owner: R. Alvarez - Greenline Manufacturing | Proposal | $90,000 | (blank) | 2026-11-30 | last activity 2026-10-07 | owner: (blank) CONSTRAINTS - Use only the field values provided. - Exclude closed-won and closed-lost deals. - State the reporting period and target at the top. OUTPUT FORMAT - Summary paragraph - Stage table - At-risk list with reasons - Data quality issues list

When to use it

  • Before a weekly or monthly pipeline review meeting, when you need a quick read on stage distribution and risk
  • When a sales leader asks for a revised forecast and you want a close-weighted number instead of a raw open-pipeline total
  • When onboarding a new AE and you want a narrated walkthrough of what their current pipeline actually looks like
  • When reconciling CRM data for board or investor reporting and you need to catch stalled or overdue deals first

Best practices

  • Pull live fields through the MCP connection (stage, amount, probability, last activity date, close date) rather than typing remembered numbers from memory
  • Ask the model to separate 'at-risk' deals (overdue close date, no activity in 14+ days) from healthy ones before it gives you a single forecast number
  • Have it weight the forecast by stage probability instead of just summing every open opportunity's amount
  • Re-run the same prompt weekly with a fresh data pull so you can compare week-over-week movement instead of a one-time snapshot

Common mistakes

  • Asking for a forecast without specifying the time window, which produces a number that mixes this quarter's and next quarter's deals
  • Letting the model guess at a probability-to-close when the actual stage probabilities aren't pulled from Salesforce's own configuration
  • Treating every 'open' opportunity as equally likely to close, which inflates the forecast and hides at-risk deals
  • Not asking the model to flag missing or null fields (blank close dates, no owner) that will otherwise silently skew the totals

FAQs

What data does an AI need from Salesforce to analyze pipeline health?

At minimum it needs stage, amount, probability, close date, and last activity date for each open opportunity. Pulling these live through Salesforce's MCP server avoids the stale numbers that come from a manually exported CSV.

How is a probability-weighted forecast different from a simple pipeline total?

A simple total adds up every open deal's amount, which overstates how much revenue will actually close. A weighted forecast multiplies each deal's amount by its stage probability, giving a more realistic number for planning.

Can this prompt work with other CRMs besides Salesforce?

Yes. The structure works with HubSpot, Pipedrive, or any CRM that exposes opportunity stage, amount, and date fields through an MCP connection or export; only the field names in the context section need to change.

Which Cuelara tool can help me handle large Salesforce exports before running this prompt?

Context Extractor — it pulls just the relevant open, active-stage opportunities out of a large pipeline export so the analysis prompt stays focused on deals that actually need a decision, instead of hitting a context limit on the full record set.

Found this prompt useful? Share it.

Share

More in Data Analysis & Data Science

Data Analysis & Data Science

AI Prompt to Analyze Stripe Revenue Data via Stripe's MCP Server

This AI prompt is built for founders, finance teams, and revenue operations analysts who connect an AI model to Stripe's MCP server and want…

You are a revenue operations analyst reviewing Stripe payment data retrieved through a Stripe MCP server connection.

Context:
- Business: [BUSINESS NAME AND TYPE, e.g., B2B SaaS on monthly and annual plans]
- Analysis period: [START DATE] to [END DATE]
- Currency: [CURRENCY, e.g., USD]
- Data source: Stripe subscriptions, invoices, and charges retrieved via MCP for this account

Task:
1. Query the relevant Stripe objects for the analysis period via the MCP connection (subscriptions, invoices, charges, and customers as needed).
2. Calculate: starting MRR, new MRR, expansion MRR, contraction MRR, churned MRR, and ending MRR.
3. Calculate customer churn rate and revenue churn rate separately, excluding [EXCLUDED CATEGORIES, e.g., trial accounts, free plans].
4. List the top [NUMBER] customers by revenue at risk (failed payments, past-due invoices, or recent downgrades).
5. Note any data gaps, such as missing invoices or incomplete pagination, instead of estimating around them.

Constraints:
- Report only figures directly supported by the retrieved Stripe data; do not estimate or extrapolate missing values.
- State all currency figures in [CURRENCY] and round to two decimal places.
- If the MCP query returns incomplete data, say so explicitly before presenting any totals.

Output format:
- Summary table: Starting MRR, New MRR, Expansion MRR, Contraction MRR, Churned MRR, Ending MRR
- Customer churn rate and revenue churn rate as separate lines
- Ranked list of at-risk accounts with reason and amount at risk
- "Data notes" section listing any gaps or assumptions made

Make this prompt yours

Data Analysis & Data Science

Claude Prompt to Analyze a CSV Dataset and Summarize Key Insights

This Claude prompt is for analysts, founders, and marketers who need to turn a raw CSV export into a plain language summary of what the data…

Role: You are a data analyst who explains findings in plain language for a non-technical audience.

Context:
- Dataset description: [WHAT THE DATA REPRESENTS, E.G., "MONTHLY SALES BY REGION"]
- Columns: [COLUMN NAME: WHAT IT MEANS, repeat for each column]
- Data: [PASTE CSV ROWS OR ATTACH THE FILE]
- Business question: [WHAT YOU'RE TRYING TO LEARN, E.G., "WHICH REGION IS DECLINING"]

Constraints:
- State any assumptions you make about unclear columns before analyzing
- Show the reasoning or calculation behind any number you report
- Flag any data quality issues (missing values, small sample size, duplicates) you notice

Task: Analyze the data to answer the business question above.

Output format:
1. Key findings (3-5 bullet points, plain language)
2. Notable outliers or anomalies, with the specific rows or values involved
3. Caveats or data quality issues
4. Suggested next steps for further analysis

Make this prompt yours

Data Analysis & Data Science

ChatGPT Prompt for Exploratory Data Analysis on a New Dataset

This ChatGPT prompt for exploratory data analysis (EDA) is built for analysts, students, and data scientists opening a dataset for the first…

Role: You are a data analyst performing an initial exploratory analysis on a new dataset.

Context:
- Dataset description: [WHAT THE DATA REPRESENTS AND WHERE IT CAME FROM]
- Columns and data types: [LIST COLUMN NAMES AND TYPES]
- Sample rows: [PASTE 5-10 SAMPLE ROWS]
- Business question or goal: [WHAT YOU'RE ULTIMATELY TRYING TO UNDERSTAND OR DECIDE]

Constraints:
- Base every observation only on the data provided; do not invent values or trends not shown
- Clearly separate factual observations from suggested next steps
- Flag any columns with likely data-quality issues (missing values, inconsistent formatting, outliers)
- If something cannot be determined from the sample provided, say so explicitly instead of guessing

Output format:
1. Dataset overview (shape, column types, general structure)
2. Data-quality issues found (missing values, duplicates, inconsistent formats)
3. Key distributions and notable patterns
4. Three to five follow-up questions worth investigating further

Make this prompt yours