Back to Catalog
Nguyễn Thiệu Toàn (Jay Nguyen)

Nguyễn Thiệu Toàn (Jay Nguyen)

An AI Automation consultant and system builder specializing in business workflow optimization with n8n. As the Founder of GenStaff, Toan empowers teams to automate complex processes using no-code/low-code tools and AI Agents, making operations smarter and more efficient. He actively shares expertise and tutorials about n8n, AI, and automation on his blog and social channels.

Total Views3,909
Templates4

Templates by Nguyễn Thiệu Toàn (Jay Nguyen)

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! 🚀

Nguyễn Thiệu Toàn (Jay Nguyen)By Nguyễn Thiệu Toàn (Jay Nguyen)
2080

AI-powered news update bot for Zalo using Gemini and RSS feeds

How it works 🧠 AI-Powered News Update Bot for Zalo using Gemini and RSS Feeds This workflow allows you to build a smart Zalo chatbot that automatically summarizes and delivers the latest news using Google Gemini and RSS feeds. It’s perfect for keeping users informed with AI-curated updates directly inside Vietnam’s most popular messaging app. --- 🚀 What It Does Receives user messages via Zalo Bot webhook Fetches the latest articles from an RSS feed (e.g., AI news) Summarizes the content using Google Gemini Formats the response and sends it back to the user on Zalo --- 📱 What Is Zalo? Zalo is Vietnam’s leading instant messaging app, with over 78 million monthly active users—more than 85% of the country’s internet-connected population. It handles 2 billion messages per day and is deeply embedded in Vietnamese daily life, making it a powerful channel for communication and automation. --- 🔧 Setup Instructions Create a Zalo Bot Open the Zalo app and search for "Zalo Bot Creator" Tap "Create Zalo Bot Account" Your bot name must start with "Bot" (e.g., Bot AI News) After creation, Zalo will send you a message containing your Bot Token Configure the Webhook Replace [your-webhook URL] in Zalo Bot Creator with your n8n webhook URL Use the Webhook node in this workflow to receive incoming messages Set Up Gemini Add your Gemini API key to the HTTP Request node labeled Summarize AI News Customize the prompt if you want a different tone or summary style Customize RSS Feed Replace the default RSS URL with your preferred news source You can use any feed that provides timely updates (e.g., tech, finance, health) --- 🧪 Example Interaction User: "What's new today?" Bot: "🧠 AI Update: Google launches Gemini 2 with multimodal capabilities, revolutionizing how models understand text, image, and code..." --- ⚠️ Notes Zalo Bots currently do not support images, voice, or file attachments Make sure your Gemini API key has access to the model you're calling RSS feeds should be publicly accessible and well-formatted --- 🧩 Nodes Used Webhook HTTP Request (Gemini) RSS Feed Read Set & Format Zalo Message Sender (via API) --- 💡 Tips You can swap Gemini with GPT-4 or Claude by adjusting the API call Add filters to the RSS node to only include articles with specific keywords Use the Function node to personalize responses based on user history --- Built by Nguyen Thieu Toan (Nguyễn Thiệu Toàn) (https://nguyenthieutoan.com). Read more about this workflow by Vietnamese: https://nguyenthieutoan.com/share-workflow-n8n-zalo-bot-cap-nhat-tin-tuc/

Nguyễn Thiệu Toàn (Jay Nguyen)By Nguyễn Thiệu Toàn (Jay Nguyen)
945

AI-Powered automated news (stock, economy...) collector with expert comment

