Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Every 15 minutes ClickRuntime looks for high-priority HubSpot tickets that are still open.

  2. It picks out the ones that were opened more than 4 hours ago.

  3. It skips any ticket it has already alerted about.

  4. 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

RunsEvery 15 minutes
Alert Slack about urgent HubSpot tickets left opentoday, 9:00Succeeded
Slack · #supportUrgent ticket open over 4h: Acme Retail cannot process refunds at checkout

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
ticket_sla_alerts.pyexample
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?
Tickets with HubSpot's High priority setting. You can include other values if your team uses a custom priority list.
Can I use a different time limit?
Yes. Four hours is a common target for urgent tickets, but you can set any limit, and different limits for different priorities.
Does it stop alerting once a ticket is closed?
Yes. Closed tickets no longer match, and each ticket is only alerted once even if it stays open for days.
What permissions does it need?
HubSpot tickets; Slack chat:write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it checks. Checks that find nothing new and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.