Track positive Instagram comment sentiment with OpenAI, Google Sheets, and Gmail
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs on a schedule (every day at 09:00) (plus 1 other trigger). Along the way it connects Google Sheets and Gmail. It also calls api.openai.com over HTTP.
How it runs
Trigger: On a schedule (every day at 09:00) (plus 1 other trigger).
- 2. Code - Set Config and Credentials (Code): runs custom JavaScript code
- 17. Sheets - Read Today's Positive Comments (Google Sheets): uses Google Sheets
- 3. HTTP - Fetch Recent Instagram Posts (HTTP Request): calls an HTTP API
- 18. Code - Build Daily Digest Email (Code): runs custom JavaScript code
- 4. Code - Extract Posts Array (Code): runs custom JavaScript code
- 19. Gmail - Send Daily Digest to Team (Gmail): uses Gmail
- 5. Loop - Process Each Post (Loop Over Items (Split in Batches)): loops over the items in batches
- 6. HTTP - Fetch Comments for This Post (HTTP Request): calls an HTTP API
- 7. Code - Extract Comments Array (Code): runs custom JavaScript code
- 8. Loop - Process Each Comment (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 7 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
HTTP calls to: api.openai.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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow runs twice daily to fetch recent Instagram post comments via the Instagram Graph API, uses OpenAI to classify sentiment, saves new positive comments to Google Sheets, and emails an HTML digest of the day’s positive comments to…