Skip to content
Skillpedia
Writing32k · #6337

recipe-save-email-to-doc

Helps your agent save the content of an email into a document. It's good for having an easy-to-reference record.

What it does

This assistant saves the content of a Gmail email into a Google Doc. It's useful for keeping important information or for future reference.

When to use it

  • ✓When you receive an email with crucial information that needs to be saved.
  • ✓To create an archive of important emails from a boss or colleague.
  • ✓When you want a copy of an email outside of your inbox.

Example of what to ask your AI

“Save the email from the boss with the subject 'Important Update' into a document.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/recipe-save-email-to-doc/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/recipe-save-email-to-doc/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

It first finds the email you want, then gets its text, and finally creates a new Google Doc to paste that text into.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill recipe-save-email-to-doc

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-save-email-to-doc/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

FAQ

Do I need to have Gmail and Google Docs installed?

Yes, you need to have the Gmail and Google Docs tools ready to use.

Can I choose the document name?

Yes, the assistant can create a default name, but you can ask it to use a different one.

Does it save attachments too?

No, this assistant only saves the text from the email body.

Details

Original description by the author

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

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6337
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills