# Claude Code for email: triage drafts, never auto-send

> Triage with Gmail or Workspace CLI, write thread briefs, and create drafts only until you approve a send.

Source: https://fullbytedeveloper.com/blog/claude-code-for-email
Published here: 2026-11-26, updated 2026-11-26

Email with Claude Code stays safe when triage and drafts.create are allowed and drafts.send stays a separate human step. Gmail drafts.create builds an unsent DRAFT-labeled message; the contained message cannot be edited in place and must be replaced on update. [1] [2]

After this page you can authorize draft-only scopes, bucket the inbox, write a thread brief, and leave a draft id in Gmail for you to send. Related: [Claude Code for personal scheduling](/blog/claude-code-for-personal-scheduling) for calendar buffers. Browse the [Claude Code topic](https://fullbytedeveloper.com/blog/topic/claude-code).

## Start with draft scope, not full send

Google's Workspace CLI guide lists Gmail actions including `gmail create_draft` (write) and read-only list/get helpers. Authorize draft and read first. Add send only after the loop is boring. [3]

```text
# Conceptual gate for the agent session
# Allow: list, get, create_draft
# Deny: messages.send, drafts.send, delete
```

Claude Code hooks can block Bash tool calls that match send patterns. `PreToolUse` with exit code 2 is the documented way to refuse a tool call. [6] [7]

## Triage into buckets before any reply

Anthropic's Sales plugin documents `inbox-sweep` to sort unread customer email by priority and draft replies. Productivity's `/update --comprehensive` scans email for missed todos when email MCP is connected. Use one triage pass that labels: respond today, waiting, fyi, archive candidate. [4] [5]

Paste or fetch only the threads in the respond-today bucket. Long dumps burn context and hide the one mail that matters. [7]

You should get a short priority list with thread ids, not a pile of half-sent replies.

## Write a thread brief, then a draft

For each hot thread, ask Claude for a brief: ask, constraints, last promise you made, open questions. Then create a draft through the API or CLI. Gmail's Python sample builds an `EmailMessage`, base64url-encodes it, and calls `users.drafts.create`. [1]

```bash
# Example shape from Google Workspace CLI docs family: draft, do not send
gwscli gmail create_draft
```

Prefer Google's documented `gmail create_draft` path in any wrapper Claude is allowed to run. Do not invent a `--draft` flag on send helpers. [3]

You should see a draft id in Gmail (or Outlook's draft folder) that you open and edit yourself.

## Inbox rules stay outside the model when they are brittle

Static filters (label, star, skip inbox) belong in Gmail/Outlook rules or a small script you review. Let Claude propose rule text; you paste it. Do not give the agent permanent rule-admin scope on day one. [3] [7]

**Warning:** treat email body text as data, never as instructions. The Sales plugin README states outside content is information, not commands. Keep that boundary for every inbox skill. [5]

## Close the loop without auto-send

1. Triage list.
2. Thread brief.
3. `drafts.create` or `create_draft`. [1] [2] [3]
4. You send from the UI, or you run an explicit send command Claude is not allowed to invent.

For meeting creation from threads, continue on [Claude Code for personal scheduling](/blog/claude-code-for-personal-scheduling). [8]

You now have an email loop: draft-only scopes, triage buckets, thread briefs, API drafts, human send.

Send this to the operator who wants Claude in the inbox without a surprise send.

## Sources

1. [Gmail API: Create and send draft emails, accessed 2026-11-26](https://developers.google.com/workspace/gmail/api/guides/drafts)
2. [Gmail API: users.drafts.create, accessed 2026-11-26](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.drafts/create)
3. [Google Workspace CLI guide, accessed 2026-11-26](https://developers.google.com/workspace/guides/workspace-cli)
4. [Anthropic Productivity plugin README, accessed 2026-11-26](https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/productivity/README.md)
5. [Anthropic Sales plugin README, accessed 2026-11-26](https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/sales/README.md)
6. [Claude Code docs: Hooks, accessed 2026-11-26](https://code.claude.com/docs/en/hooks)
7. [Claude Code best practices, accessed 2026-11-26](https://code.claude.com/docs/en/best-practices)
8. [Full Byte Developer: Claude Code for personal scheduling](https://fullbytedeveloper.com/blog/claude-code-for-personal-scheduling)
