Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Find a Gmail message by search query and save its body into a new Google Docs document.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: recipe-save-email-to-doc3description: "Save a Gmail message body into a Google Doc for archival or reference."4metadata:5version: 0.22.56openclaw:7category: "recipe"8domain: "productivity"9requires:10bins:11- gws12skills:13- gws-gmail14- gws-docs15---1617# Save a Gmail Message to Google Docs1819> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`, `gws-docs`2021Save a Gmail message body into a Google Doc for archival or reference.2223## Steps24251. Find the message: `gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:[email protected]"}' --format table`262. Get message content: `gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'`273. Create a doc with the content: `gws docs documents create --json '{"title": "Saved Email - Important Update"}'`284. Write the email body: `gws docs +write --document-id DOC_ID --text 'From: [email protected]29Subject: Important Update3031[EMAIL BODY]'`3233