Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Connect Google Workspace (Gmail, Calendar, Docs) for email-aware planning and meeting prep. Use when the user says 'connect Gmail/Google', 'hook up my work email'. Not for local macOS calendar speed only; use `calendar-setup`. Not for Microsoft; use `ms-teams-setup`.
.claude/skills/davekilleen-google-workspace-setup/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 89% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 35% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 126% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 104% | 0% |
Connect your Google Workspace to Dex so your daily plans, meeting prep, and weekly reviews get richer context from email, Google Calendar, and Docs.
Once connected, Dex can:
Read:
Write (always with your confirmation):
Skill Enhancements:
/daily-plan) gets an email digest -- unread count, threads needing reply, emails from today's meeting contacts/meeting-prep) shows recent email threads with each attendee/week-review) includes email stats -- sent/received, response time, top correspondentsNew Capabilities:
/daily-plan, Dex checks for emails awaiting replies for more than 48 hours and surfaces them: "Sarah hasn't replied to your pricing email from 3 days ago. Draft a nudge?"Dex reads your email on demand -- nothing is stored permanently. Emails are fetched, summarized, and discarded after the session. Only YOUR account is accessible (scoped to your OAuth login). The OAuth token stays local on your machine and is gitignored.
/google-workspace-setup/integrate-mcp if Gmail or Google Workspace is mentionedSystem/integrations/config.yaml for google-workspace.enabled: trueSay:
**Let's connect Google Workspace to Dex.**
This uses an open-source MCP bridge that connects to your Google account via OAuth.
You'll authorize Dex once, and it remembers your login locally.
**What you'll need:**
- A Google account (Gmail, Workspace, or personal)
- About 3 minutes for the OAuth flow
**What Dex will be able to do:**
- Read your emails (search, unread, threads)
- Read Google Calendar, Docs, and Sheets
- Send emails and create events (always with your confirmation first)
**Ready to go?**Wait for confirmation.
Check the user's MCP configuration. If google-workspace-mcp is not listed:
I need to add the Google Workspace connector to your Dex configuration.
This is an open-source bridge (github.com/taylorwilsdon/google_workspace_mcp)
that connects to Google's APIs via OAuth. Your credentials stay on your machine..mcp.json (use the /dex-add-mcp skill or manual edit):json{ "google-workspace-mcp": { "command": "npx", "args": ["-y", "google-workspace-mcp"], "env": {} } }
npx google-workspace-mcp -- this starts the OAuth flowSystem/.gmail-oauth-token.jsonIf OAuth succeeds:
Connected! I can see your Google Workspace account.If it fails:
The OAuth flow didn't complete. A few things to check:
1. **Did the browser open?** If not, try copying the URL from the terminal output
2. **Did you approve all permissions?** Dex needs Gmail, Calendar, and Docs access
3. **Firewall or proxy?** Corporate networks sometimes block OAuth redirects
Want to retry?Retry up to 2 times, then offer to skip and come back later.
Once connected, ask:
**Which Gmail labels matter most for your work?**
I'll prioritize these when building your email digest.
Common choices:
- INBOX (always included)
- IMPORTANT
- STARRED
- Custom labels (e.g., "Deals", "Follow-Up")
**Which labels should I watch?** (Just list names, or say "show me what's available")Then ask about write operations:
**For sending emails and creating events:**
Would you prefer:
1. **Auto-draft** -- I'll compose messages and show them for your approval before sending
2. **Ask each time** -- I'll ask before even drafting anything
(You can change this anytime by re-running /google-workspace-setup)Save their preference. Map choice 1 to draft_and_send: true, choice 2 to draft_and_send: false.
Run a quick test to confirm everything works:
Show a brief summary:
**Quick test results:**
- Email search: Working (found [N] recent emails)
- Calendar: Working (found [N] events today)
Everything looks good!If either fails, troubleshoot before proceeding.
Write to System/integrations/config.yaml -- update the google-workspace section:
yamlgoogle-workspace: enabled: true configured_at: YYYY-MM-DD mcp_server: google-workspace-mcp auth_type: oauth2 account: user@example.com labels: - INBOX - IMPORTANT features: email_digest: true email_followup: true draft_and_send: true # or false based on user preference
If the file already exists, only update the google-workspace: section. Preserve other integration configs.
**Google Workspace is connected!**
Here's what just got enhanced:
- **Daily Plan** (`/daily-plan`) now includes an email digest:
- Unread count from priority senders
- Threads needing reply (> 24h)
- Emails from today's meeting attendees
- Follow-up detection ("Sarah hasn't replied in 3 days")
- **Meeting Prep** (`/meeting-prep`) now shows email context:
- Recent email threads with each attendee
- Last email date and topic
- Unanswered emails to flag
- **Week Review** (`/week-review`) now includes email stats:
- Emails sent/received this week
- Average response time
- Top senders and recipients
You can adjust settings anytime by running `/google-workspace-setup` again.During /daily-plan, Dex checks for stale email threads:
**Emails awaiting reply:**
- Sarah Chen hasn't replied to your pricing email (sent 3 days ago). Draft a nudge?
- Mike Ross hasn't replied to the proposal follow-up (sent 2 days ago).Rules:
google-workspace.features.email_followup: true in config/daily-planGoogle OAuth tokens typically last 1 hour, but refresh tokens are longer-lived. If you see auth errors:
/google-workspace-setup to trigger a token refreshThe server might not be in your configuration. Re-run /google-workspace-setup and it will detect and fix this.
If certain features don't work (e.g., can't send emails):
/google-workspace-setup to re-authorize with full scopesGoogle APIs have generous limits for personal use. If you see rate errors:
Some organizations restrict OAuth access for third-party apps:
If the user runs /google-workspace-setup when already configured:
System/integrations/config.yamlIf user wants to disconnect:
System/integrations/config.yaml:yaml google-workspace: enabled: false
/google-workspace-setup anytime to reconnect."Other measured skills in the registry, with their headline benchmark lift.