Install
openclaw skills install gmail-inbox-zero-triageGmail Inbox Zero Triage - Interactive inbox management using gog CLI with Telegram buttons. Use when the user wants to achieve inbox zero, triage their Gmail inbox interactively, process ALL inbox messages (read and unread) with AI summaries and batch actions (archive, filter, unsubscribe). OAuth-based, no passwords needed.
openclaw skills install gmail-inbox-zero-triageAchieve inbox zero with AI-powered email triage! Process ALL Gmail inbox messages interactively with summaries and batch actions using OAuth (no passwords needed).
✅ OAuth-based - No passwords, secure authentication via gog
✅ AI summaries - Quick 1-line summary of each email
✅ Batch processing - Queue actions instantly, execute at the end
✅ Telegram buttons - Archive, Filter, Unsubscribe, View
✅ Inbox zero focus - Process ALL inbox messages (read + unread)
✅ Fast workflow - No waiting between actions
Requires: gog CLI with authenticated Gmail account.
Check if already set up:
gog auth list
If not set up, user needs to run gog auth add (see gog skill for OAuth setup).
Set environment variable for keyring password:
export GOG_KEYRING_PASSWORD="your-password"
Each email displays with 4 action buttons:
[📥 Archive] [🔍 Filter]
[🚫 Unsub] [📧 View]
At the end:
[✅ Done - Execute All Actions]
Actions are queued using short callback codes to avoid Telegram's 64-char limit:
q:a:0 = queue archive, message index 0q:f:0 = queue filter, message index 0q:u:0 = queue unsubscribe, message index 0q:v:0 = view full email, message index 0 (executes immediately)q:done = execute all queued actionsQueue is managed via scripts/queue_manager.py and stored in action_queue.json.
Main processor for Gmail operations via gog CLI.
List inbox messages:
python3 scripts/gog_processor.py list <account> [limit]
Archive a message:
python3 scripts/gog_processor.py archive <account> <msg_id>
Find unsubscribe link:
python3 scripts/gog_processor.py unsubscribe <account> <msg_id>
Create filter:
python3 scripts/gog_processor.py filter <account> "<from_header>"
Get message body:
python3 scripts/gog_processor.py body <account> <msg_id>
Manages action queue for batch execution.
Add action to queue:
python3 scripts/queue_manager.py add <action> <msg_id> [from_header]
Get queue:
python3 scripts/queue_manager.py get
Clear queue:
python3 scripts/queue_manager.py clear
Executes all queued actions in batch.
python3 scripts/execute_queue.py <account>
Returns JSON with results of all executed actions.
current_batch.jsonqueue_manager.pyexecute_queue.pyGenerate concise 1-line summaries:
Keep it simple, factual, and action-oriented.
Common issues:
gog auth add <account>gog auth list for available accountsGOG_KEYRING_PASSWORD environment variableNo additional pip packages needed.