Monitor Facebook post safety with Apify, Google Gemini and Telegram alerts
UnknownWhat this workflow does
This AI workflow has 28 nodes and runs on Telegram events (message) (plus 2 other triggers). Along the way it connects Telegram, MongoDB Chat Memory, Google Gemini Chat Model and Serpapi (community) and 1 more.
How it runs
Trigger: On Telegram events (message) (plus 2 other triggers).
- Set Context (Chat) (Edit Fields (Set)): sets 1 field: bot_owner_name
- Set Context (Scraper) (Edit Fields (Set)): sets 4 fields: page_url, page_name, admin_chat_id…
- Chat AI Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; 2 tools (SerpAPI Search, Scrape Specific Page Tool); memory: MongoDB Chat Memory
- Apify: run actor and get dataset
- Send Telegram Reply (Telegram): uses Telegram
- Normalize Fields (Edit Fields (Set)): sets 14 fields: postId, pageName, url…
- If row does not exist (Data table): row not exists
- Data table: create or update
- Format Post Content (Edit Fields (Set)): sets 1 field: PostContent
- Has Image? (Filter): keeps only the items that match a condition
…plus 8 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-serpapi is verified or supports 3.0 (used in SerpAPI Search).
- Check that @apify/n8n-nodes-apify is verified or supports 3.0 (used in Apify Facebook Scraper).
Nodes used (18)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Telegram
n8n-nodes-base.telegram - MongoDB Chat Memory
@n8n/n8n-nodes-langchain.memoryMongoDbChat - Serp Api Tool
n8n-nodes-serpapi.serpApiTool - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Apify
@apify/n8n-nodes-apify.apify - Data table
n8n-nodes-base.dataTable - Filter
n8n-nodes-base.filter - HTTP Request
n8n-nodes-base.httpRequest - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Code
n8n-nodes-base.code - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
From the author
Monitor Facebook Pages and Analyze Content Safety via Telegram This n8n template automates the collection, storage, and safety analysis of Facebook posts while simultaneously providing an interactive AI assistant on Telegram. If you manage communities or…