Triage emails and build a morning digest with a local Ollama LLM
Ready for 3.0What 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).
- Simulate Email Input (Code): runs custom JavaScript code
- Record Error Information (Code): runs custom JavaScript code
- AI Email Classifier (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama AI Model
- Parse Email Categories (Code): runs custom JavaScript code
- Check If Urgent Email (If): checks a condition and branches into true / false
- Compile Morning Email Digest (Code): runs custom JavaScript code
- Create Urgent Email Alert (Code): runs custom JavaScript code
Services it uses
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Error Trigger
n8n-nodes-base.errorTrigger
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…