Block 1 - Facebook Mention Received
- Type / Role
- n8n-nodes-base.facebookTrigger - facebookTrigger
- Config choices
- Version 1
Facebook Mention Sentiment Tracker with Gemini, Supabase, Telegram & Slack This workflow automatically tracks Facebook page mentions, analyzes sentiment using AI (Gemini), stores the data in Supaba...
n8n-nodes-base.facebooktrigger, @n8n/n8n-nodes-langchain.googlegemini, n8n-nodes-base.code, n8n-nodes-base.supabase, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.slack, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by WeblineIndia.
Original n8n.io sourceThis workflow automatically tracks Facebook page mentions, analyzes sentiment using AI (Gemini), stores the data in Supabase and sends alerts via Telegram and Slack. Positive mentions are shared on Telegram, while critical or negative mentions trigger Slack alerts for immediate attention. It also handles storage failures by notifying via Telegram.
mentions table.This workflow listens for new Facebook Page mentions in real time. When a mention is received, it sends the message to an AI model (Gemini) to analyze sentiment (positive, neutral or negative) and extract the main topic. The response is cleaned and structured into a consistent JSON format for further processing.
After processing, the workflow stores the mention data in Supabase for tracking and analytics. It then evaluates the sentiment and content of the message to determine the next action. Positive mentions are shared with your team via Telegram to highlight customer satisfaction.
For risk management, the workflow detects critical keywords (like refund, bug, slow, cancel) and also checks if the sentiment is negative. If either condition is met, a Slack alert is triggered so your team can take immediate action. Additionally, if storing data in Supabase fails, a Telegram alert is sent to notify about the issue.
gemini-2.5-flash).Create a mentions table.
Add fields:
message, sentiment, topic, user_name, created_time, confidence
Connect using Supabase credentials.
Add bot token.
Use different chat IDs for:
Positive mentions
Error alerts (recommended)
Configure:
Positive sentiment check
Critical/negative condition routing
Gemini Node
Change model (e.g., advanced models for better accuracy)
Modify prompt to extract more fields (intent, urgency, etc.)
Keyword Detection
Update keywords array:
["refund", "cancel", "bug", "slow"]
Add business-specific terms
Slack संदेश
Customize alert format
Add priority levels or tagging
Telegram Messages
Adjust formatting (Markdown, emojis, structure)
Supabase
Add more columns if needed (e.g., region, category)
There can be many more use cases depending on your business needs.
| Issue | Possible Cause | Solution |
|---|---|---|
| No Facebook data | Webhook not configured | Check Facebook App & permissions |
| AI not returning data | Incorrect prompt or API issue | Verify Gemini configuration |
| Supabase insert fails | गलत credentials or schema mismatch | Check table structure & API key |
| Telegram not sending | Wrong bot token or chat ID | Verify credentials |
| Slack alert not triggered | Condition mismatch | Check IF node logic |
| Keywords not detected | Case mismatch or logic error | Ensure .toLowerCase() is used |
If you need help setting up this workflow or want to extend it with advanced features like automation, dashboards or integrations then our n8n workflow development team at WeblineIndia can assist you.
We can help you:
Reach out to WeblineIndia to get started with tailored automation solutions.
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.
| Workflow | Track Facebook mention sentiment with Gemini, Supabase, Telegram and Slack |
|---|---|
| Complexity | advanced |
| Nodes | 16 |
| Categories | Social Media, AI Summarization |
| Author | WeblineIndia |
| Published | 22 Apr 2026 |
Use the JSON export at /data/workflows/15235/15235.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Facebook Mention Sentiment Tracker with Gemini, Supabase, Telegram & Slack This workflow automatically tracks Facebook page mentions, analyzes sentiment using AI (Gemini), stores the data in Supaba...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Social Media, AI Summarization use case.