Sent emails → Samlla
- What it measures: how many emails you sent each day. One daily number, with no content.
- What you need: a Samlla account (Free is enough), consent to processing health data in Samlla, a Samlla API key, and Gmail or another mailbox.
- Runs on: any system, even while your computer is off.
- Time: about 10 minutes.
- What leaves your mailbox: only the number. No subjects, addresses, or content.
Copy the whole block below and paste it into Claude, ChatGPT, or another AI assistant.
I want to see in Samlla how many emails I sent each day. Build it for me.
I am not a programmer: choose the simplest solution that runs by itself,
and guide me step by step. Answer in my language.
What should happen
- Once a day, one number appears in Samlla: how many emails I sent the
previous day. Count every sent message, including a reply in an existing
conversation. Do not count drafts.
- A day runs from midnight to midnight in my timezone.
- A day with no sent emails gets no entry: a missing entry means 0. If the
count for a day that has an entry drops to 0, the automation deletes it.
- If the automation does not run for several days (computer off, no
internet), it fills the missing days the next time it runs.
- Running it again never creates duplicates. If the number for a day has
changed, it corrects the existing entry. Except for a day whose count
dropped to 0, it deletes nothing.
- An email-read error is not 0: for that day, the automation writes nothing
and reports the problem.
- On first run, it backfills history (ask me how many days; default to 30).
- Everything goes to one tracker named “Sent emails”. If it does not exist,
the automation creates it.
Privacy
- Only the daily number leaves the mailbox: no subjects, addresses, or
message content, including in logs.
- Mail access is read-only.
- The Samlla API key must not be written into the code.
Spirit
This is observation, not a goal. No thresholds, streaks, alerts, or judgments
such as “too many emails”. Samlla will show the trend; the conclusions are mine.
How I will verify it works
Before I enable the automation permanently, I want to run it once for the last
2 days and compare the numbers in Samlla with the Sent folder in my mailbox.
Before you begin, ask me at most 3 questions at a time (for example, which
email service I use and whether my computer is on every day). If I answer
“defaults”, assume Gmail, my account timezone, a 06:00 schedule, and 30 days
of history.
Technical facts about Samlla (API, response shapes, limits, pitfalls) are at https://samlla.app/llms.txt. Read them before writing code and stick to them instead of guessing.