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.
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
When your form or app sends ClickRuntime a new entry, it is received straight away.
ClickRuntime picks out the person's name, email address and message.
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
Build your own
Need it to work differently?
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
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?
How does it know who to email?
Will it send duplicate emails if the webhook fires twice?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Send personal emails on schedule from your Gmail
Birthday wishes, reminders or a small batch of personal emails go out from your own address on the right day.
See how it worksLabel new emails automatically
New mail is sorted into labels like Inquiry, Invoice and Newsletter within minutes of arriving.
See how it worksGet draft replies to emails that need an answer
Emails that need a reply get a draft in the same thread, ready for you to edit and send.
See how it worksKeep exploring
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.