Skip to content

The moment it happens

Get an email when a team creates an organization

You hear about each new organization as soon as it's created, so you can reach out to the team.

Runs
The moment it happens
Apps
Clerk
AI
Not needed
Access
secret key

Send this to your assistant

Create a ClickRuntime automation: whenever someone creates a new organization in Clerk, email me the organization name and the person who created it.

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

When an app sells to teams rather than individuals, the moment someone creates an organization is often the best buying signal you have. A person who signs up alone may be exploring. A person who creates an organization named after their company is setting up for colleagues, and that is when a founder or an account executive should be reaching out.

Whenever Clerk reports that an organization was created, this sends you an email with the organization's details. It arrives within moments, so you can see a team form while the creator is still inside your product.

It is mainly useful for B2B products on Clerk with a self-serve free or trial tier, where sales needs to know which signups are really teams. The email goes out as the event arrives, so the details are as current as the Clerk record itself, including the name the creator typed in.

What you get out of it

  • Spot team accounts, not just users

    A new organization is a stronger signal than a new user. Getting an email for each one lets sales concentrate effort on groups likely to invite colleagues and eventually pay. Teams are where most revenue comes from in B2B products, so each one is worth a short, personal look from someone on the commercial side.

  • Reach out while setup is underway

    A short, friendly note sent in the first hour, offering help with onboarding, lands far better than one sent next week when the creator has already stalled or switched to a competitor.

  • Understand what kinds of companies sign up

    Reading the organization names as they arrive gives you a qualitative sense of your audience. You may notice a cluster of agencies or schools you had not planned for. It can reveal customer segments that merit their own landing page, pricing option or integration, long before analytics shows them.

  • Catch spam organizations quickly

    If an odd batch of organizations appears with nonsense names, you notice within minutes. Cleaning them up early keeps analytics and billing tidy and stops abuse before it spreads. A quick purge keeps your user and organization numbers honest, which matters when you report growth to investors.

  • Keep the founder close to the product

    Early-stage founders often want to see every team that arrives. An email per organization is a lightweight way to stay in touch with customers without building an internal dashboard. It keeps the founding team aware of who is arriving, even when no one has time to read through the Clerk dashboard.

How it works

What happens, step by step

  1. When a new organization is created in Clerk, Clerk tells ClickRuntime straight away.

  2. You get an email with the organization's name and who created it, so you can reach out to the team.

  3. Each organization is reported once, when it is first created.

Before it runs live

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

What you get

RunsThe moment it happens
Get an email when a team creates an organizationjust nowSucceeded
Email · New organization: Acme LogisticsAcme Logistics was created by Jo Rivera (jo@acme.example).

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 Clerk 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_organization_alert.pyexample
from clickruntime import on_event, credentials, http, notify

@on_event
def handle(event):
    payload = event.json or {}
    if payload.get("type") != "organization.created":
        return {"sent": False}
    org = payload["data"]
    creator = http.get(f"https://api.clerk.com/v1/users/{org['created_by']}",
                       headers={"Authorization": f"Bearer {credentials.secret('CLERK_SECRET_KEY')}"}).json()
    email = (creator.get("email_addresses") or [{}])[0].get("email_address", "unknown")
    notify.email_me(f"New organization: {org['name']}",
                    f"{org['name']} was created by {creator.get('first_name') or ''} {creator.get('last_name') or ''} ({email}).")
    return {"sent": True}

FAQ

Common questions

Is this triggered by organizations or by users?
Only by organization creation events. Individual signups are a different Clerk event, and you can pair this with a new user alert if you want to be told about both. Pair it with the user alert for full coverage, since a person joining an existing organization produces a different event.
Which Clerk setup is needed?
Organizations must be enabled in your Clerk application, and you add a webhook endpoint in the Clerk dashboard using the URL ClickRuntime provides, subscribing to the organization created event. The webhook is added once in Clerk and runs from then on, with no ongoing maintenance on your side.
Can I send it to Slack instead of email?
Yes, the final step can post to a Slack channel instead. Tell your AI assistant where you want it and you will be shown the changed flow before it goes live. The email can include whatever fields the event carries, such as the organization name, slug and creating user.
What permissions does it need?
secret key. 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 “Get an email when a team creates an organization” from your assistant

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