Answer customer questions on WhatsApp with OpenAI, Gmail, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, OpenAI Chat Model, HTTP Request and Gmail and 1 more.
How it runs
Trigger: On WhatsApp events (messages).
- Configuration (Edit Fields (Set)): sets 12 fields: company_name, company_root_url, ai_model…
- Is a text question? (If): checks a condition and branches into true / false
- Website Support Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (get_page, list_links); memory: Conversation Memory; output parser: Answer Parser
- Needs a human? (If): checks a condition and branches into true / false
- Alert the support team by email (Gmail): uses Gmail
- Send the answer on WhatsApp (WhatsApp Business Cloud): send
- Log the conversation in Google Sheets (Google Sheets): append
Services it uses
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 (12)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Http Request Tool
n8n-nodes-base.httpRequestTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - No Operation, do nothing
n8n-nodes-base.noOp - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow answers incoming WhatsApp customer questions using an OpenAI-powered agent that reads your live website via HTTP requests, escalates unclear or sensitive cases to your support team via Gmail, and logs each conversation to Google…