Email Automation Skill
Summarise a mailbox, extract action items and draft replies while keeping sensitive data and human approval under control.
Download this skill
3 files · SKILL.md + ZIP + Python · License CC BY 4.0
SKILL.md
3.3 KBv1.1.0skill mdskill.json
1.5 KBv1.1.0manifestmailbox_digest.py
1.8 KBv1.1.0python Executable
License: CC BY 4.0. Only download and use files you are licensed to use.
This resource includes executable scripts. Review the code before running it, run it in an isolated environment, and never pass secrets you do not intend to share with the script.
Automate the reading, not the relationship
Email automation has a simple high-value use case: reduce the time spent deciding what needs attention. Summaries and structured action lists are useful. Autonomous replies are risky.
This skill starts with a read-only digest. It fetches recent messages, extracts sender and subject, and then uses a tightly scoped prompt to classify them. Nothing is sent, moved or deleted.
The minimum viable pipeline
- Connect with read-only access.
- Strip signatures, tracking pixels and unnecessary personal data.
- Classify into a small number of queues.
- Extract actions with a source quote.
- Put everything in front of a human.
The source quote is important. If the model says “the client wants the report by Friday”, you need the sentence it came from. Without that, the action list is a rumour.
Risk controls
- Prompt injection: an email can contain instructions aimed at the assistant. Treat email text as data, never as instructions.
- Data leakage: do not send attachments or full threads to a provider without approval.
- Identity risk: an AI-drafted reply in your voice can commit you to something. Drafts require review.
- Audit trail: log what was processed, what was generated and who approved it.
Measure the benefit honestly
Track minutes saved per week and the error rate on a sample of classified messages. If the digest creates more review work than it saves, narrow the scope. A useful automation is one you would keep after the novelty wears off.
At a glance
- Difficulty
- Intermediate
- Platforms
- ChatGPT, Claude, n8n, Zapier, Python
- File format
- SKILL.md + ZIP + Python
- License
- CC BY 4.0
- Version
- 1.1.0
- Last reviewed
- May 17, 2026
- Source
- AI Skills Hub original
- Access
- Free
What it does
Capabilities included in this package.
- Read-only mailbox digest pattern
- Action-item extraction with owner and due date
- Draft-reply prompt that never sends automatically
- Data-minimisation checklist
Requirements
Check these before you start.
- An email account you are authorised to process
- IMAP credentials stored in environment variables, not in code
- A written policy for what may be sent to an AI provider
- Python 3.10+ for the local example
Installation
Set up the skill in a working folder before you use it on real material.
- 1
Download the skill
Save SKILL.md and the example IMAP digest script.
- 2
Create a dedicated app password
Use an app-specific password or OAuth connection with read-only scope where supported. Never use your main account password.
- 3
Set environment variables
Keep credentials out of source control and chat.
export IMAP_HOST=imap.example.com export IMAP_USER=you@example.com export IMAP_PASSWORD=app-specific-password
How to use it
A reviewed sequence that keeps a person in the loop.
- 1
Start read-only
Run the digest for a week before automating any reply. Confirm the classification is accurate on real mail.
- 2
Redact before analysis
Remove attachments, signatures, account numbers and personal data unless they are necessary for the task.
- 3
Extract structured actions
Ask for a JSON list of action, owner, due date and confidence. Reject items without a clear source quote.
- 4
Draft, never send
Generate drafts into a review folder. A human presses send.
- 5
Log exceptions
Track messages the system could not classify and review the failure modes weekly.
Use cases
Tasks this skill is designed for.
- Prepare a morning digest of urgent client email
- Turn a shared inbox into a task list
- Draft routine replies for human review
Worked examples
Morning digest
Group unread messages into needs-reply, waiting-on-someone, FYI and likely-spam. Include one-line summaries and deadlines. No auto-replies.
Shared inbox triage
Assign each message to a queue based on documented rules, but route ambiguous cases to a human queue instead of guessing.
Security and privacy
Read this before running any downloaded script or sending material to an AI provider.
Treat downloaded code and extracted text as untrusted
Email is a high-risk data source. Use OAuth or app passwords with the narrowest scope, store secrets in a secret manager, and encrypt at rest. Watch for phishing and prompt injection in message bodies. Never grant an AI agent permission to send, delete or forward mail without explicit human approval and audit logs.
Version history
v1.1.0
Initial reviewed release.
Apr 16, 2026
Frequently asked questions
Related resources
Spotted something out of date? Suggest the fix and an editor will review it.