Skip to content

On a schedule

Email yourself yesterday's Smartlead numbers

Each morning a table shows sends, opens and replies for every active campaign.

Runs
On a schedule
Apps
Smartlead
AI
Not needed
Access
API key

Send this to your assistant

Create a ClickRuntime automation: every weekday at 8am, email me a table of yesterday's sends, opens and replies for each active Smartlead campaign, sorted by replies.

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

An outbound lead or a founder running Smartlead campaigns checks results by opening each campaign's analytics page, selecting yesterday's date and reading numbers off several screens. With five campaigns active, that takes fifteen minutes every morning, and on busy days it does not happen. A campaign with a sudden reply drop or a spike in bounces runs for days before anyone looks, burning sender reputation and wasting a list that took real effort to build.

On the schedule you set, ClickRuntime lists your campaigns, fetches analytics for the previous day and emails a table with sends, opens and replies for each campaign. Everything is in one place at the same time every day, so a change in the pattern is visible at a glance.

Agencies sending on behalf of clients can use it to keep a daily record by campaign.

What you get out of it

  • Problems are noticed within a day

    A sharp drop in sends, a jump in bounces or no replies on a normally busy campaign shows up the next morning, instead of after a week of wasted outreach. Smaller issues, such as one inbox failing, are also easier to isolate when you spot them early.

  • Sender reputation is protected

    Rising bounce or low open numbers can signal a domain at risk. Catching the trend early lets you pause a campaign and fix the list before inbox providers start filtering you.

  • One table replaces five dashboards

    Seeing every campaign side by side makes comparison simple: which sequence is winning, which inbox is underperforming, and where to put the next batch of leads. Nobody has to remember which campaign lives on which screen.

  • A daily history builds up

    The emails form a dated record of performance. When someone asks what happened on a particular week or after a template change, you can look it up in your mailbox.

  • Clients and teammates stay informed

    Forward or send the same email to a partner or client, and they see the same figures you do, which reduces ad-hoc requests for screenshots and status updates. They also see consistent definitions of each metric, which avoids confusion over differing numbers.

How it works

What happens, step by step

  1. Every morning at 8, ClickRuntime gets the list of your active Smartlead campaigns.

  2. For each campaign it fetches yesterday's sends, opens and replies.

  3. It sorts the campaigns by replies, best first, and emails you a simple table with one row per campaign.

Before it runs live

  • Connect Smartlead

What you get

RunsOn a schedule
Email yourself yesterday's Smartlead numberstoday, 9:00Succeeded
Email · Smartlead statsOps leaders EU Sent 420 Opens 198 Replies 14 Agency outbound v2 Sent 310 Opens 121 Replies 6

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 Smartlead 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_campaign_stats_email.pyexample
from datetime import date, timedelta
from clickruntime import on_trigger, credentials, notify, http

API = "https://server.smartlead.ai/api/v1"

@on_trigger
def run(event):
    key = credentials.secret("SMARTLEAD_API_KEY")
    day = (date.today() - timedelta(days=1)).isoformat()
    campaigns = [c for c in http.get(f"{API}/campaigns", params={"api_key": key}).json()
                 if c.get("status") == "ACTIVE"]
    rows = []
    for c in campaigns:
        s = http.get(f"{API}/campaigns/{c['id']}/analytics-by-date",
                     params={"api_key": key, "start_date": day, "end_date": day}).json()
        rows.append((c["name"], int(s.get("sent_count", 0)), int(s.get("open_count", 0)), int(s.get("reply_count", 0))))
    rows.sort(key=lambda r: r[3], reverse=True)
    lines = [f"{'Campaign':<32}{'Sent':>6}{'Opens':>7}{'Replies':>9}"]
    lines += [f"{n[:31]:<32}{s:>6}{o:>7}{r:>9}" for n, s, o, r in rows]
    notify.email_me(f"Smartlead stats for {day}", "\n".join(lines) if rows else "No active campaigns.")
    return {"campaigns": len(rows)}

FAQ

Common questions

What time frame do the numbers cover?
They cover the previous full day, so a morning email reports yesterday's totals for every campaign. Weekly or custom ranges can be set up too, if you prefer a longer window for slower campaigns. Daily is the default.
Does it include reply rate and bounce rate?
Yes, in addition to sends, opens and replies, it can add bounces, unsubscribes and calculated rates such as replies divided by sends. Tell the setup which columns you want and they appear in the table.
Can the email go to a client?
Yes. Add their address as a recipient. Since the table shows campaign names and numbers, make sure the campaign names are suitable for a client to read before including them. You can also use a separate address for a client.
What permissions does it need?
API 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 each time it runs (on a schedule). 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 “Email yourself yesterday's Smartlead numbers” from your assistant

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