Shogo
Built-in

Email Monitor

Monitor Gmail for emails from specific senders and extract key information for alerting

Built-in Skill

Trigger Phrases

Say any of these to activate this skill:

  • "check email"
  • "new emails"
  • "email alert"
  • "email from"
  • "monitor inbox"
  • "email monitor"

Tools Used

search_integrations connect memory_read write_file send_message

How It Works

When triggered, check Gmail for emails matching configured sender rules:

  1. Connect — Check if Gmail integration is installed via search_integrations. If not:
    • connect({ name: "gmail" }) to connect via Composio OAuth
  2. Load rules — Read sender rules from memory (key: email_alert_rules)
    • Each rule has: sender pattern (domain or address), priority, target Slack channel
    • If no rules exist, ask the user which senders to monitor
  3. Fetch — Once connected, call:
    • GMAIL_SEARCH with query from:{sender} for each configured sender rule
    • Filter to emails received since last check (stored in memory as email_last_check)
  4. Extract — For each matching email:
    • Subject line, sender name, timestamp, first 200 chars of body
    • Classify urgency based on keywords (urgent, action required, deadline, etc.)
  5. Alert — For each new matching email:
    • Format a concise alert with sender, subject, urgency, and snippet
    • Hand off to slack-forward skill or send_message if channel configured
  6. Update canvas — Update the alert dashboard:
    • Increment alerts-today counter
    • Add new alerts to the recent alerts feed
    • Update last-checked timestamp
  7. Persist — Save email_last_check timestamp to memory

Ready to use Email Monitor?

Create a free agent and install this skill in one click.

Get Started Free →