Skip to main content

Gemini-powered Facebook comment & DM assistant with Notion

Workflow preview

Workflow preview
100%
Gemini-powered Facebook comment & DM assistant with Notion preview
Open on n8n.io

Important notice

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

1. Workflow Overview

What Problem Does It Solve? Customers often ask product questions or prices in comments. Businesses waste time replying manually, leading to delays. Some comments only need a short thank you reply,...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.facebookgraphapi, n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.notion, n8n-nodes-base.httprequest, n8n-nodes-base.code

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
Gemini-powered Facebook comment & DM assistant with Notion
Workflow name
Gemini-powered Facebook comment & DM assistant with Notion

What Problem Does It Solve?

Customers often ask product questions or prices in comments.

Businesses waste time replying manually, leading to delays.

Some comments only need a short thank-you reply, while others need a detailed private response.

This workflow solves these by:

Replying with a friendly public comment.

Sending a private message with details when needed.

Handling compliments, complaints, and unclear comments in a consistent way.

How to Configure It

Facebook Setup

Connect your Facebook Page credentials in n8n.

Add the webhook URL from this workflow to your Facebook App/Webhook settings.

AI Setup

Add your Google Gemini API key (or swap for OpenAI/Claude).

The included prompt is generic — you can edit it to match your brand tone.

Optional Logging

If you want to track processed messages, connect a Notion database or another CRM.

How It Works

Webhook catches new Facebook comments.

AI Agent analyzes the comment and categorizes it (question, compliment, complaint, unclear, spam).

Replying:

For questions/requests → public reply + private message with full details.

For compliments → short thank-you reply.

For complaints → apology reply + private message for clarification.

For unclear comments → ask politely if they need help.

For spam/offensive → ignored (no reply).

Replies and messages are sent instantly via the Facebook Graph API.

Customization Ideas

Change the AI prompt to match your brand voice.

Add forwarding to Slack/Email if a human should review certain replies.

Log conversations in Notion, Google Sheets, or a CRM for reporting.

Expand to Instagram or WhatsApp with small adjustments.

If you need any help Get In Touch

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 - Google Gemini Chat Model

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

Block 3 - Delete Comms

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

Block 4 - Reply

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

Block 5 - Reply1

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

Block 6 - Webhook1

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 7 - Parse Comms

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 8 - Check Database

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

Block 9 - Fetch KB

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

Block 10 - Arrange KB

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

Block 11 - Who's there?

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

Block 12 - Comment

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

Block 13 - Appropriate?

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

Block 14 - Separate rep&sent

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Add to DB

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

Block 16 - Add to DB1

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

Block 17 - If2

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

Block 18 - If3

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

Block 19 - Delete Comms1

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

Block 20 - Code2

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

Block 21 - Messages

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

Block 22 - Messages1

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

Block 23 - If4

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

3. Summary Table

Workflow Gemini-powered Facebook comment & DM assistant with Notion
Complexity advanced
Nodes 23
Categories Support Chatbot, AI Chatbot
Author Abdullah Alshiekh
Published 30 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8066/8066.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 Gemini-powered Facebook comment & DM assistant with Notion do?

What Problem Does It Solve? Customers often ask product questions or prices in comments. Businesses waste time replying manually, leading to delays. Some comments only need a short thank you reply,...

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 Support Chatbot, AI Chatbot use case.