Templates / Reply to Arabic sales inquiries with Gmail and Ollama

Reply to Arabic sales inquiries with Gmail and Ollama

Ready for 3.0

by Muath Najmi · 1 views · created 2026-11-12 · Lead Nurturing, 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 9 nodes and runs on Gmail events. Along the way it connects Gmail and Ollama Chat Model.

How it runs

Trigger: On Gmail events.

  1. 🔧 Extract Email Data (Code): runs custom JavaScript code
  2. 🤖 AI Email Classifier (AI Agent): runs an AI agent, with model: Ollama Chat Model; output parser: Structured Output Parser
  3. 🎯 Extract Classification (Code): runs custom JavaScript code
  4. 🔀 Route by Category (Switch): routes items into 6 branches
  5. If: checks a condition and branches into true / false
  6. Reply to a message (Gmail): reply

Services it uses

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

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (📥 Gmail Trigger).

Nodes used (8)

From the author

Quick overview This workflow monitors a Gmail inbox for unread messages from a specified sender, extracts and cleans the email content, uses an Ollama (Qwen) model to classify sales inquiries in Arabic and draft replies, and automatically replies in Gmail…

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