Generated banner for Recipe Save Email To Doc
Generated logo for Recipe Save Email To Doc

Recipe Save Email To Doc

Google WorkspaceOfficialPublished by Google Workspace

  • Skill
  • Workflow
  • Automation and integrations
  • Apache-2.0
  • No issues found

From the author

Save a Gmail message body into a Google Doc for archival or reference.
— the description by Google Workspace

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured procedure for extracting the body of a specific Gmail message and saving it into a newly created Google Doc. It leverages existing Gmail and Google Docs integration tools to automate the archival process for reference or documentation purposes.

What it does

  • Searches for specific emails based on sender or subject criteria
  • Retrieves the full content of a selected email message
  • Creates a new Google Doc to serve as an archive
  • Appends the email body text into the newly created document

When to use it

  • When you need to preserve important email correspondence for long-term reference
  • When you want to consolidate email information into a document format
  • When you need to automate the manual process of copying and pasting email content

Advantages

  • Automates the archival of email content
  • Ensures consistent formatting for saved email records
  • Reduces manual effort in document creation and data transfer

Usage examples

“Save the latest email from my boss with the subject Important Update to a new Google Doc.”
The agent identifies the email, creates a new document titled Saved Email - Important Update, and populates it with the email body.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/googleworkspace/recipe-save-email-to-doc/download
  2. Unzip it into the cross-client skills folder of your project:

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

Documentation by Google Workspace

Save a Gmail Message to Google Docs

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail, gws-docs

Save a Gmail message body into a Google Doc for archival or reference.

Steps

  1. Find the message: gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:[email protected]"}' --format table

  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'

  3. Create a doc with the content: gws docs documents create --json '{"title": "Saved Email - Important Update"}'

  4. Write the email body: `gws docs +write --document-id DOC_ID --text 'From: [email protected] Subject: Important Update

[EMAIL BODY]'`

Files

SKILL.md

Save a Gmail Message to Google Docs

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail, gws-docs

Save a Gmail message body into a Google Doc for archival or reference.

Steps

  1. Find the message: gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:[email protected]"}' --format table

  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'

  3. Create a doc with the content: gws docs documents create --json '{"title": "Saved Email - Important Update"}'

  4. Write the email body: `gws docs +write --document-id DOC_ID --text 'From: [email protected] Subject: Important Update

[EMAIL BODY]'`

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Google Workspace
Publisher
Google Workspace (Official)
Source
googleworkspace/cli · skills/recipe-save-email-to-doc · commit cd3697e
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google Workspace.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download recipe-save-email-to-doc.zip