Handle WhatsApp customer service chats with Google Gemini and Google Sheets
UnknownWhat this workflow does
This AI workflow has 18 nodes and runs on Open Wa events (message.received, message.reaction). Along the way it connects Google Sheets, Google Gemini Chat Model and Openwa (community).
How it runs
Trigger: On Open Wa events (message.received, message.reaction).
- If: checks a condition and branches into true / false
- Set AI Handle (Code): runs custom JavaScript code
- Payload Check (Edit Fields (Set)): sets 3 fields: payload.from, payload.source, payload._data.key.fromMe
- Find Session Row (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Delete Session Row (Google Sheets): delete
- If: checks a condition and branches into true / false
- Session Lookup (Google Sheets): uses Google Sheets
- Check Mode (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 2 tools (Think, Database Company); memory: Simple Memory
…plus 3 more steps. See the full node list below.
Services it uses
Other Google Gemini + Google Sheets templates (819)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @rmyndharis/n8n-nodes-openwa is verified or supports 3.0 (used in Send a text message).
- Check that @rmyndharis/n8n-nodes-openwa is verified or supports 3.0 (used in OpenWA Trigger).
Nodes used (11)
- Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Open Wa
@rmyndharis/n8n-nodes-openwa.openWa - Open Wa Trigger
@rmyndharis/n8n-nodes-openwa.openWaTrigger - If
n8n-nodes-base.if - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick Overview This workflow handles WhatsApp customer service via OpenWA, using Google Gemini and a Google Sheets knowledge base to answer personal chats, while routing conversations to a human queue in Google Sheets when escalation is needed. How it works…