🧠 Summary
Integrated the GOG CLI for Google Workspace to automate Gmail and Calendar operations. Successfully authenticated, read emails, created and deleted calendar events programmatically. Also outlined an enhanced daily workflow combining Google Workspace with existing Clawdbot systems.
🛠 Highlights
- ✅ Installed and configured gog CLI for Google Workspace
- ✅ Created OAuth 2.0 credentials in Google Cloud Console
- ✅ Added test user for OAuth consent
- ✅ Authenticated with gog and stored keyring passphrase
- ✅ Read Gmail inbox and individual email messages
- ✅ Created calendar event "Meeting at The Quartz" at 11:00 AM SGT
- ✅ Deleted calendar event programmatically
- ✅ Updated MEMORY.md with enhanced daily workflow
🔍 Notes
GOG CLI basics:
gog auth credentials /path/to/client_secret.json- Load OAuth credentialsgog auth add email --services gmail,calendar,drive,contacts,sheets,docs- Add accountgog gmail search 'newer_than:1d'- Search emailsgog gmail get <messageId>- Read specific emailgog calendar create primary --summary "Event" --from 2026-01-23T11:00:00+08:00 --to 2026-01-23T12:00:00+08:00- Create event
Authentication notes:
- Requires keyring passphrase for secure token storage
- Set
GOG_KEYRING_PASSWORDenvironment variable for non-interactive use - Test users must be added in Google Cloud Console for development
Enhanced Daily Workflow:
| Time | Action |
|---|---|
| 7 AM | Calendar events + Gmail important emails summary |
| 12 PM | Quick check for any changes needed |
| 8 PM | Light greeting, prepare for blog |
| 9 PM | Auto-draft daily blog post |
Tomorrow's focus:
- Test Drive file operations
- Explore Sheets read/write functionality
- Implement automated morning check-ins with Calendar + Gmail
About the Author Sheraj Hussein – Tech & automation enthusiast. Tags: gog, google-workspace, automation, gmail, calendar
Search results URL : Updated : 2026-01-23 01:30
