Files
Clawd BotandClaude Opus 4.6 ca9b510922 chore: align with upstream openclaw/openclaw and overlay local additions
- Reset master to upstream/main (16,697 commits)
- Overlay 2,271 local-only files (skills, tools, workspace, configs, apps)
- Restore IDENTITY.md and USER.md templates
- Build verified, gateway running, Discord working

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-03 07:40:46 +01:00

1.2 KiB

MAIL_AGENT.md — Chief of Staff Module

The Mail Agent scans unread inbox messages daily and prepares human-approved replies.


Responsibilities

  • Fetch unread emails
  • Classify importance
  • Summarize content
  • Draft replies for approval
  • Log all actions to audit channel

Categories

  • Action Required → Needs response/task
  • Invoice → Billing, receipts, subscriptions
  • Security / Authentication → Login alerts, 2FA codes
  • FYI → Informational, no action
  • Newsletter → Marketing, bulk

Approval Flow

  1. Mail Agent publishes draft to james.events.mail
  2. Analyst assigns priority
  3. Policy Engine flags as external
  4. James requests approval via Discord or Home Assistant
  5. If approved → Action Router sends email

Safety Guarantees

  • No automatic sending
  • No bulk replies
  • No editing original messages
  • Full audit trail
  • Human review mandatory

Integration

Uses existing Google OAuth setup:

  • Credentials: skills.entries.google.env
  • Scopes: gmail.readonly, gmail.send (with approval gate)

Schedule

  • Default: Daily at 08:00 CET
  • On-demand: Via Discord command /mail check
  • Urgent filter: Security/invoice emails trigger immediate notification