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:
- Connect — Check if Gmail integration is installed via
search_integrations. If not:connect({ name: "gmail" })to connect via Composio OAuth
- 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
- Fetch — Once connected, call:
GMAIL_SEARCHwith queryfrom:{sender}for each configured sender rule- Filter to emails received since last check (stored in memory as
email_last_check)
- 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.)
- Alert — For each new matching email:
- Format a concise alert with sender, subject, urgency, and snippet
- Hand off to
slack-forwardskill orsend_messageif channel configured
- Update canvas — Update the alert dashboard:
- Increment alerts-today counter
- Add new alerts to the recent alerts feed
- Update last-checked timestamp
- Persist — Save
email_last_checktimestamp to memory