Email triage and morning digest with a local Ollama model (n8n)
- Models & engines
- Ollama with gemma4:e4b (tested)
What they built
An n8n community workflow by Salahuddin Uqaili that triages email with a local Ollama model and compiles a morning digest grouped by urgency.
Setup
- n8n 1.19.4+ (LangChain nodes)
- Ollama with gemma4:e4b (tested)
How it works
- Each email goes to Ollama with a prompt returning structured JSON: URGENT, REPLY_TODAY, FYI or JUNK
- Malformed responses fall back to a safe default
- URGENT emails get a formatted alert
- All emails are aggregated into one digest with suggested actions and totals
- Errors produce a structured error record
Do it yourself
- Import the template into self-hosted n8n
- Create an Ollama credential (e.g. http://host.docker.internal:11434)
- Pull gemma4:e4b or change the model
- Replace the sample generator with Gmail or Outlook
- Add delivery for alerts and the digest (Slack, Telegram or email)
Similar setups
An n8n and Ollama email triage prototype: Qwen3 8B found the task, but not whose it was
Adam wired n8n to Qwen3 8B in Ollama on an Apple Silicon Mac to turn emails into structured task assessments, and found the model spotted actions but missed when they belonged to someone else.
Turning clients' rambling WhatsApp voice notes into n8n workflow drafts with Whisper and Gemma 4
An n8n freelancer in Tabasco, Mexico runs Whisper and Gemma 4 E4B on a 16 GB laptop to turn Spanish client voice notes into an importable n8n workflow plus a WhatsApp reply listing the questions the client forgot to answer.
Hush: a local Gemma 2B notification filter that only interrupts for real emergencies
Rajan Mishra built Hush, which runs Gemma 2B via Ollama on-device to classify macOS notifications and IMAP email, batching everything into a four-line brief every three hours unless a scored emergency breaks through.
Torpor: an overnight inbox digest that runs on Qwen3 8B and local embeddings
A developer built Torpor, a command-line tool that reads a night's worth of messages, sorts out the few that need a human, and writes a short summary, all with Ollama models on a laptop and no internet.