Templates / Auto-respond and classify WhatsApp leads with Ollama AI and log to Google Sheets

Auto-respond and classify WhatsApp leads with Ollama AI and log to Google Sheets

Ready for 3.0

by Tony Adijah ✓ · 1,988 views · created 2026-02-17 · Lead Generation, AI Chatbot

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 20 nodes and runs on WhatsApp events (messages). Along the way it connects Google Sheets, Google Calendar, WhatsApp Business Cloud and Ollama Chat Model.

How it runs

Trigger: On WhatsApp events (messages).

  1. 🔧 Parse WhatsApp Message (Code): runs custom JavaScript code
  2. 🤖 AI Intent Classifier (AI Agent): runs an AI agent, with model: Ollama Chat Model; memory: Simple Memory
  3. 🎯 Extract Classification (Code): runs custom JavaScript code
  4. 🔀 Route by Intent (Switch): routes items into 5 branches
  5. 💬 Hot Lead Reply (Code): runs custom JavaScript code
  6. 💬 Warm Lead Reply (Code): runs custom JavaScript code
  7. 💬 Support Reply (Code): runs custom JavaScript code
  8. 🧠 Smart Qualification Reply (Code): runs custom JavaScript code
  9. 📊 Log Hot Lead (Google Sheets): append or update
  10. 📊 Log Warm Lead (Google Sheets): append or update

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

Services it uses

Google SheetsGoogle CalendarWhatsApp Business CloudOllama 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 (9)

From the author

Who is this for This workflow is built for sales teams, agencies, and small businesses that receive inbound leads via WhatsApp and want to automate their first response, lead qualification, and CRM logging — without missing a single message. What this…

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