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.

n8nRead on 2026-11-168 steps

Steps

  1. Trigger: Listens for new Facebook Page mentionsFacebook
  2. Gemini analyzes sentiment and main topicGoogle Gemini
  3. Response cleaned into structured JSON
  4. Stores the mention in SupabaseSupabase
  5. Evaluates sentiment and content
    Critical keywords like refund, bug, slow, cancel.
  6. Output: Positive mentions shared via TelegramTelegram
  7. Output: Negative or critical mentions alert SlackSlack
  8. 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