googleworkspace avatar

Recipe Save Email To Doc

googleworkspace/cli
20.2k

This 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.

npx skills add https://github.com/googleworkspace/cli --skill recipe-save-email-to-doc

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

GitHub Owner

Owner: googleworkspace

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

More skills