Fetch Threads analytics for your latest posts and email an HTML report
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Gmail. It also calls graph.threads.net over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Get Threads Token (Data table): get
- Set Token (Edit Fields (Set)): sets 1 field: Threads_Token
- Fetch Threads Posts (HTTP Request): calls graph.threads.net
- Split Out: splits a list into separate items
- Fetch Post Insights (HTTP Request): calls an HTTP API
- Merge Posts and Insights (Code): runs custom JavaScript code
- Build HTML Report (Code): runs custom JavaScript code
- Email Analytics Report (Gmail): uses Gmail
Services it uses
HTTP calls to: graph.threads.net
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 (8)
- Split Out
n8n-nodes-base.splitOut - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Data table
n8n-nodes-base.dataTable - Edit Fields (Set)
n8n-nodes-base.set - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
Fetch up to 100 of your latest Threads posts along with their insights (views, likes, replies, reposts, quotes), build a formatted HTML summary table, and send it to your inbox automatically. Supports both manual runs and scheduled execution (every 2 days by…