Categorize and Label Incoming Gmail Emails Automatically with GPT-4o mini
Sort New Gmail messages by category with AI
Description
Sort New Gmail messages by category with AI ๐ฅ Who's it for This workflow is perfect for individuals or teams who receive a high volume of emails ๐ฅ and want to automatically organize them into Gmail labels ๐ท๏ธ using AI. No coding required! For sorting existing emails messages in your gmail inbox, please use this free workflow: Categorize and Label Existing Gmail Emails Automatically with GPT-4o mini. ๐ค What it does It automatically processes new Gmail emails, skips those that already have labels, sends the content to an AI Agent powered by GPT-4o mini ๐ง , and applies a relevant label based on the content. All labels must exist in Gmail beforehand. โ๏ธ How it works ๐ฌ Gmail Trigger โ Activates on new email received. ๐ซ Filter โ Skips emails that already have a label. ๐ง AI Agent (GPT-4o mini) โ Analyzes the message and decides which label fits best. ๐งพ Structured Output Parser โ Formats the AI output into a clean JSON. ๐ Switch Node โ Routes each email to the correct label path based on the AI result. ๐ท๏ธ Gmail Nodes โ Assign the Gmail label to the original email. ๐ Requirements Gmail account connected to n8n Pre-created labels in Gmail matching the AI categories OpenAI credentials with GPT-4o mini access n8n's AI Agent & Structured Output Parser nodes ๐ ๏ธ How to set up Open the workflow and adjust the trigger interval (e.g., every minute, hours or Custom using Cron โฑ๏ธ) Check that the Filter skips emails with existing labels Define your categories in the AI Agent prompt and make sure they match the Gmail labels Configure the Switch Node conditions for each category Ensure each Gmail Label Node applies the correct label Save and activate the workflow โ ๐จ How to customize the workflow Add or remove categories in the AI prompt & Switch Node Fine-tune prompt instructions to match your specific use case. An n8n automation workflow template by Arlin Perez.
Author
Arlin Perez
Platform
web
Pricing model
free
Categories
Tags
Capabilities
- 4 nodes
- 513 views