Auto-respond and classify WhatsApp leads with Ollama AI and log to Google Sheets
Ready for 3.0What 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).
- 🔧 Parse WhatsApp Message (Code): runs custom JavaScript code
- 🤖 AI Intent Classifier (AI Agent): runs an AI agent, with model: Ollama Chat Model; memory: Simple Memory
- 🎯 Extract Classification (Code): runs custom JavaScript code
- 🔀 Route by Intent (Switch): routes items into 5 branches
- 💬 Hot Lead Reply (Code): runs custom JavaScript code
- 💬 Warm Lead Reply (Code): runs custom JavaScript code
- 💬 Support Reply (Code): runs custom JavaScript code
- 🧠 Smart Qualification Reply (Code): runs custom JavaScript code
- 📊 Log Hot Lead (Google Sheets): append or update
- 📊 Log Warm Lead (Google Sheets): append or update
…plus 7 more steps. See the full node list below.
Services it uses
Other Google Calendar + Google Sheets templates (193) · Other WhatsApp + Google Sheets templates (119) · Other WhatsApp + Google Calendar templates (32)
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 (9)
- Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Google Calendar
n8n-nodes-base.googleCalendar - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Ollama Chat Model
@n8n/n8n-nodes-langchain.lmChatOllama
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…