Weekly
Review each week's lost HubSpot deals with AI in Slack
Every Friday your sales channel gets the common reasons deals were lost this week and ideas for which ones to revisit.
- Runs
- Weekly
- Apps
- HubSpot, Slack
- AI
- Yes, uses the built-in AI allowance
- Access
- HubSpot deals read; Slack chat:write
Send this to your assistant
Create a ClickRuntime automation: every Friday, analyse this week's closed-lost HubSpot deals and post the reasons and revival ideas in #sales.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A B2B sales team marks deals as lost and moves on. The reasons are typed into a field nobody reads again, so the same objections about price or a missing feature come up quarter after quarter without anyone noticing the pattern.
A short Friday review turns those notes into something the team can act on. Patterns in lost deals reach product and pricing conversations, and the deals worth another try get a named next step.
What you get out of it
Patterns become visible
One lost deal looks like bad luck. Five lost to the same competitor feature in a week is a signal you can take to product or pricing.
Some lost deals come back
Deals lost on timing or budget often reopen next quarter. Revival ideas make sure someone follows up at the right moment.
Lost reasons get written properly
When the team knows the notes feed a weekly review, they write clearer reasons. The data improves over time.
Learning without a meeting
The review arrives in the channel, so everyone can read it in two minutes and reply in a thread.
How it works
What happens, step by step
Every Friday, ClickRuntime finds the HubSpot deals marked lost during the week.
It gathers each deal's name, amount and the reason your team recorded.
AI groups the reasons into common themes and suggests which deals are worth another try.
The review is posted in your #sales Slack channel.
Before it runs live
- Connect HubSpot
- Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Google Sheets
- Combine it with other HubSpot and Slack steps into one automation
Under the hood
The code that runs this automation
from datetime import datetime, timedelta, timezone
from clickruntime import on_trigger, credentials, http, ai, notify
@on_trigger
def run(event):
since = str(int((datetime.now(timezone.utc) - timedelta(days=7)).timestamp() * 1000))
body = {"filterGroups": [{"filters": [{"propertyName": "dealstage", "operator": "EQ", "value": "closedlost"},
{"propertyName": "closedate", "operator": "GTE", "value": since}]}],
"properties": ["dealname", "amount", "closed_lost_reason"], "limit": 100}
deals = http.post("https://api.hubapi.com/crm/v3/objects/deals/search", json=body,
headers={"Authorization": f"Bearer {credentials.secret('HUBSPOT_API_KEY')}"}).json().get("results", [])
if not deals:
notify.slack("No deals were lost this week.", channel="#sales")
return {"lost": 0}
lines = "\n".join(f"{d['properties']['dealname']} ({d['properties'].get('amount')}): {d['properties'].get('closed_lost_reason') or 'no reason'}"
for d in deals)
review = ai.generate("Group these lost deals into common reasons, then suggest which to revisit and how:\n" + lines,
max_output_tokens=900).text
notify.slack(f"Lost deals this week ({len(deals)}):\n{review}", channel="#sales")
return {"lost": len(deals)}FAQ
Common questions
Where does it get the reasons from?
What is a revival idea?
Does it change anything in HubSpot?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Spot customers at risk of churning from support tickets
Each morning #cs gets a short list of customers whose recent tickets suggest they might leave, with the reason for each.
See how it worksPost a weekly HubSpot leads and revenue summary in Slack
Every Monday your sales channel sees last week's new contacts, stage changes and won deals in one short message.
See how it worksFlag HubSpot deals that have gone quiet
Every morning your sales channel lists deals with no activity in 21 days, with the owner tagged so they can follow up.
See how it worksKeep exploring
Set up “Review each week's lost HubSpot deals with AI in Slack” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.