Templates / Analyze Facebook post comment sentiment with OpenAI, Google Sheets, and Gmail

Analyze Facebook post comment sentiment with OpenAI, Google Sheets, and Gmail

Ready for 3.0

by Dr. Firas ✓ · 74 views · created 2026-08-04 · Market Research, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 18 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Facebook Graph API, Google Sheets, Gmail and OpenAI Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Configuration (Edit Fields (Set)): sets 9 fields: facebook_post_id, sentiment_categories, openai_model…
  2. Split Out: splits a list into separate items
  3. Get Facebook Post (Facebook Graph API): uses Facebook Graph API
  4. Loop Over Comments (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Get Facebook Comments Page (Facebook Graph API): uses Facebook Graph API
  6. Read All Comments for This Post (Google Sheets): uses Google Sheets
  7. Analyze Comment Sentiment (Sentiment Analysis): scores sentiment with AI, with model: OpenAI Chat Model
  8. Has Next Page? (If): checks a condition and branches into true / false
  9. Call 'Analyze Comments Batch' (Execute Sub-workflow): calls another n8n workflow
  10. Aggregate: combines items into one

…plus 5 more steps. See the full node list below.

Services it uses

Facebook Graph APIGoogle SheetsGmailOpenAI Chat Model

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 (14)

From the author

Quick overview This workflow fetches comments from a Facebook Page post via the Facebook Graph API, classifies each comment’s sentiment with OpenAI, stores results in Google Sheets, and emails a sentiment breakdown summary via Gmail. How it works 1. Runs…

Excerpt from Dr. Firas's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.