Skip to content

The moment it happens

Add new customers to HubSpot and get a Telegram alert

Every new sign-up or sale is added to HubSpot as a contact and you get a Telegram message straight away.

Runs
The moment it happens
Apps
HubSpot, Telegram
AI
Not needed
Access
crm.objects.contacts.write; Telegram bot

Send this to your assistant

Create a ClickRuntime automation: give me a link my sign-up form or checkout can send to. Add each new customer to HubSpot and send me a message on Telegram.

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 founder running a small online product wants two things when someone signs up or buys: the person in the CRM so follow-up and onboarding can happen, and a ping on their phone, because in the early days every new customer is worth knowing about.

This takes each sign-up or sale as it happens, creates or updates the contact in HubSpot with what they bought, and sends a short Telegram message from your bot to you or your team's group.

What you get out of it

  • Every customer is in HubSpot

    Sign-ups and buyers are added straight away, so onboarding emails and follow-up have someone to go to.

  • You hear about it on your phone

    A Telegram message arrives within seconds, wherever you are.

  • Repeat buyers aren't duplicated

    Contacts are matched by email, so a second purchase updates the same record.

  • The team can share the moment

    Send alerts to a Telegram group, and everyone sees new customers as they arrive.

How it works

What happens, step by step

  1. When someone signs up or buys, your form or checkout sends their details to ClickRuntime straight away.

  2. It creates the person in HubSpot, or updates them if they're already a contact.

  3. It marks them as a customer and records their plan.

  4. A short message with their name and plan is sent to you or your group on Telegram.

Before it runs live

  • Connect HubSpot
  • Connect Telegram
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Add new customers to HubSpot and get a Telegram alertjust nowSucceeded
Telegram · Sales botNew customer: Hannah Wells (Acme Bakery) Plan: Team, annual

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 Slack
  • Combine it with other HubSpot and Telegram 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.
new_customer_hubspot_contact_and_telegram_alert.pyexample
from clickruntime import on_event, credentials, http

CHAT_ID = "123456789"

def telegram(text, chat_id=CHAT_ID):
    http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/sendMessage", json={"chat_id": chat_id, "text": text}).raise_for_status()

@on_event
def handle(event):
    data = event.json or {}
    email = (data.get("email") or "").strip().lower()
    if not email:
        return {"skipped": "no email"}
    props = {"email": email, "firstname": data.get("name", ""), "company": data.get("company", ""),
             "lifecyclestage": "customer", "plan": data.get("plan", "")}
    r = http.post("https://api.hubapi.com/crm/v3/objects/contacts/batch/upsert",
                  json={"inputs": [{"idProperty": "email", "id": email, "properties": props}]},
                  headers={"Authorization": f"Bearer {credentials.connection('hubspot', 'work')}"})
    r.raise_for_status()
    telegram(f"New customer: {props['firstname']} ({props['company'] or email})\nPlan: {props['plan'] or 'n/a'}")
    return {"contact": r.json()["results"][0]["id"]}

FAQ

Common questions

What can send sign-ups to it?
Any sign-up form, checkout or app that can send its data to a web link when someone signs up or pays.
What does the Telegram message include?
The customer's name, email, company and plan or amount if your form sends them. You can choose to leave out personal details if alerts go to a group.
Does it create a deal as well?
It can. If your checkout sends an amount, a won deal can be created and linked to the contact, so revenue shows up in HubSpot too.
What permissions does it need?
crm.objects.contacts.write; Telegram bot. 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 for each event the app sends.
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 “Add new customers to HubSpot and get a Telegram alert” from your assistant

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