Recipe Draft Email From Doc

by googleworkspacea3768d0e82adNo license31K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated yesterday

Read content from a Google Doc and use it as the body of a Gmail message.

AI-generated overview

Reads a Google Doc's text and uses it as the body of a Gmail message.

What it does
This recipe retrieves the content of a Google Doc through the gws docs command and copies the document body text. It then sends that text as the body of a Gmail message to a specified recipient with a chosen subject. It is an instructions-only recipe and produces a sent email.
When to use it
Use it when a message body already exists in a Google Doc and needs to be sent by email. It suits newsletter-style updates or similar content that is authored in Docs and distributed through Gmail.
Requirements
Requires the gws command-line tool with the gws-docs and gws-gmail skills loaded, plus authenticated access to Google Docs and Gmail. No scripts are shipped; the skill is instructions only.

Draft a Gmail Message from a Google Doc

PREREQUISITE: Load the following skills to execute this recipe: gws-docs, gws-gmail

Read content from a Google Doc and use it as the body of a Gmail message.

Steps

  1. Get the document content: gws docs documents get --params '{"documentId": "DOC_ID"}'
  2. Copy the text from the body content
  3. Send the email: gws gmail +send --to [email protected] --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'

Source and attribution

Source:googleworkspace/cliinskills/recipe-draft-email-from-docat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal