Recipe Save Email To Doc
googleworkspace/cliThis skill enables users to automate saving Gmail message bodies into Google Docs, facilitating easy archival and reference. It involves finding specific emails, retrieving their content, creating a Google Document, and writing the email details into it, making it suitable for productivity-focused individuals or teams managing email documentation. The skill relies on integrating Gmail and Google Docs APIs, streamlining email management and record-keeping processes.
Save a Gmail Message to Google Docs
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail,gws-docsSave 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]'`
GitHub Owner
Owner: googleworkspace
GitHub Links
- Website: https://developers.google.com/workspace
- Twitter: https://twitter.com/workspacedevs
Files
boss@company.com
SKILL.md
name: recipe-save-email-to-doc version: 1.0.0 description: "Save a Gmail message body into a Google Doc for archival or reference." metadata: openclaw: category: "recipe" domain: "productivity" requires: bins: ["gws"] skills: ["gws-gmail", "gws-docs"]
Save a Gmail Message to Google Docs
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail,gws-docsSave 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]'