SALES
Margin-aware deal-desk reviewer that drafts an approval recommendation
When a discount is requested, an agent pulls the deal's cost and margin data, checks it against discount policy.
How it runs
The automated pipeline, trigger to output.
- TriggerOpportunity flagged for discount reviewSalesforce
- ActionPull line items and cost/margin dataSalesforce
- ActionLook up product costs in pricing tablePostgres
- LogicEvaluate against discount and margin-floor policy
- OutputPost reasoned recommendation to deal-desk SlackSlack
What it does
This agent-driven workflow does the analysis a deal-desk analyst would do before a human signs off. On a discount request it gathers the opportunity's product mix, list price, cost, and resulting margin, evaluates the ask against your discount and floor-margin policy, and writes a clear recommendation — approve as-is, approve with conditions, or escalate — with the reasoning spelled out. The recommendation is posted to Slack for the approver to act on.
When to use it
Use it when discount decisions need margin context that lives across systems and you want approvers to start from an informed recommendation instead of a raw percentage. Good for complex product catalogs where the true cost of a discount isn't obvious.
How it works
- 1A Salesforce opportunity flagged for discount review triggers the agent.
- 2The agent pulls line items, costs, and margin data from the opportunity and a Postgres pricing table.
- 3It evaluates the request against discount tiers and the minimum-margin floor.
- 4It composes a recommendation with rationale and any suggested conditions.
- 5It posts the recommendation and a decision prompt to the deal-desk Slack channel.
Set it up
What you configure once, before turning it on.
- 1Connect SalesforceAccounts, opportunities, cases.
- 2Connect PostgresAny Postgres URL — query, write, migrate.
- 3Connect SlackChannels, DMs, threads, mentions.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Sales workflows
API-Usage Surge PQL Router
When an account's API call volume surges past a rolling baseline in the product DB, it qualifies the account as a product-qualified expansion lead.
Seat-Limit Approaching Upsell Alert
Fires the moment an account's active-seat count crosses 90% of its contracted limit in the product database.
Enrich new MAP steps with Salesforce deal context on creation
When a new card is added to the mutual action plan Trello board, it looks up the linked Salesforce opportunity and writes deal owner, amount, and close date onto the card…
Power-Feature Adoption Expansion Digest
Each Monday, finds accounts that started heavily using a premium or add-on feature in BigQuery, ranks them by expansion potential.
Send buyers a weekly mutual action plan health recap
Each week it reads the MAP Trello board, computes completed, on-track, and overdue steps, and emails the buyer champion a clean recap of progress and what is due next.
Escalate to the deal team when the buyer side of a MAP stalls
Detects when buyer-owned mutual action plan steps have been idle past their due date and escalates with a Slack alert to the AE plus an email summary to the account executive's…
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
