Skip to content

Every 10 minutes

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

Runs
Every 10 minutes
Apps
HubSpot, Slack
AI
Optional
Access
HubSpot crm.objects.contacts.read; Slack chat:write

Send this to your assistant

Create a ClickRuntime automation: when a new HubSpot contact has a company size over 50 or a lead score over 70, post them to #sales.

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 B2B software company gets dozens of sign-ups a day. Most are students and one-person shops; a few are from companies that could become large accounts. In a busy CRM those few look the same as everyone else, and by the time a rep notices them, the prospect has already talked to someone else.

This automation picks out the contacts worth a fast reply and puts them in front of the sales team in Slack, so the best leads get a response the same hour they arrive.

What you get out of it

  • The best leads get answered first

    Reps stop scrolling through every new contact and start with the ones most likely to buy.

  • Speed where it counts

    Replying within the hour makes a real difference to whether a prospect books a call. An alert in #sales makes that possible.

  • Your own definition of a good lead

    Company size and lead score thresholds are yours to set, so the alerts follow how your team already qualifies leads.

  • One click to the record

    Each message links to the contact in HubSpot, so the rep can see the full history before reaching out.

How it works

What happens, step by step

  1. Every 15 minutes ClickRuntime checks HubSpot for contacts created since the last check.

  2. It keeps only those with a company size over 50 or a lead score over 70.

  3. It skips anyone it has already posted.

  4. Each good lead is posted in your #sales Slack channel with a link to their HubSpot record.

Before it runs live

  • Connect HubSpot
  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)

What you get

RunsEvery 10 minutes
Post high-quality HubSpot leads to Slacktoday, 9:00Succeeded
Slack · #sales🔥 Jordan Lee, Head of Ops at Northwind Logistics (250 staff, score 82)

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
  • 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

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.
slack_alert_for_high_quality_new_leads.pyexample
import time
from clickruntime import on_trigger, credentials, http, state, notify, report_fetched

@on_trigger
def run(event):
    since = state.get("since") or int(time.time() * 1000) - 900000
    now = int(time.time() * 1000)
    body = {"filterGroups": [{"filters": [{"propertyName": "createdate", "operator": "GTE", "value": since}]}],
            "properties": ["firstname", "lastname", "jobtitle", "company", "numemployees", "hubspotscore"], "limit": 100}
    res = http.post("https://api.hubapi.com/crm/v3/objects/contacts/search", json=body,
                    headers={"Authorization": f"Bearer {credentials.secret('HUBSPOT_API_KEY')}"}).json()["results"]
    report_fetched(len(res))
    if not res:
        return {"new": 0}
    hot = 0
    for c in res:
        p = c["properties"]
        if int(p.get("numemployees") or 0) > 50 or float(p.get("hubspotscore") or 0) > 70:
            notify.slack(f"🔥 {p.get('firstname')} {p.get('lastname')}, {p.get('jobtitle')} at {p.get('company')} "
                         f"({p.get('numemployees')} staff, score {p.get('hubspotscore')})\n"
                         f"https://app.hubspot.com/contacts/your-portal-id/record/0-1/{c['id']}", channel="#sales")
            hot += 1
    state.set("since", now)
    return {"new": len(res), "posted": hot}

FAQ

Common questions

Can I use other fields to decide who is a good lead?
Yes. Industry, country, job title or any custom property in HubSpot can be part of the rule, alone or together with company size and score.
Will the same contact be posted twice?
No. Each contact is posted once, even if their score changes later.
What does the Slack message include?
Name, job title, company, company size, lead score and a link to the contact in HubSpot.
What permissions does it need?
HubSpot crm.objects.contacts.read; Slack chat:write. Nothing else in your accounts is used.
Does it need AI?
No, but you can ask for an AI step (for example a summary). It then uses ClickRuntime's built-in 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 “Post high-quality HubSpot leads to Slack” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.