On a schedule
Send subscribers a short AI-written email on their chosen topic
Every morning, each active subscriber in your Airtable base gets a short email written for their topic, sent from your Gmail.
- Runs
- On a schedule
- Apps
- Airtable, Gmail
- AI
- Yes, uses the built-in AI allowance
- Access
- Airtable read+write; Gmail gmail.send
Send this to your assistant
Create a ClickRuntime automation: every morning, for each active subscriber in my Airtable Subscribers table, write a short email on their topic and send it from my Gmail, then update their last-sent date.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A language tutor wants to send students a short daily lesson: an idiom, a grammar point, a few words on their chosen theme. Writing a separate email for travel, business and food learners every morning is not realistic alongside teaching.
Keeping subscribers and their topics in Airtable and having each email written fresh for them turns a list into a personal daily touchpoint you could not keep up by hand.
What you get out of it
Each subscriber gets their own topic
Business learners get business vocabulary, travellers get travel phrases. Nobody reads content that is not for them.
Your list lives in Airtable
Add, pause or change a subscriber's topic by editing a row; the next morning's email follows.
Sent from your own address
Emails come from your Gmail, so replies reach you and the relationship stays personal.
A record of what was sent
The last-sent date on each row shows who is active and stops anyone getting two emails in one day.
How it works
What happens, step by step
Every morning ClickRuntime reads the active subscribers in your Airtable table.
It skips anyone who already received an email today.
AI writes a short email for each subscriber on their chosen topic.
The email is sent from your Gmail and the subscriber's last-sent date is updated in Airtable.
Before it runs live
- Connect Airtable
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
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
- Run it at a different time, more or less often, or only on weekdays
- 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 Airtable and Gmail steps into one automation
Under the hood
The code that runs this automation
import base64
from datetime import date
from email.message import EmailMessage
from clickruntime import on_trigger, credentials, http, ai
URL = "https://api.airtable.com/v0/appXXXXXXXXXXXXXX/Subscribers"
STYLE = "Write one English idiom for this topic, its meaning and two example sentences. Under 120 words, friendly tone."
@on_trigger
def run(event):
at = {"Authorization": f"Bearer {credentials.secret('AIRTABLE_API_KEY')}"}
g = {"Authorization": f"Bearer {credentials.connection('google', 'work')}"}
today = date.today().isoformat()
subs = http.get(URL, headers=at, params={"filterByFormula": f"AND({{Active}}, {{Last sent}} != '{today}')"}).json()["records"]
sent = 0
for s in subs:
f = s["fields"]
body = ai.generate(f"{STYLE}\nTopic: {f['Topic']}", max_output_tokens=300).text
m = EmailMessage(); m["To"] = f["Email"]; m["Subject"] = f"Today's {f['Topic']} idiom"; m.set_content(body)
http.post("https://gmail.googleapis.com/gmail/v1/users/me/messages/send", headers=g,
json={"raw": base64.urlsafe_b64encode(m.as_bytes()).decode()})
http.patch(f"{URL}/{s['id']}", headers=at, json={"fields": {"Last sent": today}})
sent += 1
return {"sent": sent}FAQ
Common questions
How does someone subscribe?
Can I control the style of the emails?
Can subscribers get emails weekly instead of daily?
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
Get new AI grants you qualify for by email
Each day you get an email with any newly listed AI grants, a note on whether you look eligible, and every grant saved in Airtable.
See how it worksGet an evening email of today's new Airtable orders
Each evening you get one email listing the day's new orders in Airtable with the total value.
See how it worksEmail 20 new Airtable leads every weekday
Each weekday, 20 new leads from Airtable get a personal email from your Gmail and are marked Contacted.
See how it worksKeep exploring
Set up “Send subscribers a short AI-written email on their chosen topic” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.