Intelligent Email Organization with AI-Powered Content Classification for Gmail
n8n template #4557Summary
Use templateThis workflow leverages AI to intelligently analyze incoming Gmail messages and automatically apply relevant labels based on the email content. The default configuration includes the following labels: Newsletter: Subscription updates or promotional content. Inquiry: Emails requesting information or responses. Invoice: Billing and payment-related emails. Proposal: Business offers or collaboration opportunities. Action Required: Emails demanding immediate tasks or actions. Follow-up Reminder: Emails prompting follow-up actions. Task: Emails containing actionable tasks. Personal: Non-work-related emails. Urgent: Time-sensitive or critical communications. Bank: Banking alerts and financial state
How to set it up
- Open template #4557 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create 2 credentials under Credentials → Add credential: Gmail, OpenAI Chat Model. Then open each of those nodes and pick the credential.
- Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Intelligent Email Organization with AI-Powered Content Classification for Gmail" (https://n8n.io/workflows/4557). It uses: Gmail, Code, AI Agent, OpenAI Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Questions
Yes. Niranjan G published it free on n8n.io as a verified creator, and it has 21K views. It runs on n8n Cloud or a self-hosted n8n instance.
Gmail, OpenAI Chat Model. The other 2 nodes are built into n8n.
Similar workflows
NameViews
- ✨🤖Automate Multi-Platform Social Media Content Creation with AI205K
- ✨🩷Automated Social Media Content Publishing Factory + System Prompt Composition55K
- Create & Upload AI-Generated ASMR YouTube Shorts with Seedance, Fal AI, and GPT-424K
- Advanced AI Demo (Presented at AI Developers #14 meetup)24K
- WebSecScan: AI-Powered Website Security Auditor18K
- Automate Email & Calendar Management with Gmail, Google Calendar & GPT-4o AI14K
- AI: Summarize podcast episode and enhance using Wikipedia13K
- Turn Emails into AI-Enhanced Tasks in Notion (Multi-User Support) with Gmail, Airtable and Softr7,647