Templates / Triage emails and build a morning digest with a local Ollama LLM

Triage emails and build a morning digest with a local Ollama LLM

Ready for 3.0

by Salahuddin Uqaili · 34 views · created 2026-05-21 · Ticket Management, AI Summarization

Ready 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.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 11 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Ollama Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Simulate Email Input (Code): runs custom JavaScript code
  2. Record Error Information (Code): runs custom JavaScript code
  3. AI Email Classifier (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama AI Model
  4. Parse Email Categories (Code): runs custom JavaScript code
  5. Check If Urgent Email (If): checks a condition and branches into true / false
  6. Compile Morning Email Digest (Code): runs custom JavaScript code
  7. Create Urgent Email Alert (Code): runs custom JavaScript code

Services it uses

Ollama Chat Model

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

Quick overview This workflow triages emails with a local Ollama LLM (gemma4:e4b), flags urgent messages for immediate alerting, and compiles a morning digest grouped by urgency categories. How it works 1. Runs manually and generates a sample set of incoming…

Excerpt from Salahuddin Uqaili's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.