What it does
An n8n workflow that checks unread Gmail messages every hour and sends each one to OpenAI, which returns one of four labels: Action, Receipt, Informational or Spam. It applies the matching Gmail label, moves spam to the trash and marks each processed email as read. It uses community nodes, so it needs a self-hosted n8n.
Use cases
- 01Flagging emails that need a reply
- 02Finding receipts under one Gmail label
- 03Moving spam to the trash automatically
Connects
Gmail · AI Agent · OpenAI Chat Model · Structured Output Parser