Skip to content

The moment it happens

Email new leads and alerts from your own address

When a form or tool sends a lead or error to your link, the right email goes out from your Gmail straight away.

Runs
The moment it happens
Apps
Gmail
AI
Optional
Access
gmail.send

Send this to your assistant

Create a ClickRuntime automation: give me a link my contact form can send to. For each new lead, send them a short welcome email from my Gmail and email me their name, email and message.

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

Plenty of tools can send a webhook, but few can send a decent email. A monitoring service posts a JSON error, a form tool sends a new lead payload, a payment system reports a failure, and the data ends up in a log that nobody reads. The error that matters arrives as machine text, and the lead who just asked for a quote receives nothing from you at all.

Anything that can post to your link triggers an email the moment it does. The payload is turned into a readable message and sent through your own Gmail, either to you as an alert or to the person named in the payload, such as a lead. ClickRuntime's built-in AI can optionally personalise the wording.

Developers wiring up error alerts, marketers answering form leads and small teams connecting tools that have no email feature use it. It also suits anyone who connects several small tools together.

What you get out of it

  • Errors reach a person, not a log

    An error posted to your link arrives as an email you will actually read, so a failing job or a broken integration gets attention the day it begins. Fixing issues early limits the damage and the support work later.

  • Leads get a reply from a real address

    Sending from your own Gmail means the response comes from you, which looks personal and avoids the spam folder problems of generic notification senders. Personal-looking mail gets opened far more often.

  • Works with tools that cannot send email

    Any system that can call a webhook can now notify people, so you are not restricted to products that include email notifications of their own. Existing tools become far more useful with this one small connection.

  • Immediate reaction

    Because the email goes out when the event arrives, a lead hears from you in seconds and an error is flagged while there is still time to limit the impact.

  • Messages can be written for the audience

    The optional AI step turns raw data into a friendly note for a lead or a clear explanation for a teammate, instead of dumping fields into the body. Better wording means better responses from the people who receive it.

How it works

What happens, step by step

  1. When your form or app sends ClickRuntime a new entry, it is received straight away.

  2. ClickRuntime picks out the person's name, email address and message.

  3. An email with those details is sent from your own Gmail address to you, with the person's name in the subject.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Email new leads and alerts from your own addressjust nowSucceeded
Gmail · New lead: Jamie OrtizName: Jamie Ortiz Email: jamie@northwind.example Do you work with teams outside the US?

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 Slack
  • Combine it with other Gmail 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.
alert_email_from_any_webhook_errors_form_leads.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
import base64
from email.message import EmailMessage
from clickruntime import on_event, credentials

ME = "me@example.com"

def send(gmail, to, subject, text):
    msg = EmailMessage()
    msg["To"], msg["Subject"] = to, subject
    msg.set_content(text)
    gmail.users().messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(msg.as_bytes()).decode()}).execute()

@on_event
def handle(event):
    lead = event.json or {}
    gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    first = (lead.get("name") or "there").split()[0]
    send(gmail, lead["email"], "Thanks for getting in touch",
         f"Hi {first},\n\nThanks for your message. I'll get back to you within a day.\n\nBest,\nAlex")
    send(gmail, ME, f"New lead: {lead.get('name')}",
         f"Name: {lead.get('name')}\nEmail: {lead['email']}\n\n{lead.get('message', '')}")
    return {"welcomed": lead["email"]}

FAQ

Common questions

What can send a webhook to it?
Any service or script that can make an HTTP POST, including form builders, monitoring tools, payment platforms and your own code. You paste the generated URL into that tool's webhook setting. Check that tool's documentation for the setting.
How does it know who to email?
Either the address is fixed, for example your own, or it is taken from a field in the payload such as email. You tell your AI assistant which field to use and what to do if it is missing.
Will it send duplicate emails if the webhook fires twice?
Some services retry, which can send the same payload more than once. A check on an ID in the payload can skip repeats, and your AI assistant can add it if you know your tool retries.
What permissions does it need?
gmail.send. 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 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 “Email new leads and alerts from your own address” from your assistant

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