Extract and analyze 🔬 ALL Facebook post comments with sentiment AI using Gemini
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Gemini Chat Model, Facebook Graph API and Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Set Fb post ID (Edit Fields (Set)): sets 1 field: post_id
- Split Out: splits a list into separate items
- Get Fb Post (Facebook Graph API): uses Facebook Graph API
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Get Fb comments (Facebook Graph API): uses Facebook Graph API
- Sentiment Analysis: scores sentiment with AI, with model: Google Gemini Chat Model
- Call 'Facebook' (Execute Sub-workflow): calls another n8n workflow
- Next page? (If): checks a condition and branches into true / false
- Add comment (Google Sheets): append or update
- Get next comments page (Edit Fields (Set)): sets 1 field: after
…plus 1 more step. See the full node list below.
Services it uses
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 (12)
- Manual Trigger
n8n-nodes-base.manualTrigger - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Wait
n8n-nodes-base.wait - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Edit Fields (Set)
n8n-nodes-base.set - Facebook Graph API
n8n-nodes-base.facebookGraphApi - If
n8n-nodes-base.if - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets
From the author
This workflow automates the process of collecting, analyzing, and storing Facebook post comments with AI-powered sentiment analysis about YOUR Facebook Page. Typical Use Cases: Social media sentiment monitoring Brand reputation analysis Campaign performance…