SKILL.md
readonlyread-only
name
recipe-save-email-to-doc
description
將 Gmail 郵件內容儲存到 Google 文件,以便歸檔或參考。
將 Gmail 郵件儲存到 Google 文件
先決條件: 載入以下技能以執行此配方:
gws-gmail、gws-docs
將 Gmail 郵件內容儲存到 Google 文件,以便歸檔或參考。
步驟
- 尋找郵件:
gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:boss@company.com"}' --format table - 取得郵件內容:
gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}' - 建立文件並寫入內容:
gws docs documents create --json '{"title": "Saved Email - Important Update"}' - 寫入郵件內文:
gws docs +write --document-id DOC_ID --text 'From: boss@company.com\nSubject: Important Update\n\n[EMAIL BODY]'






