Templates / Organize Gmail inbox with Groq AI, Google Sheets and Google Tasks

Organize Gmail inbox with Groq AI, Google Sheets and Google Tasks

Ready for 3.0

by WeblineIndia ✓ · 73 views · created 2026-04-22 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Worth a look

Nodes used (9)

GmailGroq Chat ModelAI AgentGoogle TasksGoogle Sheets

What it does

Smart Inbox Organizer using Gmail, Groq AI, Google Sheets & Google Tasks This workflow automatically organizes your Gmail inbox using AI. It reads every incoming email, classifies it into Work, Personal, Financial or Newsletter, applies the correct Gmail label, logs the email details into Google Sheets and creates a task for financial emails. Quick Setup Steps 1. Login to your n8n account. 2. Connect Gmail, Google Sheets, Google Tasks and Groq API 2. Create Gmail labels: Work, Personal, Financial, Newsletter 3. Update label IDs in Gmail nodes if needed 4. Set up a Google Sheet with columns: Sender, Subject, Category, Timestamp 5. Test the AI classification output 6. Activate the workflow What It Does The Smart Inbox Organizer workflow automates email management by combining Gmail triggers with AI-powered classification. Every time a new email arrives, the workflow captures its content and standardizes key fields like sender, subject and body. An AI agent then analyzes the email and assigns it to one of four categories: Work, Personal, Financial or Newsletter. Based on this classification, the workflow routes the email to the appropriate action path. It not only applies Gmail labels automatically but also logs structured data into Google Sheets for tracking and analytics. Additionally, financial emails are treated with higher importance by creating a task in Google Tasks for manual review, ensuring nothing critical is missed. Who It's For - Professionals managing high email volumes - Freelancers and business owners tracking financial emails - Teams wanting structured inbox organization - Anyone looking to automate Gmail sorting and reduce manual effort Requirements To use this workflow, you will need: - n8n account (self-hosted or cloud) - Gmail account (with OAuth2 configured) - Google Sheets account - Google Tasks account - Groq API credentials (or any compatible LLM API) - Pre-created Gmail labels: - Work - Personal - Financial - Newsletter How It Works & Set Up Workflow Overview 1. Trigger: Watch Incoming Emails - Polls Gmail every minute for new emails 2. Normalize Email Fields - Extracts and standardizes: - Sender - Subject - Body - Timestamp - Email ID 3. AI Classification - Uses Groq AI model to classify email into: - Work - Personal - Financial - Newsletter 4. Merge Data - Combines original email data with AI output 5. Clean Category - Ensures consistent category output - Defaults to Personal if AI response is empty 6. Log to Google Sheets - Appends email details into a spreadsheet with: - Sender - Subject - Category - Timestamp 7. Routing - Switch node routes emails based on category 8. Actions per Category - Work → Apply Work Label - Personal → Apply Personal Label - Financial → Apply Finance Label + Create Google Task - Newsletter → Apply Newsletter Label Setup Instructions 1. Connect Credentials - Gmail OAuth2 - Google Sheets OAuth2 - Google Tasks OAuth2 - Groq API (or alternative LLM) 2. Configure Gmail Labels Ensure these labels exist in your Gmail: - Work - Personal - Financial - Newsletter Update label IDs in nodes according to your Gmail. 3. Configure Google Sheets - Use the provided document or create your own - Ensure columns: - Sender - Subject - Category - Timestamp 4. Configure AI Node - Verify prompt structure - Ensure output returns only one of: - Work / Personal / Financial / Newsletter 5. Activate Workflow - Test with sample emails - Activate once verified How To Customize Nodes - AI Agent Node - Modify prompt to add more categories - Adjust classification rules - Switch Node - Add new routing conditions for additional categories - Gmail Nodes - Change label IDs - Add actions like mark as read, star, etc. - Google Sheets Node - Add more columns (e.g., email body, priority) - LLM Replacement - Replace Groq model with OpenAI, Gemini or any supported LLM Add-ons (Extend Functionality) - Slack/Email notifications for important emails - Priority scoring using AI - Auto-reply to specific categories - CRM in

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.