Skip to main content

Facebook comment AI moderator with Notion & Gemini

Workflow preview

Workflow preview
100%
Facebook comment AI moderator with Notion & Gemini preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Problem Solved Eliminates the slow, inconsistent, and error prone process of manually replying to Facebook comments by automating it with AI, ensuring fast, accurate, and on brand customer engag...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.scheduletrigger, n8n-nodes-base.merge, n8n-nodes-base.notion, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Abdullah Alshiekh.

Original n8n.io source

1.1 Workflow description

Title
Facebook comment AI moderator with Notion & Gemini
Workflow name
Facebook comment AI moderator with Notion & Gemini

🧩 Problem Solved

Eliminates the slow, inconsistent, and error-prone process of manually replying to Facebook comments by automating it with AI, ensuring fast, accurate, and on-brand customer engagement 24/7.

📝 Description

This workflow automatically monitors your latest Facebook post for new comments. For each new comment, an AI agent instantly generates a friendly, personalized reply in Egyptian Arabic, using your Notion knowledge base to ensure all product info is accurate. It prevents spam by never replying to the same comment twice.

Simple Flow: New Comment → Duplicate Check → AI Analysis → Post Reply → Log Action.

🎯 Key Benefits

24/7 Instant Replies: Engage customers immediately, anytime.

Perfect Brand Voice: Consistent, empathetic, natural Egyptian Arabic tone in every reply.

Always Accurate: Pulls facts directly from your knowledge base; never invents details.

No Duplicate Replies: Robust checks ensure each comment gets only one response.

Huge Time Saver: Frees your team from constantly monitoring comments.

🛠️ Core Features

Facebook API Integration (Read & Reply)

Notion Database Integration (Knowledge Base & Logging)

AI Response Generation (Google Gemini)

Duplicate Comment Prevention

Automated Workflow Logic

🔧 Requirements

Facebook Access Token with pages_read_engagement and pages_manage_posts permissions.

Two Notion Databases: One for your product knowledge, one to log processed comments.

Google Gemini API Key for AI.

n8n Credentials for Facebook, Notion, and Gemini.

⚙️ Quick Customization

Tone & Style: Edit the prompt in the Generate Customer Reply node.

Product Info: Add fields to your Notion Knowledge Base database.

Escalation: Add a step to flag angry comments for a human agent.

🧠 Perfect For

E-commerce: Answering product questions on promo posts.

Healthcare: Providing accurate drug info with compassion.

Local Businesses: Replying to queries about hours/menu items.

Any Business that wants fast, professional customer engagement on social media.

Need help? Connect on LinkedIn

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 2 - AI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 3 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 4 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 5 - Knowledge Base

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 6 - Last Post Fetcher

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 7 - CommentID Checker

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 8 - KB Arrange

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - New Comment Conditioner

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Latest Comment

Type / Role
n8n-nodes-base.facebookGraphApi - facebookGraphApi
Config choices
Version 1

Block 11 - Reply Writer

Type / Role
n8n-nodes-base.facebookGraphApi - facebookGraphApi
Config choices
Version 1

Block 12 - CommentID to DB

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Posts Fetcher

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

3. Summary Table

Workflow Facebook comment AI moderator with Notion & Gemini
Complexity advanced
Nodes 23
Categories AI Chatbot, Multimodal AI
Author Abdullah Alshiekh
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7660/7660.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Facebook comment AI moderator with Notion & Gemini do?

Problem Solved Eliminates the slow, inconsistent, and error prone process of manually replying to Facebook comments by automating it with AI, ensuring fast, accurate, and on brand customer engag...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot, Multimodal AI use case.