Smart message batching AI-powered Facebook Messenger chatbot
๐ค 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 Messenger built entirely in n8n. Features intelligent message batching, session-aware conversation tracking, multi-page support, and natural AI-powered responses. Perfect for: ๐ผ Customer support automation ๐ E-commerce product inquiries ๐ Appointment scheduling & consultation booking ๐ Educational assistants & training ๐ค Lead qualification & sales automation Requirements: n8n v1.113.0+, Facebook App with Messenger, Google Gemini API key (or compatible LLM) ๐ Complementary Workflow Facebook Messenger Chatbot โ Smart Human Takeover, Auto Pause & Context-Aware Adds intelligent human agent detection and automatic AI pause. When a human joins, AI pauses for configurable duration, then resumes automatically. Why combine? Smart Batch (v3): Multi-message batching, spam reduction Human Takeover: AI pauses for humans, smooth collaboration ๐ Access workflow --- โก What's New in Version 3 Major Upgrades | Feature | Impact | |---------|--------| | ๐ข Multi-Page Support | Manage multiple pages within one workflow | | โฑ๏ธ Flexible Timing | Adjustable wait times instead of fixed delays | | ๐ Improved Detection | More reliable identification of system vs. user messages | | ๐ฆ Smart Delivery | Sequential message handling to avoid overload | | ๐งน Automatic Cleanup | Removes outdated records to keep storage efficient | | ๐ Better Context | Clear separation of past vs. current sessions | | ๐ Ordered Updates | Ensures actions run in the right sequence | | ๐ Simplified Naming | Clearer labels for easier understanding | Architecture Comparison: Previous version had fixed timing, parallel updates, no multi-page handling, and no cleanup. New version introduces flexibility, sequential processing, and scalability for real-world use. --- ๐ฏ Key Features ๐ Smart Batching: Groups consecutive messages within configurable window (default 7s) ๐ง Session-Aware Context: Distinguishes old vs. current sessions for temporal awareness ๐ Full History: Stores complete chat logs with both user and page responses ๐ Natural UX: "Seen" marker and "Typing..." indicator for human-like feel ๐ฏ AI Integration: Extensible prompts for domain-specific consulting (Gemini, Groq, or any LLM) ๐ Multi-Language: Handles Vietnamese (anh/chแป/em) with customizable settings ๐ข Multi-Page Ready: Single workflow serves multiple Facebook Pages simultaneously Technical Highlights: Idempotent processing, timezone-aware timestamps (Asia/HoChiMinh), Facebook API v24.0 compatible, sequential delivery with rate limiting protection, auto cleanup (keeps last 15 rows) --- ๐๏ธ How It Works ๐ General Flow Reception & Validation โ Batching & Storage โ Context Aggregation โ โ โ Identify input Store for later use Combine with history Filter duplicates Apply short delay Build conversation context โ AI Processing โ Delivery & Cleanup โ โ Generate response Format & send Add signals Maintain records Ensure continuity Clean old data --- ๐ ๏ธ Setup Guide Step 1: Facebook App Create app, add Messenger, set webhook, get token, subscribe page Step 2: Data Table Prepare tables for messages batching Step 3: Workflow Import template, set context, link tables, connect AI Step 4: Test Activate workflow, send test messages, verify pause/resume --- ๐ค About the Author Nguyen Thieu Toan (Nguyแป n Thiแปu Toร n / Jay Nguyen) AI Automation Specialist | n8n Workflow Expert | Business Optimization Consultant Services: AI Automation Solutions, n8n Workflow Development, Custom Chatbot Implementation, Training Programs Contact: ๐ nguyenthieutoan.com ๐ Facebook ๐ผ LinkedIn ๐ฆ X (Twitter) ๐บ YouTube ๐ง me@nguyenthieutoan.com GenStaff Company: genstaff.net | contact@genstaff.net --- ๐ License After purchase, use in commercial/personal projects. No redistribution or resale. Keep author attribution when sharing. --- Last Updated: December 18, 2025 | Version: 3.0 | n8n Compatibility: v1.123.0+ and v2.0.0+ | Facebook API: v24.0 --- Ready to transform your Facebook Messenger into an intelligent AI assistant? Import this workflow and start automating today! ๐
Monitor lead response time SLA breaches with Google Sheets & Telegram alerts
Description Never miss a lead again with this SLA Breach Alert automation powered by n8n! This workflow continuously monitors your Google Sheets for un-replied leads and automatically triggers instant Telegram alerts, ensuring your team takes immediate action. By running frequent SLA checks, enriching alerts with direct Google Sheet links, and sending real-time notifications, this automation helps prevent unattended leads, reduce response delays, and boost customer engagement. What This Template Does ๐ Runs every 5 minutes to monitor SLA breaches ๐ Fetches lead data (status, contact, timestamps) from Google Sheets ๐ Identifies leads marked โUn-repliedโ beyond the 15-minute SLA ๐ Enriches alerts with direct Google Sheet row links for quick action ๐ฒ Sends Telegram alerts with lead details for immediate response Step-by-Step Setup Prepare Your Google Sheet Create a sheet with the following columns (minimum required): Lead Name Email Phone Status (values: Replied, Un-replied) Timestamp (time of last update/reply) Set Up Google Sheets in n8n Connect your Google account in n8n. Point the workflow to your sheet (remove any hardcoded document IDs before sharing). Configure SLA Check Use the IF node to filter leads where: Status = Un-replied Time since timestamp > 15 minutes Enrich Alerts with Links Add a Code node to generate direct row links to the sheet. Set Up Telegram Bot Create a Telegram bot via @BotFather. Add the bot to your team chat. Store the botToken securely (remove chatId before sharing templates). Send Alerts Configure the Telegram node in n8n to send lead details + direct Google Sheet link. Customization Guidance Adjust the SLA window (e.g., 30 minutes or 1 hour) by modifying the IF node condition. Add more fields from Google Sheets (e.g., Company, Owner) to enrich the alert. Replace Telegram with Slack or Email if your team prefers a different channel. Extend the workflow to auto-assign leads in your CRM once alerted. Perfect For Sales teams that need to respond to leads within strict SLAs Support teams ensuring no customer request is ignored Businesses aiming to keep lead response times sharp and consistent
Generate weekly grocery lists in Notion with automated email notifications
Whoโs it for Busy homemakers, creators, and anyone who wants a simple, no-cost way to plan weekly meals and get a ready-to-shop grocery listโwithout extra apps. What it does Runs on a weekly Cron schedule, generates a grocery list, creates rows in your Notion database (Ingredient, Quantity, Status), and emails the list (optional Telegram confirmation). It includes a Notion connection check, detailed error notifications (email and optional Telegram), a success email with timestamp, and optional persistent logging to a Notion โLogsโ database. Requirements Notion account + integration connected to your database SMTP credentials for the Email node (Optional) Telegram bot and chat ID for alerts (Optional) Notion log database if you want persistent logs How to set up Import the workflow and open Set: Configuration to fill: fromEmail, emailTo, notifyEmail, notionDb, telegramChatId (Optional) logToNotion (true/false), notionLogDb In Notion, create a DB with properties: Ingredient (Title), Quantity (Rich text), Status (Select: โTo Buyโ) Attach your Notion and SMTP credentials (and Telegram if used). Run once to test, then set Cron to your preferred weekly time. How to customize Edit the recipe/grocery items in the Code node. Change the Cron schedule (test with โEvery minute,โ then revert to weekly). Enable Telegram alerts, and/or turn on Notion logging for audit trails.