Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / CRM & Sales Pipeline

CRM & Sales Pipeline

Create blameless win/loss retro prompts from closed-lost HubSpot deals with OpenAI and

When something happens in a connected app, it updates your CRM with OpenAI / ChatGPT using HubSpot, Team Retro.

What it does

## TeamRetro: Park lost HubSpot deals as win/loss retro prompts ### How it works When a HubSpot deal moves to closed-lost, the workflow fetches the deal, skips anything under a value floor, and asks one OpenAI call to turn the loss notes into at most two discussion prompts. CRM notes are attributed and blamey — "rep missed the demo", "champion went dark" — so parking them verbatim turns the retro into a blame session. The system prompt forces neutral questions about process, product, pricing or market instead, and that transform is the point of this template. Surviving prompts are checked by word overlap against the last 30 days of parked items, parked in TeamRetro for the sales team's win/loss retro, then logged back on the deal timeline. ### Setup steps - Map your own closed-lost stage ID in "Closed Lost?". The default pipeline uses closedlost, but a custom or renamed stage gets a different internal ID, often numeric. Find yours under HubSpot → Settings → Objects → Deals → Pipelines. - Two HubSpot credentials: a developer app for the trigger, a private app token with crm.objects.deals.read and write for the deal nodes. - Add an OpenAI credential to "OpenAI GPT-5 Mini", then replace REPLACE_WITH_TEAM_ID on both TeamRetro nodes. The parking lot is a plan feature — a 403 means it is not on your plan. - Sample data is pinned on the trigger and "Get Deal", so Execute workflow replays a lost deal before you connect HubSpot. ### Customization minDealAmount in "Extract Deal Facts" is the floor (default 5000, deal currency) — set it to 0 to park every loss. THRESHOLD in "Token-Overlap Dedupe" tunes duplicate sensitivity. For the win side, duplicate the branch on your closed-won stage and reframe the prompt.

The steps

  1. When Deal Stage Changes
  2. Closed Lost?
  3. Get Deal
  4. Extract Deal Facts
  5. Worth a Retro Slot?
  6. Draft Retro Prompts
  7. OpenAI GPT-5 Mini
  8. Parse Structured Output
  9. Parkable?
  10. Get Recent Parked Items
  11. Token-Overlap Dedupe
  12. Already Parked?
  13. Park Discussion Prompt
  14. Log "Queued" on Deal

Similar automations