recipe-create-gmail-filter
作成者: Google
受信メッセージを自動的にラベル付け、スター付け、または分類するGmailフィルタを作成します。
npx skills add https://github.com/googleworkspace/cli --skill recipe-create-gmail-filterCreate a Gmail Filter
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail
Create a Gmail filter to automatically label, star, or categorize incoming messages.
Steps
- List existing labels:
gws gmail users labels list --params '{"userId": "me"}' --format table - Create a new label:
gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}' - Create a filter:
gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "[email protected]"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}' - Verify filter:
gws gmail users settings filters list --params '{"userId": "me"}' --format table
Googleのその他のスキル
gws-modelarmor-sanitize-response
Google
Google Model Armor: モデルアーマーテンプレートを使用してモデルの応答をサニタイズします。
gws-people
Google
Google People: 連絡先とプロフィールを管理します。
gws-shared
Google
gws CLI: 認証、グローバルフラグ、出力フォーマットのための共有パターン。
gws-sheets
Google
Google Sheets: スプレッドシートの読み書きを行います。
gws-sheets-append
Google
Google Sheets: スプレッドシートに行を追加します。
gws-sheets-read
Google
Google Sheets: スプレッドシートから値を読み取ります。
gws-slides
Google
Google Slides:プレゼンテーションの読み取りと書き込みを行います。
gws-tasks
Google
Google Tasks: タスクリストとタスクを管理します。