🚀 Built an AI Gmail Agent in n8n (Auto-Triage + Drafts Replies to Save Hours Daily)
Hey everyone 👋 I’m sharing a free, open-source AI email agent workflow I built in n8n for Gmail users — my very first workflow that I made entirely myself, without using any templates. 🔗 GitHub: https://github.com/m-saad125/ 🔗AI Agent: https://github.com/m-saad125/n8n-email-ai-agent What this workflow does This n8n workflow acts as an AI-powered email triage assistant: - 📥 Monitors incoming Gmail emails - 🧠 Uses an AI agent to classify each email into exactly one label - 🏷️ Automatically applies the correct Gmail label - ✍️ Drafts AI-generated replies only when a response is required - 🔄 Supports multiple AI models (easy to switch) Default labels (fully customizable) - To respond - FYI - Comment - Notification - Meeting Update - Awaiting reply - Collab Request - Marketing - Cold Email ⚠️ You must create these labels in Gmail first — or update the system prompt to use your own. Why I built this This workflow is for people and businesses who receive a large number of emails every day and don’t have time to read and respond to each one manually. - Inbox overload wastes hours daily - Some businesses even hire people just to manage email - Reading, sorting, and drafting replies takes real focus and time With this workflow, you simply activate it once, and the AI handles the triage and drafting automatically. You only review and send the important responses — everything else is organized for you. Bonus workflow 🎁 I also included a bonus n8n workflow in the same repository that automatically creates Gmail labels for you. - Useful if you have many labels and don’t want to create them manually - Just copy the provided Google Sheet - Paste it into the Google Sheets node - You can edit or rename labels easily before running it Built for learning and real use - Clean AI agent prompting - Strict classification logic - Easy to extend with Slack, Notion, or webhooks