Recipe Draft Email From Doc

作者 googleworkspacea3768d0e82ad無授權條款31K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫昨天更新

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

AI 產生的概覽

讀取 Google 文件的文字,並將其用作 Gmail 郵件的內文。

功能
這個配方透過 gws docs 指令取得 Google 文件的內容,並複製文件內文文字。接著將這段文字作為 Gmail 郵件內文,連同指定主旨寄送給指定收件者。它僅包含操作說明,最終產出一封已寄出的郵件。
適用情境
當郵件內文已存在於 Google 文件中,且需要透過郵件寄送時使用。適合在文件中撰寫、再透過 Gmail 分送的電子報類更新或類似內容。
執行需求
需要 gws 命令列工具,並載入 gws-docs 與 gws-gmail 技能,同時具備對 Google 文件與 Gmail 的已驗證存取權限。不附帶指令碼,僅為操作說明。

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'

來源與署名

來源:googleworkspace/cli位於skills/recipe-draft-email-from-doc提交a3768d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架