/
/
Learn why Salesforce deals are won and lost
For sales leaders who want win rates, lost deal competitors and evidence-backed lessons instead of anecdotes, by asking their AI assistant.
On this page
Connector
Connect Salesforce, pick your AI tool and paste the prompt.
The problem
Win and loss lessons drawn from memory
Knowing why deals are lost means comparing won and lost opportunities by size, source and type, and seeing which competitors keep appearing. Without the analysis, lessons come from memory and the loudest anecdote.
Without PopdockAI
- Export closed deals to a spreadsheet
- Work out win rates by source and type by hand
- Open the biggest losses for competitor notes
- Settle on the loudest story
With PopdockAI
- Closed deals are split into won and lost for you
- Win rate, deal size and rates by source and type are worked out
- Competitors and contacts on the largest losses are read
- Read only, with inference labelled and small samples called out
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Explain what was won and lost in the last `{lookback-days}` days (default 90), for owner `{owner}` (default: all), and what the losses had in common.
**Step 1: Pull closed deals**
Call `salesforce-get-opportunity` with `closed` true, `close-date.from` set to today minus `{lookback-days}` days, `close-date.to` today, `owner.contains` set to `{owner}` when given, and `max-records` 1000. Split the results on `won`.
**Step 2: Compare won against lost**
* Win rate by count and by amount.
* Average deal size, won against lost.
* Win rate by lead-source and by type.
* For the lost deals with the largest amounts (up to 15), call `salesforce-get-opportunity-competitor` with `opportunity-id`. Tally the competitor names and quote any recorded strengths.
* For the same deals call `salesforce-get-opportunity-contact-role` with `opportunity-id`. Note lost deals that had no contact roles or no primary contact.
**Step 3: Report**
* A summary table: won count, won amount, lost count, lost amount, win rate.
* Win rate by lead source and by type, best first.
* Competitors seen on lost deals, most frequent first.
* Three evidence-backed observations about why deals were lost. Label anything that is inference rather than data.
**Rules & Guidelines:**
* This prompt is read-only. Do not call any write tool: `salesforce-add-account`, `salesforce-add-contact`, `salesforce-add-lead`, `salesforce-add-opportunity`, `salesforce-add-case`, `salesforce-add-task`, `salesforce-add-asset`, `salesforce-add-campaign`, `salesforce-update-account`, `salesforce-update-contact`, `salesforce-update-lead`, `salesforce-update-opportunity`, `salesforce-update-case`, `salesforce-update-task` or `salesforce-update-asset`.
* Do not treat a missing competitor record as "no competitor"; say the data is not recorded.
**Validation:**
* If there are fewer than five closed deals in the window, report the raw list and say the sample is too small for rates.Who it's for
One answer, three teams that use it
Sales leaders
Base strategy on evidence
See win rates by source and type and the competitors behind the biggest losses.
Give me a win loss review for the last two quarters in Salesforce.
Sales managers
Coach with the team's real numbers
Review a rep's win rate and deal size against the losses that hurt most.
How does Sam Patel's win rate this year compare by lead source, and who did we lose to?
Product marketers
See which competitors keep showing up
Find the competitors recorded most often on lost deals to sharpen positioning.
Which competitors appear most on our largest lost Salesforce deals in the last 180 days?
How it works
What PopdockAI does when you ask
You optionally set a window and an owner, and your AI assistant compares won and lost deals. Observations are backed by the data, and nothing is changed.
01
Ask
You optionally set a lookback window and an owner.
02
Read
It reads closed Salesforce deals and splits them into won and lost.
03
Compare
It works out win rates and reads competitors and contacts on the largest losses.
04
Report
You get a summary, top competitors and three observations, inference labelled.
What PopdockAI provides
The tools behind the answer
Ready made tools for Salesforce and one secure connection to your AI tool. No code, no exports.
salesforce-get-opportunity
salesforce-get-opportunity-competitor
salesforce-get-opportunity-contact-role
This report is built from Get data tools only. PopdockAI applies the row, field and parameter rules your admin sets, and every query is written to the audit trail.
The outcome
Know what really wins and loses deals
Related use cases
More ways to put this data to work
One prompt template with infinite possibilities.
Your AI assistant adapts its approach, tone, and capabilities to match each unique context while you maintain a single, manageable workflow.
Join forward-thinking companies that are transforming their operations with intelligent, secure AI automation.

.webp)
