AI-powered email triage via IMAP (himalaya) or Google API. Fetches inbox, classifies messages by urgency, recommends actions, and generates daily markdown di...
AI email triage — fetch, classify, and report on your inbox.
cd ~/.openclaw/workspace/skills/inbox-triage-bot
npm install
EMAIL_BACKEND=himalaya npm run demo
Requires himalaya CLI configured with a Gmail App Password:
himalaya envelope list -f INBOX -s 5 # test
EMAIL_BACKEND=himalaya npm run demo
Requires OAuth credentials:
cp .env.example .env # edit with OAuth creds
npm run google:oauth:init
npm run demo
npm run demo # full triage report (markdown)
npm run email:fetch # raw envelopes (JSON)
npm run email:triage # classified envelopes (JSON)
npm run calendar:upcoming # upcoming events (JSON)
| Variable | Default | Description |
|---|---|---|
EMAIL_BACKEND | auto | himalaya or google |
HIMALAYA_ACCOUNT | gru_gmail | himalaya account name |
OPENAI_API_KEY | — | Optional AI classification |
# Daily at 7 AM
0 7 * * * cd /path/to/inbox-triage-bot && EMAIL_BACKEND=himalaya npm run demo >> ~/inbox-triage.md 2>&1
ZIP package — ready to use