Build an automated email assistant using this powerful n8n workflow. Classify new emails with Azure OpenAI, log data in Google Sheets, and interact with your mail list via a Telegram bot agent.
Download this n8n workflow template and start using it instantly.
This sophisticated n8n workflow addresses email management fatigue by automating the process of classification, logging, and notification. It acts as a personal email assistant, ensuring critical communications (like security alerts or personal messages) result in immediate Telegram notifications. Unlike standard filters, this system uses an Azure OpenAI model for intelligent classification via the E-Mail Text Classifier n8n node, logging all critical mail details into Google Sheets with a 'NOT CHECKED' status. Furthermore, the second half of the n8n workflow sets up a fully interactive AI Agent accessible via a Telegram n8n trigger. Users can chat with the bot, review their unread email list, and even instruct the agent to update the status of emails in Google Sheets. This highly functional n8n workflow demonstrates complex integration between messaging, databases, and cutting-edge AI services.
The overall n8n workflow operates in two distinct, yet interconnected, paths:
Get User ID n8n node) and extracts core details like subject, sender, and date via the Mail Information (Set) n8n node.If Null n8n node ensures all critical mail details are present before proceeding.E-Mail Text Classifier n8n node, powered by Azure OpenAI, categorizes the email into predefined groups (Security, Personal, Updates, Advertisement, Unimportant).Append Mail Details Google Sheets n8n node logs the subject and sets the initial status to 'NOT CHECKED'.Append User ID n8n node logs the user's chat ID for future notifications in Part 1.Get E-Mails Google Sheets n8n node retrieves all emails currently marked as 'NOT CHECKED'.AI Agent n8n node (leveraging Azure OpenAI and conversation Memory) processes the user's request, referencing the list of unread emails. Crucially, this agent has access to the Update Status Google Sheets n8n node tool, allowing the user to conversationaly mark emails as checked.Reply To User n8n node sends the AI Agent's response back to the user via Telegram.To deploy this powerful n8n workflow, follow these steps:
gpt-4o-mini).maildata (containing 'E-Mail Subject' and 'Status' columns) and one for useridsmailassistant (containing the 'telegram_id' column). Email Trigger (IMAP): The initial n8n trigger. It monitors the specified email account for new, unread (UNSEEN) messages.
Google Sheets (Get User ID/Get E-Mails/Append Mail Details/Append User ID): Multiple instances of this n8n node manage data persistence. They are crucial for storing the user's Telegram ID, retrieving 'NOT CHECKED' emails, and logging new email subjects.
E-Mail Text Classifier (Langchain): This uses an Azure OpenAI language model (gpt-4o-mini) to analyze the email subject and context to assign a category (Security, Personal, Updates, etc.).
AI Agent (Langchain): The conversational core, driven by an Azure OpenAI LLM. It processes user requests from Telegram. This powerful n8n node maintains conversation context via the Memory n8n node.
Google Sheets Tool (Update Status): Integrated as a tool for the AI Agent n8n node, allowing the AI to execute specific database operations—namely, updating the 'Status' column in the Google Sheet based on user instructions.
If (If Null): A flow control n8n node that ensures the extracted mail data is not empty before proceeding to the classification step.
Instantly catch new Mailchimp subscriber events using this specific n8n workflow. Configure the n8n trigger to start immediate post-subscription automation.

Use this comprehensive n8n workflow to automatically scrape emission factors, calculate Scope 1, 2, and 3 carbon footprints, and generate detailed, compliance-ready ESG reports saved directly to Google Drive. Explore powerful n8n templates for sustainability.

Use this powerful n8n workflow to automate lead capture. Receive web form data via an n8n trigger (Webhook), process the input, and instantly create opportunities in Odoo CRM.

Use this powerful n8n workflow to automatically download Revolut statements, categorize expenses using GPT-4 via LangChain, and store the structured data in a Supabase database. Ideal n8n templates for finance.


Delusional of 5 years!🎉🎉







































