Recipe Forward Labeled Emails
googleworkspace/cliThis skill enables users to automatically find Gmail messages with a specific label and forward them to another email address. It provides capabilities to search for labeled emails, retrieve their content, and forward the messages in a structured and automated manner. Ideal for users seeking to streamline email forwarding workflows or integrate Gmail message management into automation or AI-powered processes.
Forward Labeled Gmail Messages
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmailFind Gmail messages with a specific label and forward them to another address.
Steps
- Find labeled messages:
gws gmail users messages list --params '{"userId": "me", "q": "label:needs-review"}' --format table - Get message content:
gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}' - Forward via new email: `gws gmail +send --to manager@company.com --subject 'FW: [Original Subject]' --body 'Forwarding for your review: [Original Message Body]'`
GitHub Owner
Owner: googleworkspace
GitHub Links
- Website: https://developers.google.com/workspace
- Twitter: https://twitter.com/workspacedevs
Files
manager@company.com
SKILL.md
name: recipe-forward-labeled-emails version: 1.0.0 description: "Find Gmail messages with a specific label and forward them to another address." metadata: openclaw: category: "recipe" domain: "productivity" requires: bins: ["gws"] skills: ["gws-gmail"]
Forward Labeled Gmail Messages
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmailFind Gmail messages with a specific label and forward them to another address.
Steps
- Find labeled messages:
gws gmail users messages list --params '{"userId": "me", "q": "label:needs-review"}' --format table - Get message content:
gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}' - Forward via new email:
gws gmail +send --to manager@company.com --subject 'FW: [Original Subject]' --body 'Forwarding for your review: [Original Message Body]'