recipe-forward-labeled-emails

Locate Gmail messages by label and automatically forward them to another recipient. Requires the gws-gmail skill as a prerequisite dependency Three-step workflow: search messages by label, retrieve full message content, and forward to a specified email address Supports custom label queries and preserves original subject and body in forwarded messages Designed as a recipe for productivity automation within agent workflows

INSTALLATION
npx skills add https://github.com/googleworkspace/cli --skill recipe-forward-labeled-emails
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

Forward Labeled Gmail Messages

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail

Find 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](https://github.com/googleworkspace/cli/blob/HEAD/skills/recipe-forward-labeled-emails/mailto:manager@company.com) --subject 'FW: [Original Subject]' --body 'Forwarding for your review:

[Original Message Body]'

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card