Auto-label incoming Gmail messages with AI nodes
n8n template #2197Summary
Use templateThis workflow uses AI to analyze the content of every new message in Gmail and then assigns specific labels, according to the context of the email. Default configuration of the workflow includes 3 labels: „Partnership” - email about sponsored content or cooperation, „Inquiry” - email about products, services, „Notification” - email that doesn't require response. You can add or edit labels and descriptions according to your use case. 🎬 See this workflow in action in my YouTube video about automating Gmail. How it works? Gmail trigger performs polling every minute for new messages (you can change the trigger interval according to your needs). The email content is then downloaded and forwarded
Hand off to your agent
Prompt
Help me set up the n8n workflow "Auto-label incoming Gmail messages with AI nodes" (https://n8n.io/workflows/2197). It uses: Gmail, Basic LLM Chain, OpenAI Chat Model, Structured Output Parser. 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
Similar workflows
NameViews
- Gmail AI Auto-Responder: Create Draft Replies to incoming emails55K
- Automate social media content with AI for Instagram, Facebook, LinkedIn & X16K
- 🎨 AI Design Team - Generate and Review AI Images with Ideogram and OpenAI9,990
- Automate SEO blog creation + social media with GPT-4, Perplexity and WordPress5,798
- Automated Voice Appointment Reminders with Google Calendar GPT ElevenLabs Gmail5,335
- Explore n8n Nodes in a Visual Reference Library5,197
- Voice-to-Email Response System with Telegram, OpenAI Whisper & Gmail2,927
- Automated Invoice Processing System with OCR & AI - AP Automation with Airtable1,326