workflows.fit
Back to n8n workflows
n8n templateFreeBy WeblineIndia

Track Facebook mention sentiment with Gemini, Supabase, Telegram and Slack

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 Supabase and sends alerts ...

CommunicationHITLData & StorageDevelopmentCore NodesAILangchainMarketing
Loading interactive preview...

Template notes

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 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.

Quick Start (Implement in Minutes)

1. [Login to your n8n account](https://n8n.partnerlinks.io/om1efg2qgvwi). 2. Connect your Facebook Page to the trigger node. 3. Configure Gemini API credentials for sentiment analysis. 4. Set up Supabase and create a mentions table. 5. Add Telegram bot credentials for notifications. 6. Connect Slack and choose a channel for alerts. 7. Test with sample data and activate the workflow.

What It Does

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.