/
/
See where Salesforce quotes are giving margin away
For sales leaders and deal desks who want heavy discounts and inconsistent pricing across quotes found, by asking their AI assistant.
On this page
Connector
Connect Salesforce, pick your AI tool and paste the prompt.
The problem
Discounts creeping up one quote at a time
Discounting creeps up one quote at a time. Without checking every Salesforce quote line against list price, nobody sees a rep giving away 40 percent, the same product quoted at wildly different prices or lines above list by mistake.
Without PopdockAI
- Export quote lines and list prices
- Work out each line's discount in a spreadsheet
- Compare prices for the same product by hand
- Notice the margin loss after deals close
With PopdockAI
- Each line's discount is worked out against list price
- Missing list prices are looked up in the price book
- Heavy, inconsistent and above list pricing is flagged
- Read only, with the heaviest discounting by product and account
The prompt
Use this prompt
Copy it into any AI tool connected to PopdockAI. Swap the values in braces for your own.
**Objective:** Audit discounting on quotes created in the last `{lookback-days}` days (default 30), flagging lines discounted more than `{max-discount-percent}` percent (default 20).
**Step 1: Pull quotes**
Call `salesforce-get-quote` with `created-date.from` set to today minus `{lookback-days}` days and `max-records` 200.
**Step 2: Check lines**
For each quote, call `salesforce-get-quote-line-item` with `quote-id`. For each line, the discount is 1 minus sales-price divided by list-price (or the discount field when present). When list-price is missing, call `salesforce-get-price-book-entry` with `product-id` and `active` true to find it.
Flag:
* lines discounted more than `{max-discount-percent}` percent
* the same product quoted at very different prices across quotes
* lines priced above list
* products with no active price book entry
**Step 3: Report**
* Quotes reviewed, lines reviewed, average discount.
* A table of flagged lines: quote number, account, product, list price, sales price, discount percent, flag.
* The products and accounts with the heaviest average discount.
**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`.
**Validation:**
* If no quotes were created in the window, say so and stop.Who it's for
One answer, three teams that use it
Sales leaders
Protect margin before deals close
See which products and accounts carry the heaviest discounts while there is still time to step in.
Which Salesforce quotes this month have discounts over 30 percent?
Deal desk
Catch inconsistent pricing
Spot the same product quoted at very different prices and lines priced above list by mistake.
Audit quote discounts from the last 60 days and show products quoted at inconsistent prices.
Finance business partners
Track average discount over time
Get totals and the average discount across quotes for a margin review.
What was the average discount on Salesforce quotes last quarter, and which accounts got the most?
How it works
What PopdockAI does when you ask
You optionally set a window and a threshold, and your AI assistant audits recent quote lines for discounting. It only reads, so no quote is changed.
01
Ask
You optionally set a lookback window and a discount threshold.
02
Read
It reads recent quotes and their lines, finding list price where it is missing.
03
Flag
It flags heavy discounts, inconsistent prices, lines over list and unpriced products.
04
Report
You get totals, flagged lines and the heaviest discounting by product and account.
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-quote
salesforce-get-quote-line-item
salesforce-get-price-book-entry
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
See where margin is given away, and by whom
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)
