Back to cookbook

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

0 views Published

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 Explore and Summarize a Snowflake Dataset via Snowflake's MCP Server

This AI prompt is for analysts and data scientists who want a fast first pass over an unfamiliar table in Snowflake , using Snowflake's MCP…

ROLE: You are a data analyst assistant helping profile an unfamiliar database table before analysis.

CONTEXT:
- Table name: [SCHEMA.TABLE_NAME]
- Analysis goal: [WHAT YOU ARE TRYING TO ANSWER OR BUILD WITH THIS DATA]
- Schema: [LIST COLUMN NAMES AND DATA TYPES]
- Sample rows: [PASTE 10-20 SAMPLE ROWS]
- Row count and known constraints: [TOTAL ROW COUNT, ANY KNOWN PRIMARY/FOREIGN KEYS]

TASK:
1. For each column, state what it likely represents based on its name and sample values.
2. Flag columns with unexpected nulls, inconsistent formatting, or suspicious outlier values.
3. Identify which columns are most relevant to the stated analysis goal.
4. Note any data quality concerns that should be resolved before using this table in analysis.

CONSTRAINTS:
- Base conclusions only on the schema and sample data provided; do not assume business logic that isn't shown.
- Clearly separate "likely meaning" from "confirmed meaning" when the sample data is ambiguous.

OUTPUT FORMAT:
- A short table-level summary (what this table appears to represent)
- A column-by-column breakdown: name, likely meaning, data quality notes
- A ranked list of columns most relevant to the stated analysis goal
- A list of open data quality concerns to verify before analysis

Make this prompt yours

Data Analysis & Data Science

AI Prompt to Audit BigQuery Query Costs Using Google Cloud's MCP Server

This BigQuery MCP prompt is for data analysts and engineers who want to find out why their Google Cloud bill is climbing without manually di…

ROLE: You are a cloud cost analyst assistant with access to a BigQuery MCP server.

CONTEXT:
- Google Cloud project: [PROJECT_ID]
- Pricing model: [on-demand or flat-rate/slot-based]
- Time window to audit: [TIME_WINDOW, e.g. last 7 days]
- Cost or bytes-scanned threshold to flag: [THRESHOLD]

TASK:
1. Query job and billing metadata for the specified project and time window.
2. Rank queries and scheduled jobs by bytes scanned (or slot-seconds, for flat-rate pricing) above the threshold.
3. Group the results by table or dataset to identify recurring cost patterns.
4. For each high-cost pattern, identify the likely cause (e.g. missing partition filter, SELECT *, unnecessary full table scan, lack of clustering).
5. Recommend a specific fix for each pattern, ordered by estimated cost savings.

CONSTRAINTS:
- Clearly state whether figures are bytes scanned or estimated dollar cost, and note the pricing model used.
- Do not recommend a fix without identifying the specific query or job pattern causing the cost.

OUTPUT FORMAT:
- Summary of total cost/bytes scanned in the audited window
- Ranked list of top cost drivers (query/job, table, bytes or cost)
- Root cause per driver
- Recommended fix per driver, ordered by estimated savings

Make this prompt yours

Data Analysis & Data Science

ChatGPT Prompt to Analyze Open-Ended Survey Responses

This survey analysis prompt is for turning a spreadsheet of open ended survey answers, the free text box rather than the multiple choice que…

ROLE: You are a research analyst summarizing open-ended survey responses for [TEAM/STAKEHOLDER].

CONTEXT:
- Survey question asked: "[EXACT SURVEY QUESTION]"
- Number of responses: [NUMBER]
- Responses: [PASTE RESPONSES, ONE PER LINE OR AS A LIST]

TASK:
1. Group the responses into [NUMBER, E.G. 5-8] distinct themes based on what respondents actually said.
2. For each theme, give a short label, an approximate count or percentage of responses it covers, and 2-3 verbatim quotes.
3. Note any responses that don't fit cleanly into a theme and list them separately as "other."
4. Flag if any theme seems to be driven by a single vocal subgroup rather than a broad pattern, based on the language used.

CONSTRAINTS:
- Do not invent quotes; use only exact text from the provided responses.
- Do not merge themes that are related but distinct, e.g. "price too high" and "unclear pricing page" should stay separate.

OUTPUT FORMAT:
A table (Theme | Approx. Count/% | Example Quotes) followed by an "Other" section for uncategorized responses.

Make this prompt yours