Recipe Save Email To Doc

by googleworkspacea3768d0e82adNo license31K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated yesterday

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

AI-generated overview

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

What it does
This recipe walks through locating a Gmail message with a search query, retrieving its content, creating a Google Doc, and writing the email body into that document. The result is a Google Doc holding the saved email text for archival or later reference. It is an instruction-only recipe and ships no scripts.
When to use it
Use it when you want to preserve a specific Gmail message in Google Docs rather than leave it only in the mailbox. It fits archival or reference needs, such as keeping a record of an important update from a colleague.
Requirements
Requires the gws command-line tool plus the gws-gmail and gws-docs skills, and access to Gmail and Google Docs accounts. No scripts are included; the steps are instructions only.

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]'`

Source and attribution

Source:googleworkspace/cliinskills/recipe-save-email-to-docat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal