Skip to content
Skillpedia
Writing32k · #6322

recipe-draft-email-from-doc

Lets your agent read content from a Google Doc. It uses this text to write the body of a Gmail message.

What it does

This tool takes text from a Google Doc and uses it to write a draft email in Gmail. It's like copy-pasting, but automated.

When to use it

  • ✓When you have long text in a document and want to send it via email.
  • ✓To create drafts of newsletters or announcements from notes.
  • ✓If you need to quickly email the content of a report or article.

Example of what to ask your AI

“Draft an email using the content from the document 'Monthly Report' to my boss.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/recipe-draft-email-from-doc/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/recipe-draft-email-from-doc/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool first reads the content from the document you specify. Then, it copies that text and inserts it as the body of a new Gmail message, ready for you to review and send.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-draft-email-from-doc/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'
FAQ

Do I need to have both Google Docs and Gmail open?

No, you just need access to them. The tool handles the communication between them for you.

Can I choose who the email is sent to?

Yes, you can specify the recipient, subject, and body of the email when using the tool.

What happens if the document is very long?

The tool will try to copy all the content. If it's excessively long, there might be limitations depending on Gmail.

Details

Original description by the author

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

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6322
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills