Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
googleworkspace avatar

Recipe Save Email To Doc

  • 24.9k installs
  • 30.2k repo stars
  • Updated August 1, 2026
  • googleworkspace/cli

Save-email-to-doc is a Google Workspace CLI recipe that extracts Gmail message content and writes it to a new Google Doc.

About

Save a Gmail message body into a Google Doc for archival or reference. The skill finds an email by query, retrieves its content, creates a new document, and writes the message body to that document. Developers use this to create searchable archives of important emails.

  • Extract email content and save to Google Docs
  • Create documents programmatically with email data
  • Build searchable email archives

Recipe Save Email To Doc by the numbers

  • 24,875 all-time installs (skills.sh)
  • +357 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #32 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

recipe-save-email-to-doc capabilities & compatibility

Capabilities
email extraction · document creation · archival
Works with
gmail · google drive
Use cases
documentation · email
From the docs

What recipe-save-email-to-doc says it does

Save a Gmail message body into a Google Doc for archival or reference.
SKILL.md
Create a doc with the content: `gws docs documents create --json '{"title": "Saved Email - Important Update"}'`
SKILL.md
npx skills add https://github.com/googleworkspace/cli --skill recipe-save-email-to-doc

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs24.9k
repo stars30.2k
Security audit3 / 3 scanners passed
Last updatedAugust 1, 2026
Repositorygoogleworkspace/cli

How do you save a Gmail message into Google Docs from the CLI?

Developers automate email archival and create document records from email content.

Who is it for?

Creating searchable archives of important emails in Google Docs

Skip if: Developers who only need to read Gmail in place or export mail to non-Google formats like PDF without creating Docs.

When should I use this skill?

A developer asks to archive, export, or copy an important Gmail thread into a Google Doc using gws.

What you get

Google Doc containing the extracted Gmail message body text linked to the original search criteria.

  • google doc with email body
  • archived message reference

By the numbers

  • Recipe metadata version 0.22.5 in googleworkspace/cli
  • Depends on 2 utility skills: gws-gmail and gws-docs

Files

SKILL.mdMarkdownGitHub ↗

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:boss@company.com"}' --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: boss@company.com Subject: Important Update

[EMAIL BODY]'`

Related skills

FAQ

Which gws skills does recipe-save-email-to-doc require?

recipe-save-email-to-doc requires gws-gmail and gws-docs utility skills plus the gws binary, because the recipe lists messages with Gmail API commands then creates or updates Docs content.

How does recipe-save-email-to-doc locate the target email?

recipe-save-email-to-doc uses gws gmail users messages list with a q query such as subject:important from:boss@company.com, then fetches the selected message before writing its body into a Google Doc.

Is Recipe Save Email To Doc safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.