Smart email draft generator
Ready for 3.0Ready 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-12-01.
What this workflow does
This AI workflow has 5 nodes and runs when a new email arrives over IMAP. Along the way it connects Ollama Model and Gmail.
How it runs
Trigger: When a new email arrives over IMAP.
- Process Email with AI (Basic LLM Chain): sends a prompt to an LLM, with model: Custom AI Model
- Prepare Email Content (Edit Fields (Set)): sets 3 fields: from, subject, text
- Save as Gmail Draft (Gmail): work with draft
Services it uses
Other Gmail + Ollama templates (18)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Ollama Model
@n8n/n8n-nodes-langchain.lmOllama - Edit Fields (Set)
n8n-nodes-base.set - Gmail
n8n-nodes-base.gmail
From the author
AI-Powered Email Draft Automation Workflow In this guide, we’ll walk you through setting up an AI-driven workflow that automatically processes incoming emails using a custom AI model (e.g., Llama), prepares email content, and saves it as a Gmail draft. Ready…