Monitor a Facebook post, fetch comments, apply a past-winner blocklist, analyze sentiment, randomly select a winner, store the result in Airtable, and notify your Telegram channel.
This AI agent handles the full lifecycle of a daily Facebook comment contest, from data collection to winner announcement. It ingests comments, removes recent winners via blocklist, and filters for positive sentiment. It selects a random winner, logs the result in Airtable, and broadcasts the announcement to Telegram.
Key actions the AI agent performs to run the contest end-to-end.
Ingests comments from the Facebook post
Enforces a 30-day blocklist of past winners
Filters comments for positive sentiment using AI
Randomly selects a winner from eligible entries
Saves winner data to Airtable (name, Facebook ID, comment)
Publishes the winner announcement to Telegram
Two sentences explain the before/after impact of using this AI agent in a real workflow.
A simple 3-step flow anyone can follow.
The schedule node initiates the process and pulls new Facebook comments plus the current list of past winners from Airtable.
Filter out blocklisted users and low-quality entries, then analyze each remaining comment for Positive sentiment using the AI model.
Randomly select a Positive entry, log the winner to Airtable, and publish the announcement to Telegram.
One realistic scenario.
A brand page runs a daily giveaway. At 9:00 PM, the AI agent fetches 150 new comments, filters out 12 past winners, and identifies 20 positive, eligible entries. It randomly selects one winner, saves Name, Facebook ID, and Comment to Airtable, and posts a Telegram announcement within a minute.
Roles that gain from automated, reliable daily contests.
Need consistent, fair daily giveaways without manual curation.
Want to enforce rules and fairness without burning time on checks.
Manage multiple client giveaways with a scalable, auditable process.
Need reliable logging and public announcements for each winner.
Scale winner selection without manual review.
Reward positive engagement with a consistent workflow.
Core tools the AI agent uses to operate end-to-end.
Fetch post comments and related metadata for scoring.
Store past winners, log new winners, and reference blocklists.
Perform sentiment analysis to identify Positive entries.
Broadcast the winner announcement to the channel.
Optional error and event logging for auditing.
Orchestrates the entire AI agent workflow and data flows.
Concrete scenarios where this AI agent shines.
Common questions and practical answers.
The AI agent maintains a 30-day window of past winners and excludes anyone within that window from contention. It cross-checks each new entry against Airtable and internal logs before considering it eligible. If a winner is later disqualified or removed, the system can be updated to reflect the change without re-running the entire contest. This creates a clear, auditable trail of eligibility decisions.
Yes. The post ID is configurable in the Get FB Comments step, and the blocklist window (e.g., 30 days) can be set to your preferred duration. You can also adjust the sentiment criteria to fit your brand voice. Changes apply to all subsequent runs and are stored in Airtable for auditing.
If no eligible comments pass the Positive sentiment filter, the AI agent logs the outcome and issues a Telegram alert to notify the team. No winner is announced for that cycle, and the workflow can retry automatically the next night. This prevents forcing a winner from low-quality entries and preserves fairness.
Winner records are stored in Airtable with fields such as Name, Facebook ID, Comment, and Date. The system maintains an audit trail of eligibility checks and sentiment classifications. You can export or review logs from Airtable or connect to a reporting dashboard. This ensures you can verify each draw and any adjustments over time.
Yes. The same workflow can be configured to send notifications to Slack, email, or Discord by swapping the notification step. Each alternative maintains the same data structure for winner records and event logs. This flexibility helps align with your team’s collaboration tools and notification preferences.
The AI agent includes error handling and logging to identify failures quickly. In case of an API limit, it retries with backoff and notifies an admin via the chosen channel. Logs are stored in Supabase or Airtable for troubleshooting, and the workflow can resume automatically once limits reset. Regular monitoring helps prevent surprises during peak engagement times.
Auto-replies and certificate generation are available as add-ons. You can enable automatic congratulatory replies to the winner’s comment or generate a winner certificate image. These enhancements run alongside the core workflow without impacting the draw logic or auditing.
Monitor a Facebook post, fetch comments, apply a past-winner blocklist, analyze sentiment, randomly select a winner, store the result in Airtable, and notify your Telegram channel.