Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Email Automation

Email Automation

Label Gmail Emails Automatically with OpenAI

When a new email arrives in Gmail, OpenAI picks fitting labels from your existing ones and applies them to the message.

What it does

## Add AI labels to Gmail messages With this workflow you can automatically set labels for your Gmail message according to its content. In this workflow available are 3 labels: "Partnership", "Inquiry" and "Notification". Feel free to adjust labels according to your needs. Please remember to set label names both in your Gmail account and workflow.

The steps

  1. Gmail trigger
  2. Get message content
  3. Assign labels for message
  4. OpenAI Chat
  5. JSON Parser
  6. Set label values
  7. Get all labels
  8. Split out assigned labels
  9. Merge corresponding labels
  10. Aggregate label IDs
  11. Add labels to message

Similar automations