![]() |
VOOZH | about |
Last update
Last update 2 months ago
Categories
Share
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.
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.
Facebook Trigger
Gemini Node
gemini-2.5-flash).Code Node (Clean AI Response)
Supabase Node
Create a mentions table.
Add fields:
message, sentiment, topic, user_name, created_time, confidenceConnect using Supabase credentials.
Telegram Nodes
Add bot token.
Use different chat IDs for:
Slack Node
IF Nodes
Configure:
Test Workflow
Gemini Node
Keyword Detection
Update keywords array:
["refund", "cancel", "bug", "slow"]
Add business-specific terms
Slack संदेश
Telegram Messages
Supabase
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.