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](

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 1. π¬ Gmail Trigger β Activates on new email received. 2. π« Filter β Skips emails that already have a label. 3. π§ AI Agent (GPT-4o mini) β Analyzes the message and decides which label fits best. 4. π§Ύ Structured Output Parser β Formats the AI output into a clean JSON. 5. π Switch Node β Routes each email to the correct label path based on the AI result. 6. π·οΈ 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 1. Open the workflow and adjust the trigger interval (e.g., every minute, hours or Custom using Cron β±οΈ) 2. Check that the Filter skips emails with existing labels 3. Define your categories in the AI Agent prompt and make sure they match the Gmail labels 4. Configure the Switch Node conditions for each category 5. Ensure each Gmail Label Node applies the correct label 6. 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
Download the workflow JSON file after purchase.
Open n8n β click the menu β Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.