Templates / Route chatbot requests to humans with OpenAI and Google Sheets

Route chatbot requests to humans with OpenAI and Google Sheets

Ready for 3.0

by Luis R. ✓ · 22 views · created 2026-06-12 · Support Chatbot, AI Chatbot

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 21 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets and OpenAI Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Set — Workflow Config (Edit Fields (Set)): sets 3 fields: escalationTimeoutMinutes, notifyChannel, holdingMessage
  2. Set — Input Mapping (Edit Fields (Set)): sets 4 fields: sessionId, userMessage, channel…
  3. Sheets — Lookup Processed Message (Google Sheets): uses Google Sheets
  4. Set — Normalize Lookup Result (Edit Fields (Set)): sets 5 fields: sessionId, userMessage, channel…
  5. If: checks a condition and branches into true / false
  6. Sheets — Append Processed Message (Google Sheets): append
  7. Sheets — Lookup Escalation Status (Google Sheets): uses Google Sheets
  8. Set — Normalize Escalation Status (Edit Fields (Set)): sets 8 fields: sessionId, userMessage, channel…
  9. If: checks a condition and branches into true / false
  10. AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory

…plus 6 more steps. See the full node list below.

Services it uses

Google SheetsOpenAI Chat Model

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

From the author

Quick Overview This workflow processes incoming chat messages, uses Google Sheets to deduplicate and track escalation status by session, and calls OpenAI to decide whether to answer or escalate to a human, muting the bot during active handoffs and re-enabling…

Excerpt from Luis R.'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.