Use this powerful n8n workflow to automatically monitor incoming emails, categorize their content using an OpenRouter AI agent, and track key metrics in Google Sheets. Ideal n8n templates for ops.
Download this n8n workflow template and start using it instantly.
Business Operations teams needing to automatically categorize inbound support or sales emails.
Automation Specialists looking for advanced n8n templates involving AI parsing and conditional database logic.
Users aiming to leverage low-cost AI models via OpenRouter within an n8n workflow.
Anyone seeking a robust email processing n8n node solution.
Manually sorting and categorizing incoming business emails can be time-consuming and prone to human error. This sophisticated n8n workflow solves this by instantly analyzing new emails using a powerful AI agent, determining the email's category (e.g., 'Support Request', 'Billing Inquiry', 'Sales Lead'), and automatically updating a master Google Sheet.
This setup provides immediate insights into request volume distribution without requiring human intervention. By using the AI Agent n8n node with OpenRouter, you gain highly accurate classification, ensuring that your data tracking in Google Sheets is always up-to-date. This specific n8n workflow demonstrates a best-practice approach for merging communications, artificial intelligence, and data logging in one seamless system.
This automation starts immediately when the initial n8n trigger fires upon receiving a new email, beginning the data processing pipeline:
Email Trigger (IMAP) n8n trigger monitors a specified email inbox for new messages and passes the raw content forward.Get row(s) in sheet Google Sheets n8n node, typically used here to load configuration details or existing category lists needed for the AI context.AI Agent n8n node. This agent is configured to use the oAI OSS (OpenRouter) language model and the Category & Request structured output parser. It processes the email body and determines a standardized category and a summary of the request.Find Category Google Sheets n8n node to check if the category identified by the AI already exists in the tracking sheet.If n8n node evaluates the lookup result:Edit Fields n8n node, and the Update Request Count Google Sheets n8n node increments the counter associated with that category.Append row in sheet Google Sheets n8n node creates a new entry, initializing its count to one. This entire process forms a highly efficient n8n workflow for intelligent email management.To deploy this expert n8n workflow, follow these setup steps:
Email Trigger (IMAP) n8n node with your email server credentials (hostname, port, username, password) and specify the folder to monitor.oAI OSS n8n node, which requires an OpenRouter API key. Ensure the AI Agent is correctly configured with a system prompt guiding it to categorize the incoming email content. Email Trigger (IMAP): The initial n8n trigger. It monitors a specified email account via the IMAP protocol, starting the workflow execution whenever a new email is detected in the monitored folder.
Google Sheets (Get row(s) in sheet / Find Category / Update Request Count / Append row in sheet): These multiple Google Sheets n8n node instances handle all data persistence and lookup logic. They are responsible for reading existing categories, checking if a new category needs creation, and updating the request count.
AI Agent: The orchestration n8n node that manages the AI process. It takes the email data, uses the language model to generate structured output, and passes the result to the subsequent steps.
oAI OSS (OpenRouter Chat): The core Language Model provider. This n8n node connects to OpenRouter to utilize various OSS models for cost-effective, high-quality categorization and summarization based on the prompt.
Category & Request (Structured Output Parser): This n8n node ensures that the AI's output is strictly formatted (e.g., as JSON with defined fields for 'category' and 'request_summary'), making it reliable for the downstream Google Sheets n8n node operations.
If: A critical flow control n8n node. It directs the workflow based on whether the AI-identified category already exists in the Google Sheet, enabling correct conditional logic for updating vs. appending data.
Use this n8n workflow template to automatically sort and label incoming Gmail emails using GPT-4o mini. Filter unlabeled messages and categorize them accurately using the n8n node structure.

Automate support ticket categorization using this powerful n8n workflow. Integrates Typeform, Google Gemini AI, and Google Sheets for real-time reporting. Ideal n8n templates for ops teams.

Automate support email routing using n8n and AI. This n8n workflow classifies emails, assigns priority, and creates structured, actionable tasks in Dart based on category.

Deploy a robust, centralized error notification n8n workflow template. Receive instant alerts on Telegram, Slack, Gmail, or WhatsApp when any other n8n workflow fails.

Use this robust n8n workflow to automatically aggregate customer reviews from Trustpilot, Google, and Facebook APIs, normalize the data, and save it directly to Google Sheets for centralized reporting.








































