googleworkspace avatar

Recipe Save Email To Doc

The recipe-save-email-to-doc skill enables users to extract a Gmail message body and save it into a Google Doc for archival or reference purposes. It serves Google Workspace users who need to preserve important emails in a more organized format by automating the process of finding messages, extracting content, and writing it to a new document. The skill solves the problem of manually copying and pasting email content into documents by streamlining the workflow through command-line operations on Gmail and Google Docs APIs.

skills.sh installs
31.1K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-save-email-to-doc --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/googleworkspace/cli
Categories
Documentation, CLI & Terminal, Office & Documents

More from googleworkspace/cli

All 113
1wecomteam avatarwecomcli-docwecomteam/wecom-cliwecomcli doc26.3Kskills.sh installs
2github avatarcreate-oo-component-documentationgithub/awesome-copilotCreate comprehensive, standardized documentation for object-oriented components following industry best practices and architectural documentation standards.7Kskills.sh installs
3github avatarupdate-oo-component-documentationgithub/awesome-copilotUpdate existing object-oriented component documentation following industry best practices and architectural documentation standards.7Kskills.sh installs
4affaan-m avatararticle-writingaffaan-m/everything-claude-codearticle writing6.3Kskills.sh installs
5claude-office-skills avatardoc-parserclaude-office-skills/skills>5.4Kskills.sh installs
6giuseppe-trisciuoglio avatarspring-boot-openapi-documentationgiuseppe-trisciuoglio/developer-kitProvides patterns to generate comprehensive REST API documentation using SpringDoc OpenAPI 3.0 and Swagger UI in Spring Boot 3.x applications. Use when setting 4.2Kskills.sh installs