
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.
$ npx -y skills add googleworkspace/cli --skill recipe-save-email-to-doc --agent claude-codeInstalls into .claude/skills of the current project.
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.
gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:boss@company.com"}' --format tablegws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'gws docs documents create --json '{"title": "Saved Email - Important Update"}'[EMAIL BODY]'`
Sponsors