recipe-create-gmail-filter
bởi Google
Tạo bộ lọc Gmail để tự động gắn nhãn, gắn sao hoặc phân loại thư đến.
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
Thêm skills từ Google
gws-modelarmor-sanitize-response
Google
Google Model Armor: Làm sạch phản hồi của mô hình thông qua một mẫu Model Armor.
gws-people
Google
Quản lý danh bạ và hồ sơ.
gws-shared
Google
gws CLI: Các mẫu dùng chung cho xác thực, cờ toàn cục và định dạng đầu ra.
gws-sheets
Google
Google Sheets: Đọc và ghi bảng tính.
gws-sheets-append
Google
Google Sheets: Thêm một hàng vào bảng tính.
gws-sheets-read
Google
Google Sheets: Đọc giá trị từ một bảng tính.
gws-slides
Google
Google Slides: Đọc và viết bài thuyết trình.
gws-tasks
Google
Google Tasks: Quản lý danh sách tác vụ và tác vụ.