
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-codeInstalls 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
- Find the message:
gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:boss@company.com"}' --format table - Get message content:
gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}' - Create a doc with the content:
gws docs documents create --json '{"title": "Saved Email - Important Update"}' - 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- Recipe Block Focus Time31K
- Recipe Watch Drive Changes31K
- Recipe Create Shared Drive31K
- Persona Team Lead31K
- Recipe Share Doc And Notify30.9K
- Recipe Find Large Files30.9K
- Recipe Create Task List30.9K
- Recipe Schedule Recurring Event30.9K
- Recipe Review Overdue Tasks30.8K
- Recipe Copy Sheet For New Month30.8K
- Recipe Review Meet Participants30.8K
- Recipe Batch Invite To Event30.8K
- Recipe Collect Form Responses30.8K
- Recipe Create Events From Sheet30.7K
- Persona It Admin30.7K
- Recipe Create Vacation Responder30.7K
- Recipe Share Folder With Team30.7K
- Persona Customer Support30.7K
- Recipe Forward Labeled Emails30.7K
- Persona Event Coordinator30.6K
- Gws Modelarmor30.6K
- Persona Sales Ops30.6K
- Recipe Create Meet Space30.6K
- Recipe Create Expense Tracker30.6K