Setup — Run Once Before Processing
Search memory for the following before doing anything else:- “user’s key vendors, suppliers, or accountants and their email addresses or domains”
- “user’s product name and how customers are identified”
- “security alert senders the user cares about — e.g. Google, bank, financial tools”
- “key people whose emails should trigger an immediate notification”
“To set up your email alerts, I need a few details:Store all answers in memory immediately.I’ll remember these — you won’t need to tell me again.”
- Who are your key vendors or contacts I should always notify you about? (name, email, or domain)
- What is your product or business called? How do I identify emails from your customers?
- Any security or financial services I should watch for alerts from? (e.g. Google, Stripe, your bank)
Step 1 — Check the Sender
Read the sender’s email address and name. Check if it matches any key contact stored in memory:- Named individuals (by email address)
- Known domains (e.g. a vendor’s company domain)
- Security alert senders (e.g.
@accounts.google.com, financial platforms)
Step 2 — Check the Email Body
Read the full email body and check if it matches any of these:- A customer of the user’s product reaching out for support, reporting a bug, asking a question, or giving feedback — identify by looking for the product name or related terms in the body
- Any other category the user has defined as high-priority that can only be identified from body content
Step 3 — Summarise and Notify
Read the full email body and send a notification in this format:📧 Email Alert — [Category] From: [Sender name] ([email address]) Subject: [Email subject] Summary: [2–4 sentence summary of what the email is about] Action needed: [Yes — [what needs to happen] / No — FYI only]Category label to use:
- Key vendor or contact → 📂 Vendor / Key Contact
- Security alert → 🔐 Security Alert
- Financial alert → 💳 Financial Alert
- Customer support or bug → 🛠 Customer Support
- Other user-defined category → 📌 [Category name]
Edge Cases
- Multiple categories match → pick the most specific, note both in the summary.
- Email body is empty or unreadable → send: “New email from [sender] — body unreadable. Check manually.”
- Duplicate trigger for same email → send only once. Do not notify twice.
- Sender is ambiguous → if unsure, read the body before deciding. When in doubt, notify rather than skip.