What is This Workflow? V2 (2026) available! An intelligent, fully automated news aggregation system that collects articles from multiple sources (RSS feeds + Google Search), uses AI to classify and summarize the most important stories, then delivers a professional HTML email report with expert commentary. --- Contact to customize this workflow for your business: me@nguyenthieutoan.com --- Use Cases: 📈 Financial Markets: Stock news, economic indicators, market analysis 📰 Industry News: Tech, healthcare, real estate, etc. 🌍 Regional Updates: Country-specific news, local events 🏢 Corporate Intelligence: Competitor monitoring, industry trends 🎓 Academic Research: Paper aggregation, research updates ⚡ Crisis Monitoring: Breaking news, emergency alerts Key Features: ✅ Multi-Source Collection: RSS feeds + Google Search API (expandable) ✅ AI Classification: Auto-categorizes articles by topic (e.g., stock market, economy) ✅ AI Summarization: Selects top 15 stories, groups by region, adds expert insights ✅ Professional Email: Finance-themed HTML design with structured tables ✅ Data Table Storage: Central repository with auto-cleanup (3-day retention) ✅ Duplicate Prevention: Link-based deduplication ✅ Cost Optimized: GPT-4.1 Nano for classification, Gemini Flash for summarization ✅ Fully Customizable: Topics, languages, sources, schedules, styling—all flexible --- How It Works News Collection Gather updates from multiple sources (RSS feeds, keyword searches). Standardize format (title, link, snippet, date, source, tag). Store in a central table with duplicate prevention. AI Processing & Analysis Classify articles into categories (e.g., Stock Market, Economy). Summarize top items per category and region. Add short expert-style commentary for context. Output structured JSON with title, content, insights, and links. Email Generation & Delivery Merge summaries into professional tables. Apply finance-themed design (Navy Blue, Gold, Green). Include header (date + “Daily Executive Briefing”) and footer attribution. Send via Gmail with HTML body and subject line including date. Requirements: n8n Version: 1.113.0+ (for Data Table feature), 2.4.0+ for Auto Create Data Table (or you need to create manually). APIs & Credentials: SerpAPI: For Google Search (free tier available) - if you need to use Google Search source. OpenAI API: GPT-4.1 Nano access Google Gemini API: Gemini Flash access Gmail OAuth2: For sending emails Optional: Custom RSS feeds (public, no auth required) --- Cost Optimization: API Usage per Day: SerpAPI: 2-4 searches (free tier: 100/month) OpenAI: ~50 classification calls (~$0.01) Gemini: ~2 summarization calls (~$0.005) Total: < $0.02/day (~$0.60/month) Cost Reduction Tips: Use free Gemini tier (2M tokens/day) Batch classification (reduce API calls) Adjust article limits (fewer = cheaper) Use Claude Haiku instead of GPT-4.1 Nano (even cheaper) --- Customization & Support: 🎁 FREE Workflow Customization Need to adapt this workflow for your specific use case? Contact the author for FREE basic customization: Change topics/categories/languages Adjust sources and schedules Modify email styling Simple logic changes Lifetime free updates and bug fixes 📧 Email: me@nguyenthieutoan.com 💼 Paid Advanced Support (~$15-30 USD) For complex customization + full setup + additional features: Multi-language support with auto-translation Advanced AI analysis (sentiment, trends, predictions) Integration with Slack/Discord/Teams Custom web dashboard Database integration (PostgreSQL, MongoDB) Webhook integrations Custom reporting formats (PDF, Slack cards, etc.) Author: Nguyen Thieu Toan (Jay Nguyen) n8n Profile: n8n.io/creators/nguyenthieutoan Status: n8n Verified Creator Website: nguyenthieutoan.com --- Version History: v2.0 (Current) Multi-source collection (RSS + Google Search) AI-powered classification & summarization Professional HTML email generation Data Table storage with auto-cleanup Fully customizable architecture --- Related Workflows: 🔗 Browse more workflows by Jay Nguyen: n8n.io/creators/nguyenthieutoan Similar Templates: Social Media Content Aggregator Competitor Monitoring System Research Paper Digest Generator Breaking News Alert System

Nguyễn Thiệu Toàn (Jay Nguyen)By Nguyễn Thiệu Toàn (Jay Nguyen)
496

Smart human takeover & auto pause AI-powered Facebook Messenger chatbot

