Skip to content

Weekly

Get a weekly list of attachments you received

Each week you get every attachment you received, grouped by sender, so you can find files fast.

Runs
Weekly
Apps
Gmail
AI
Not needed
Access
read

Send this to your assistant

Create a ClickRuntime automation: every Monday, email me a list of the attachments I received last week with the file name, sender and a link to the email.

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 office manager at a small architecture firm gets drawings, signed contracts and supplier quotes as PDFs all week. In March the client asks for the revised quote that arrived "sometime in December". Gmail search by sender returns forty threads, and the right file might be in any of them. Meanwhile the mailbox keeps filling toward its storage limit with 20 MB photo bundles nobody has looked at since.

Once a week, a Gmail search for messages with attachments from the last seven days runs, and each message's parts are read for filenames and sizes. The files are grouped by sender and emailed to you as one list, with the date received next to each name. No AI is involved; it is a plain, predictable index.

It is handy for bookkeepers collecting invoices and for anyone who must prove what was received and when.

What you get out of it

  • Locating a file by sender in seconds

    Instead of opening forty threads, you scan one grouped list and spot the filename. For a recurring client who sends many files, this turns a ten-minute hunt into a quick search of a single weekly email.

  • Proof of what arrived and when

    If a supplier claims they sent the signed contract on the 3rd, the inventory email shows whether a file with that name came in that week. That settles disputes without digging through folders.

  • Oversized files are easy to spot

    Sizes are listed beside each filename, so a 40 MB video from one sender stands out. You can delete or move it before the mailbox hits its storage cap and starts bouncing new mail.

  • Invoice collection without chasing

    A bookkeeper can scan the list on Monday and see which vendors sent a PDF and which did not. Missing invoices get chased the same week instead of at month end.

  • No manual spreadsheet upkeep

    Teams that currently paste attachment names into a sheet stop doing it. The list builds itself on schedule, so the record is complete even in a week when nobody remembered to log anything.

How it works

What happens, step by step

  1. Once a week ClickRuntime finds every email with an attachment you received in the last seven days.

  2. It notes each file's name, who sent it and a link to the email.

  3. The list is emailed to you, with the total number of attachments 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

What you get

RunsWeekly
Get a weekly list of attachments you receivedtoday, 9:00Succeeded
Email · 12 attachments last weekQ3-report.pdf from Dana Park <dana@acme.example> https://mail.google.com/mail/u/0/#all/19a2f0c3d4e5b6a7

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 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.
weekly_attachment_inventory.pyexample
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, notify

def parts(payload):
    for p in payload.get("parts", []):
        yield p
        yield from parts(p)

@on_trigger
def run(event):
    gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    msgs = gmail.users().messages().list(userId="me", q="has:attachment newer_than:7d -in:sent", maxResults=200).execute().get("messages", [])
    lines = []
    for m in msgs:
        msg = gmail.users().messages().get(userId="me", id=m["id"], format="full").execute()
        sender = next((h["value"] for h in msg["payload"]["headers"] if h["name"] == "From"), "")
        link = f"https://mail.google.com/mail/u/0/#all/{m['id']}"
        lines += [f"{p['filename']} from {sender}\n  {link}" for p in parts(msg["payload"]) if p.get("filename")]
    notify.email_me(f"{len(lines)} attachments last week", "\n".join(lines) or "No attachments last week.")
    return {"attachments": len(lines)}

FAQ

Common questions

Does the inventory include inline images like email signatures?
It reads the message parts that carry a filename, so small signature logos can appear if the sender's mail client attached them with names. Genuine documents and photos are normally easy to tell apart by size and type. You can have tiny files under a chosen size left out.
Does it download or store my attachments?
No. It reads only the metadata Gmail exposes for each message part: the filename, the size and the sender. The files themselves stay in your mailbox, and the email you receive is just a list. To open a file, you still go to the original message.
What if a message has several attachments?
Each attachment gets its own line under the sender, so a message with a quote, a spec sheet and two photos shows four entries. Messages are grouped by sender rather than by thread, which keeps the list short even when conversations run long.
What permissions does it need?
read. 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 (weekly). 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 a weekly list of attachments you received” from your assistant

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