Skip to content

Save Gmail Message to Google Doc

Copy a Gmail message body into a new Google Doc for archiving via the gws CLI

Stars
32,059
Licence
Apache-2.0
Files
1 file

What it does

Once installed, the agent can find a Gmail message matching a search, read its body, create a new Google Doc, and write the email text into that document. It is a step-by-step recipe that chains together other Google Workspace skills (Gmail and Docs) through the gws command-line tool, so the result is an archived copy of the email stored in Google Docs.

Great for

  • People who want to keep important emails as a readable document in Google Drive
  • Users of the gws Google Workspace CLI who want a ready-made workflow
  • Teams archiving key correspondence for reference

Skip it if

  • Bulk or automated archiving of large mailboxes, since the recipe handles one message and uses placeholder IDs that must be filled in manually (the steps are not a finished script)
  • Sensitive or regulated email content that should not be copied into a Google Doc without a review of sharing and retention settings, because the recipe does not address access controls
  • Users who have not authorised gws for Gmail and Docs, since the commands will fail without that access

Try asking

  • “Save my latest email from my manager about the Q3 launch into a Google Doc for reference”
  • “Find the email with subject 'Important Update' from boss@company.com and archive its body to a new doc”
  • “Create a Google Doc containing the text of this Gmail message for our records”
Step-by-step guide: how to use Save Gmail Message to Google DocInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.

    recipe-save-email-to-doc.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip recipe-save-email-to-doc.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip recipe-save-email-to-doc.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Replace placeholders such as MSG_ID, DOC_ID and [EMAIL BODY] with real values, and check the search query before running it
  • Review the created document's sharing settings in Google Drive, since it may contain private email content
  • Load the gws-gmail and gws-docs skills first, as the recipe depends on them

What's inside

  • SKILL.md

Redistributed unmodified from googleworkspace/cli under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.