🤖 Facebook Messenger Chatbot - Smart Human Takeover, Auto Pause & Context-Aware Adaptable to n8n 1.113+ and 2.x by Nguyen Thieu Toan (Jay Nguyen) --- 📖 Overview An intelligent Facebook Messenger chatbot that automatically detects human agent intervention and pauses AI responses accordingly. Features smart pause management, full context preservation, and seamless handoff between AI and human support. Perfect for: 💼 Customer support with AI + human escalation 🎯 Sales conversations requiring manual intervention 🛠️ Technical support needing human expertise 🤝 Any chatbot requiring human oversight capability Requirements: n8n v1.113.0+, Facebook App with Messenger, Google Gemini API key (or compatible LLM) --- 🔗 Complementary Workflow Smart Facebook Messenger Chatbot – Message Batching & History Enhances Messenger automation with intelligent batching, conversation tracking, and context-aware responses. Messages are grouped, stored, and processed with full history for smoother interactions. Why combine? 🧩 Smart Batch (v3): Efficient multi-message handling, reduced spam 📜 Conversation History: Maintains context across sessions 🤖 AI Responses: Natural, context-aware replies ⚡ Scalability: Sequential processing for reliable delivery 👉 Access workflow Smart Facebook Messenger Chatbot – Message Batching & History --- ⚡ Key Features Core Capabilities | Feature | Description | |---------|-------------| | 🔍 Human Takeover Detection | Automatically detects when admin/human sends messages from page via metadata checking | | ⏸️ Smart Auto-Pause | Bot pauses for configurable duration (default 60s) when human joins conversation | | 📝 Context Preservation | Saves both AI and human responses in conversation history for seamless continuity | | 📋 Whitelist Management | Tracks paused users with timestamp-based auto-resume (no manual intervention needed) | | 🔄 Seamless Handoff | Smooth transition between AI and human, then automatic resume after timeout | | 🏢 Multi-Page Support | Single workflow handles multiple Facebook Pages via page_id differentiation | | 📊 Full History Context | AI sees both previous AI and human responses when resuming | Technical Highlights ✅ Metadata-based detection (message.metadata == "bot_rep") ✅ Timestamp-based pause management (auto-expires) ✅ Upsert operation for whitelist (updates if exists, inserts if new) ✅ Composite key indexing (userid + pageid) ✅ Zero manual cleanup required ✅ Full conversation context preserved across handoffs --- 🏗️ How It Works ┌──────────────────────────────────────────────────────────┐ │ 1. Message Intake │ │ • The system receives incoming messages from different │ │ sources and identifies their type. │ └──────────────────────────────────────────────────────────┘ ↓ ┌──────────────────────────────────────────────────────────┐ │ 2. Human Interaction Recognition │ │ • Detects when a human is involved and records the event │ │ • Adjusts automated handling accordingly. │ └──────────────────────────────────────────────────────────┘ ↓ ┌──────────────────────────────────────────────────────────┐ │ 3. Pause & Resume Control │ │ • Temporarily pauses automation when needed │ │ • Resumes once conditions are met. │ └──────────────────────────────────────────────────────────┘ ↓ ┌──────────────────────────────────────────────────────────┐ │ 4. Automated Response │ │ • Processes messages with context │ │ • Generates and delivers appropriate replies. │ └──────────────────────────────────────────────────────────┘ --- 🛠️ Setup Guide Step 1: Facebook App Setup Step 2: Data Storage Preparation Step 3: Workflow Configuration Step 4: Testing --- 👤 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, Team 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: 1.0 | n8n Compatibility: v1.123.0+ and v2.0.0+ | Facebook API: v23.0/v24.0 --- Ready to enable intelligent human-AI collaboration in your Facebook Messenger? Import this workflow and transform your chatbot today! 🚀

Nguyễn Thiệu Toàn (Jay Nguyen)By Nguyễn Thiệu Toàn (Jay Nguyen)
50
All templates loaded