Facebook Messenger chatbot with GPT-4.1 & human escalation support
Ready for 3.0What this workflow does
This AI workflow has 23 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects HTTP Request, Google Docs, Facebook Graph API and OpenAI Chat Model and 1 more.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- If: checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Respond to Webhook: sends the response back to the webhook caller
- Classify text (OpenAI): uses OpenAI
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- If: checks a condition and branches into true / false
- Wait: pauses before continuing
- Edit Fields (Edit Fields (Set)): sets or maps fields
- AI Agent: runs an AI agent, with model: OpenAI Chat; 3 tools (HTTP, Think, Google Docs); memory: Memory
- Edit Fields (Edit Fields (Set)): sets or maps fields
…plus 6 more steps. See the full node list below.
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 (13)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Http Request Tool
n8n-nodes-base.httpRequestTool - Google Docs Tool
n8n-nodes-base.googleDocsTool - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Edit Fields (Set)
n8n-nodes-base.set - Facebook Graph API
n8n-nodes-base.facebookGraphApi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
Who is this for? This n8n workflow is designed for businesses, customer support teams, and page administrators who want to automate their Facebook Messenger responses while maintaining the ability to escalate to human agents when needed. It's perfect for…