Pick a daily Facebook comment contest winner with OpenAI, Airtable and Telegram
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on a schedule (cron 0 21 * * *). Along the way it connects Airtable, OpenAI Chat Model, Telegram and Supabase. It also calls graph.facebook.com over HTTP.
How it runs
Trigger: On a schedule (cron 0 21 * * *).
- Get FB Comments (HTTP Request): calls graph.facebook.com
- Get Past Winners (Airtable): search
- Pre-Filter (Blocklist) (Code): runs custom JavaScript code
- Any Eligible? (If): checks a condition and branches into true / false
- Sentiment Analysis: scores sentiment with AI, with model: OpenAI Chat Model
- Pick Random Winner (Code): runs custom JavaScript code
- Create a record (Airtable): create
- Saved? (If): checks a condition and branches into true / false
- Send a text message (Telegram): uses Telegram
- Log Error (Supabase) (Supabase): uses Supabase
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: graph.facebook.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Airtable
n8n-nodes-base.airtable - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Telegram
n8n-nodes-base.telegram - Supabase
n8n-nodes-base.supabase - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - HTTP Request
n8n-nodes-base.httpRequest
From the author
Community Contest Tracker (FB Comments) → Sentiment Analysis → Telegram Winner Alerts + Airtable Proof This workflow automatically monitors a Facebook post, extracts comments, enforces a "past winner" blocklist, analyzes sentiment using AI to find positive…