Cleanup Deals
Standardize deal data to make pipeline reporting accurate. Test deals, missing amounts, and stale opportunities distort forecasts and pipeline metrics.
The fix for most bad deal data is a decision only the deal owner can make: is this deal alive, what is it worth, when will it close, why was it lost. So the scripted path here finds the problems precisely and puts them in front of the right person. It does not make those decisions for them.
Prerequisites
- A HubSpot service key (
HUBSPOT_ACCESS_TOKENin.env; an existing legacy private app token also works) with: crm.objects.deals.readandcrm.objects.owners.read(all stages)crm.objects.contacts.write(HubSpot gates task creation on it; review-task mode only)crm.objects.deals.write(reviewed-deletion mode only)- Python 3.10+ with