Quick overview
This workflow watches HubSpot deal stage changes, and when a deal is marked closed-lost it uses OpenAI to turn the loss details into blameless retro discussion prompts, dedupes them against recent TeamRetro parked items, parks new prompts in TeamRetro, and logs a “Queued” activity back to the deal.
How it works
- Triggers in HubSpot whenever a deal’s
dealstage property changes.
- Checks whether the new stage equals your closed-lost stage ID, then fetches the full deal record from HubSpot.
- Extracts key fields (name, amount, loss reason, notes, URL) and skips deals below the configured minimum amount.
- Sends the loss reason and notes to OpenAI (GPT-5 Mini) to generate up to two neutral, blameless discussion prompts and a parkable flag.
- If parkable, pulls the last 30 days of TeamRetro parked items and deduplicates the new prompts by token overlap.
- Creates new parked items in TeamRetro for non-duplicate prompts and writes a completed “Queued for win/loss retro” task to the HubSpot deal timeline with the prompts.
Setup
- Add HubSpot credentials for the trigger and a HubSpot private app token with deal read/write and engagement write permissions, then update the closed-lost stage ID used for filtering.
- Add an OpenAI credential and ensure the selected model (gpt-5-mini) is available in your account.
- Replace
REPLACE_WITH_TEAM_ID with your TeamRetro team ID and confirm your plan supports the parking lot (parked items) feature.