Smart message batching AI-powered Facebook Messenger chatbot use Data Table
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Google Gemini Chat Model.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Confirm Webhook (Respond to Webhook): sends the response back to the webhook caller
- Is message (If): checks a condition and branches into true / false
- Set Context (Edit Fields (Set)): sets or maps fields
- Is from page? (If): checks a condition and branches into true / false
- User is Sender (Edit Fields (Set)): sets or maps fields
- Seen (HTTP Request): calls an HTTP API
- Insert To Unprocessed (Data table): uses Data table
- Wait: pauses before continuing
- Get unprocessed message (Data table): uses Data table
- Get Max ID + Merged Mess (Code): runs custom JavaScript code
…plus 13 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 (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Data table
n8n-nodes-base.dataTable - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
🤖 Facebook Messenger Smart Chatbot - Smart Batch, Format & History with n8n Data Table v3 Version 2026 - Adaptable to n8n v1.113+ and v2.x by Nguyen Thieu Toan (Jay Nguyen) --- 📖 Overview A production-ready, enterprise-grade chatbot solution for Facebook…