Skip to content

Fridays at 17:00

Weekly revenue summary from Stripe

Every Friday at 17:00 you get an email with the week's revenue, new customers and cancellations.

Runs
Fridays at 17:00
Apps
Stripe, Email to you
AI
Not needed
Access
Stripe read-only restricted key; email to you

Send this to your assistant

Create a ClickRuntime automation: every Friday at 5pm, email me this week's Stripe revenue, the number of new customers and how many subscriptions were cancelled.

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

Most founders and finance leads know their revenue roughly, but not this week's number, how it compares with last week, or how many customers cancelled. Getting those numbers means logging into Stripe, setting date filters and doing the sums by hand, so it often doesn't happen until the end of the month.

This template does the sums for you every Friday and sends them to your inbox: revenue, new customers and cancellations, with the change from last week. You end each week knowing exactly where the business stands.

What you get out of it

  • Spot trends early

    A drop in revenue or a rise in cancellations shows up in the first week, not at the end of the quarter, when it is much harder to fix.

  • No dashboards to check

    The numbers arrive in your inbox. Nobody has to remember to open Stripe or build a report.

  • One consistent number

    The same calculation runs every week, so comparisons are fair and the team stops arguing about which figure is right.

  • Easy to share

    Forward the email to co-founders or investors, or ask your assistant to send it to the whole team.

  • Safe with your Stripe data

    A read-only key is enough. The automation can't issue refunds, change prices or touch customers.

How it works

What happens, step by step

  1. On Friday at 17:00 in your timezone, the script reads the week's charges and subscriptions from Stripe.

  2. It totals revenue and counts new customers and cancellations.

  3. It emails you the numbers, compared with the previous week.

Before it runs live

  • Save a restricted Stripe key (read-only) as STRIPE_API_KEY

What you get

RunsFridays at 17:00
Weekly revenue summary from Stripetoday, 9:00Succeeded
Email · Weekly numbersWeek 41: $18,240 revenue (+3.1%), 9 new customers, 4 cancellations.

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 Stripe and Email to you 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.
weekly_stripe_revenue.pyexample
import stripe, time
from clickruntime import on_trigger, notify, state, credentials

@on_trigger
def run(event):
    stripe.api_key = credentials.secret("STRIPE_API_KEY")
    since = int(time.time()) - 7 * 86400
    charges = stripe.Charge.list(created={"gte": since}, limit=100).auto_paging_iter()
    revenue = sum(c.amount for c in charges if c.paid and not c.refunded) / 100
    new = len(stripe.Customer.list(created={"gte": since}, limit=100).data)
    cancelled = len(stripe.Subscription.list(status="canceled", created={"gte": since}).data)
    last = state.get("revenue") or revenue
    state.set("revenue", revenue)
    change = (revenue - last) / last * 100 if last else 0
    notify.email_me("Weekly numbers",
        f"Revenue: ${revenue:,.0f} ({change:+.1f}%)\nNew customers: {new}\nCancelled: {cancelled}")

FAQ

Common questions

Is my Stripe key safe?
It's saved in your ClickRuntime dashboard, encrypted and write-only. The assistant only sees the name STRIPE_API_KEY. A restricted, read-only key is enough.
Can it post to Slack instead?
Yes. Connect Slack and ask the assistant to send it to a channel.
Can I add other numbers, like refunds or MRR?
Yes. Ask your assistant for the figures you want, such as refunds, failed payments, monthly recurring revenue or revenue by product.
Can it run on a different day or monthly?
Yes. Any schedule works, for example Monday mornings or the first day of each month.
Which currency does it use?
Your Stripe account's amounts as they are stored. If you charge in several currencies, ask your assistant to total each currency separately.
What permissions does it need?
Stripe read-only restricted key; email to you. 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 (fridays at 17:00). 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 “Weekly revenue summary from Stripe” from your assistant

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