Templates / Triage Gmail and draft replies with Ollama, Telegram and Google Sheets

Triage Gmail and draft replies with Ollama, Telegram and Google Sheets

Ready for 3.0

by Vonn ✓ · 83 views · created 2026-07-09

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-10-19.

What this workflow does

This AI workflow has 18 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Gmail, Ollama Chat Model, Telegram and Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Get Unread Emails (Gmail): get many
  2. BuildClassifierRequest (Code): runs custom JavaScript code
  3. Classifier Chain (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama Chat Model; output parser: Structured Output Parser
  4. If: checks a condition and branches into true / false
  5. Extractor Chain (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama Chat Model; output parser: Extractor Output Parser
  6. Skip-NoActionNeeded (Edit Fields (Set)): sets 2 fields: status, skip_reason
  7. Drafter Chain (Basic LLM Chain): sends a prompt to an LLM, with model: Ollama Chat Model; output parser: Drafter Output Parser
  8. Telegram: send and wait for a reply
  9. Approved? (If): checks a condition and branches into true / false
  10. Create Draft Reply (Gmail): work with draft

…plus 2 more steps. See the full node list below.

Services it uses

GmailOllama Chat ModelTelegramGoogle Sheets

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 (10)

From the author

Quick Overview This workflow pulls unread Gmail messages, uses a local Ollama Llama 3.1 model to classify and extract action items, drafts a reply, and sends an approval request to Telegram before creating a threaded Gmail draft and logging the decision to…

Excerpt from Vonn'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.