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
Skills เพิ่มเติมจาก Google
gws-modelarmor-sanitize-response
Google
Google Model Armor: ทำความสะอาดการตอบสนองของโมเดลผ่านเทมเพลต Model Armor
gws-people
Google
จัดการรายชื่อผู้ติดต่อและโปรไฟล์
gws-shared
Google
CLI ของ gws: รูปแบบที่ใช้ร่วมกันสำหรับการตรวจสอบสิทธิ์, แฟลกระดับโลก, และการจัดรูปแบบผลลัพธ์
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: จัดการรายการงานและงานต่างๆ