Every 15 minutes
Alert Slack about urgent HubSpot tickets left open
High-priority HubSpot tickets open for more than 4 hours are flagged in your support channel so someone picks them up.
- Runs
- Every 15 minutes
- Apps
- HubSpot, Slack
- AI
- Not needed
- Access
- HubSpot tickets; Slack chat:write
Send this to your assistant
Create a ClickRuntime automation: every 15 minutes, find high-priority HubSpot tickets that have been open longer than 4 hours and alert #support.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A support team promises customers a first answer on urgent issues within four hours. On a busy afternoon a high-priority ticket from a key account sits unassigned in the queue, and nobody notices until the customer emails the account manager to complain.
An alert in Slack when an urgent ticket has waited too long gives the team a chance to act before the customer chases it. Support leads use it to keep promised response times without watching the queue all day.
What you get out of it
Urgent issues do not slip through
Tickets that have sat too long are raised in the channel the team watches, so a busy queue does not hide them.
Fewer escalations from customers
Picking up a stalled ticket before the customer chases it protects the relationship and the account.
One alert per ticket
Each overdue ticket is posted once, not every 15 minutes, so the channel stays readable.
A clear picture for support leads
The alerts show which tickets run late and how often, which helps with staffing and setting realistic promises.
How it works
What happens, step by step
Every 15 minutes ClickRuntime looks for high-priority HubSpot tickets that are still open.
It picks out the ones that were opened more than 4 hours ago.
It skips any ticket it has already alerted about.
Each overdue ticket is posted in your #support Slack channel with its subject and a link.
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
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- 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
import time
from clickruntime import on_trigger, credentials, http, state, notify, report_fetched
CLOSED_STAGE = "4"
@on_trigger
def run(event):
cutoff = int((time.time() - 4 * 3600) * 1000)
body = {"filterGroups": [{"filters": [
{"propertyName": "hs_ticket_priority", "operator": "EQ", "value": "HIGH"},
{"propertyName": "hs_pipeline_stage", "operator": "NEQ", "value": CLOSED_STAGE},
{"propertyName": "createdate", "operator": "LT", "value": cutoff}]}],
"properties": ["subject", "createdate"], "limit": 100}
tickets = http.post("https://api.hubapi.com/crm/v3/objects/tickets/search", json=body,
headers={"Authorization": f"Bearer {credentials.secret('HUBSPOT_API_KEY')}"}).json()["results"]
alerted = set(state.get("alerted") or [])
new = [t for t in tickets if t["id"] not in alerted]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
for t in new:
notify.slack(f"Urgent ticket open over 4h: {t['properties']['subject']}", channel="#support")
alerted.add(t["id"])
state.set("alerted", list(alerted)[-1000:])
return {"alerted": len(new)}FAQ
Common questions
Which tickets count as high priority?
Can I use a different time limit?
Does it stop alerting once a ticket is closed?
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
Check new HubSpot contacts and companies for bad data
New contacts with broken emails and new companies with dead websites are flagged in Slack before anyone works them.
See how it worksPost new HubSpot deals and stage changes in Slack
Your sales channel hears about every new deal and every stage move, with amount and owner.
See how it worksPost high-quality HubSpot leads to Slack
New HubSpot contacts from larger companies or with a high lead score show up in #sales within minutes, with a link to the record.
See how it worksKeep exploring
Set up “Alert Slack about urgent HubSpot tickets left open” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.