Facebook mention sentiment alerts
Gemini scores each Facebook mention, Slack gets negatives. This free n8n template watches mentions of a Facebook Page and routes them by sentiment. When a new mention is detected through a Page mentions webhook, Google Gemini (gemini-2.5-flash by default) classifies it as positive, neutral or negative and extracts the main topic. The result is stored in a Supabase table named mentions. Positive mentions are sent to a Telegram chat. Negative mentions, or mentions that match a keyword list, raise an alert in a Slack channel. A storage failure sends a Telegram alert. It is for social media managers and customer support and product teams that track brand mentions.
Steps
- Trigger: Listens for new Facebook Page mentionsFacebook
- Gemini analyzes sentiment and main topicGoogle Gemini
- Response cleaned into structured JSON
- Stores the mention in SupabaseSupabase
- Evaluates sentiment and content
Critical keywords like refund, bug, slow, cancel. - Output: Positive mentions shared via TelegramTelegram
- Output: Negative or critical mentions alert SlackSlack
- Output: Telegram alert if Supabase storage failsTelegram
Limits
- Needs a Facebook Developer App with Page access.
- Stores the user name of each mention in Supabase.
- Needs five services: Facebook, Gemini, Supabase, Telegram and Slack.
What it does well
- A keyword match raises a Slack alert even when sentiment is not negative.
- Storage failures raise their own alert.
Before you import
The Supabase table columns are message, sentiment, topic, user_name, created_time and confidence.
Similar templates
Book appointments by voice with Vapi
Also for scheduling and ops, 8 steps.
Weekly AI marketing report by email
Also for scheduling and ops, 9 steps.
Feedback sentiment alerts in Telegram
Also for scheduling and ops, 6 steps.
Google Gemini and Slack: 6 templates compared
Same two apps, different steps.
Facebook and Telegram: 2 templates compared
Same two apps, different steps.
Google Gemini and Telegram: 2 templates compared
Same two apps, different steps.
Notify a team
Other templates that do this task.