Templates / Run a 24/7 website chatbot with OpenAI, Google Sheets, and Gmail

Run a 24/7 website chatbot with OpenAI, Google Sheets, and Gmail

Ready for 3.0

by Tanjimul Islam · 0 views · created 2026-10-21 · Support Chatbot, AI RAG

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 16 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model, Data table, Google Sheets and Gmail.

How it runs

Trigger: When a chat message arrives.

  1. Validate Input (Edit Fields (Set)): sets 3 fields: sessionId, userMessage, receivedAt
  2. Input Is Valid? (If): checks a condition and branches into true / false
  3. AI Chatbot Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Knowledge Base Search); memory: Visitor Session Memory; output parser: Grounded Answer Parser
  4. Empty Message Response (Edit Fields (Set)): sets 1 field: output
  5. Lead Ready? (If): checks a condition and branches into true / false
  6. Save Lead To Google Sheets (Google Sheets): append
  7. Answer Supported? (If): checks a condition and branches into true / false
  8. Notify Owner via Gmail (Gmail): uses Gmail
  9. Send Answer (Edit Fields (Set)): sets 1 field: output
  10. Log Unanswered Question (Data table): uses Data table

…plus 1 more step. See the full node list below.

Services it uses

OpenAI Chat ModelData tableGoogle SheetsGmail

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 (11)

From the author

Quick Overview This workflow powers an @n8n/chat website widget that answers visitor questions using an n8n Data Table knowledge base via OpenAI, keeps per-session memory, captures leads to Google Sheets only with consent, emails you via Gmail, and logs…

Excerpt from Tanjimul Islam'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.