Skip to content

Daily

Get 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.

Runs
Daily
Apps
Airtable, Gmail
AI
Not needed
Access
Airtable read; Gmail gmail.send

Send this to your assistant

Create a ClickRuntime automation: every evening, email me a summary of today's new orders in Airtable with totals.

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 small wholesaler takes orders through a form that feeds Airtable. The owner wants to know how each day went, but opening the base on his phone and filtering by date is fiddly, so most evenings he does not bother.

A short email at the end of the day gives him the count, the total and the list of orders. He knows where the business stands without opening anything.

What you get out of it

  • Know how the day went

    The count and total arrive in one email. You can see a strong or quiet day at a glance.

  • Spot problems early

    An unusually low day, a missing regular customer or a very large order stands out when you see the list every evening.

  • No logins or filters

    The summary comes to you, so you do not need to remember how the base is filtered.

  • A daily record in your inbox

    Each email is a dated snapshot you can search later when comparing weeks.

How it works

What happens, step by step

  1. Every evening, ClickRuntime reads the orders created in your Airtable base today.

  2. It lists each order with the customer and value.

  3. It adds up the total value of the day's orders.

  4. The summary is sent to you by email.

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

RunsDaily
Get an evening email of today's new Airtable orderstoday, 9:00Succeeded
Email · Today's ordersToday's orders: 7 (4,215.00). Northwind Cafe: 860.00, Acme Grocers: 1,240.00

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

  • Run it at a different time, more or less often, or only on weekdays
  • 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 Airtable and 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.
daily_email_summary_of_new_airtable_records.pyexample
import base64
from email.message import EmailMessage
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http

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_trigger
def run(event):
    records = http.get("https://api.airtable.com/v0/appYourBaseId/Orders",
                       headers={"Authorization": f"Bearer {credentials.secret('AIRTABLE_API_KEY')}"},
                       params={"filterByFormula": "IS_SAME(CREATED_TIME(), TODAY(), 'day')"}).json()["records"]
    total = sum(float(r["fields"].get("Total") or 0) for r in records)
    lines = [f"{r['fields'].get('Customer')}: {r['fields'].get('Total')}" for r in records]
    text = f"{len(records)} new orders, total {total:,.2f}\n\n" + ("\n".join(lines) or "No orders today.")
    gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    send(gmail, "me", f"Today's orders: {len(records)} ({total:,.2f})", text)
    return {"orders": len(records), "total": total}

FAQ

Common questions

How does it know which orders are new today?
It uses the time each record was created in Airtable, so orders added today are included even if someone edited them later.
Which fields appear in the email?
Customer, order value and any other fields you choose, such as product or status. The total is calculated from the order value field.
Will it email me on days with no orders?
Yes, with a short note that no orders came in, so you know the check ran.
What permissions does it need?
Airtable read; Gmail gmail.send. 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 each time it runs (daily). Checks that find nothing to do and stop right away aren't counted.
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 evening email of today's new Airtable orders” from your assistant

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