All products

Create a Gmail filter with AI

Set a persistent rule for messages from a particular sender. Choose whether matching mail should receive a label, leave the inbox or both.

To create a Gmail filter with AI, describe one kind of incoming message and where it should go. The recipe-create-gmail-filter skill sets up the rule in Gmail itself. Receipts are a useful starting point: you may want to keep them together without treating every new receipt as something that needs your attention.

Its example both labels matching messages and archives them. Those are separate decisions. If you still want receipts in the inbox, ask for the label alone before the rule is created. The filter remains active in Gmail after the agent session ends.

What it does

  • Inspect the labels already in use
  • Create a dedicated label for incoming mail
  • Match messages by sender address
  • Choose labelling alone or labelling plus archiving
  • Check the saved filter in the account

Install and use

  1. Install the recipe, gws and the Gmail companion. Connect the Google account whose labels and filters you are authorised to manage.
  2. Ask “Label mail from this receipts address, but keep it in my inbox. Show me the rule before saving.”
  3. Inspect the stored condition and check the next matching message.

FAQ

Source

Made by Google Workspace CLI contributors. Original skill: recipe-create-gmail-filter, published on GitHub under the Apache-2.0 licence.

View on GitHub