Route chatbot requests to humans with OpenAI and Google Sheets
Ready for 3.0What 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”.
- Set — Workflow Config (Edit Fields (Set)): sets 3 fields: escalationTimeoutMinutes, notifyChannel, holdingMessage
- Set — Input Mapping (Edit Fields (Set)): sets 4 fields: sessionId, userMessage, channel…
- Sheets — Lookup Processed Message (Google Sheets): uses Google Sheets
- Set — Normalize Lookup Result (Edit Fields (Set)): sets 5 fields: sessionId, userMessage, channel…
- If: checks a condition and branches into true / false
- Sheets — Append Processed Message (Google Sheets): append
- Sheets — Lookup Escalation Status (Google Sheets): uses Google Sheets
- Set — Normalize Escalation Status (Edit Fields (Set)): sets 8 fields: sessionId, userMessage, channel…
- If: checks a condition and branches into true / false
- 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
Other OpenAI + Google Sheets templates (2,011)
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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
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…