Skip to content
FlowHubFluxonLab
A
AI Automationfree

Answer customer questions on WhatsApp with OpenAI, Gmail, and Google Sheets

by Dr. Firasadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentGmailGmailGoogle SheetsGoogle SheetsOpenAI Chat ModelOpenAI Chat ModelSSimple MemoryStructured Output ParserStructured Output ParserWhatsApp Business CloudWhatsApp Business Cloud
Share Post Share
WAReceive WhatsApp messageReceive WhatsAp…SeConfigurationIfIs a text question?Is a text quest…AgWebsite Support AgentWebsite Support…OpenAI Chat ModelOpenAI Chat Mod…MBConversation MemoryConversation Me…HRlist_linksHRget_pageOPAnswer ParserOutput Fixer ModelOutput Fixer Mo…IfNeeds a human?Alert the support team by emailAlert the suppo…Send the answer on WhatsAppSend the answer…NOIgnore non-text updatesIgnore non-text…Log the conversation in Google SheetsLog the convers…123456789101112131415
1/5
STEPS · 15
Starts on a Whats App event

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 Sheets. How it works Triggers when a new WhatsApp message is received. Loads configuration values (company name, website root URL, AI model, language rules, escalation email, and WhatsApp phone number ID) and extracts the customer phone number and message text. Ignores non-text WhatsApp updates (such as images, audio, and status messages). Uses OpenAI with conversation memory to navigate your website by listing links and fetching relevant pages, then generates a structured result containing an answer, escalation flag, sentiment, topic, and source URLs. If the agent marks the request as needing a human, sends an escalation email via Gmail to your support address with the customer details and the drafted reply. Sends the final plain-text reply back to the customer on WhatsApp. Appends the conversation details to a Google Sheets log.

Tags

n8nreference-onlyagentgmailgoogle-sheetslm-chat-open-aimemory-buffer-windowoutput-parser-structuredwhats-app
Connects
AAI AgentgmailGmailsheetsGoogle SheetsopenaichatmodelOpenAI Chat ModelSSimple MemorystructuredoutputparserStructured Output Parser
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes15
AddedJul 18, 2026

Related workflows

See all AI Automation
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
ACgmailsheets
free

Recommend supplier consolidation with Google Sheets, Groq, Slack and Gmail

Quick overview This workflow runs weekly to read supplier spend data from Google Sheets, detect overlapping suppliers across departments, estimate potential consolidation savings, and use Groq-hosted LLM analysis to assess risk and produce recommendations that are sent to Slack and emailed via Gmail. How it works Runs every week on a scheduled trigger. Reads supplier records from a Google Sheets spreadsheet and keeps key fields like supplier name, department, spend, risk rating, and stakeholder email. Groups and normalizes supplier names to find suppliers used by multiple departments and calculates estimated savings and an opportunity level. Sends each consolidation opportunity to a Groq chat model to evaluate risk versus savings and return a JSON decision and recommendation. Parses the AI JSON output, merges it with the calculated savings data, and formats a final recommendation record. Posts the recommendation to a Slack channel and emails a formatted report to the supplier stakeholder email address. Setup Connect your Google Sheets OAuth account and update the spreadsheet ID and sheet/tab to match your supplier records. Add a Groq API credential for the chat model used to evalua

by WeblineIndia