Send date-range Threads insights reports with Threads API and Telegram
Ready for 3.0Ready 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-12-01.
What this workflow does
This workflow has 7 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Telegram.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Edit Fields — Inputs (Edit Fields (Set)): sets 5 fields: fromDate, toDate, accessToken…
- Build Insights Requests (Code): runs custom JavaScript code
- Fetch Threads Insights (HTTP Request): calls an HTTP API
- Return Structured Insights Report (Code): runs custom JavaScript code
- Generate Threads Insights HTML Report (Code): runs custom JavaScript code
- Send Threads Insights HTML Report (Telegram): send document
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.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow pulls Threads Insights for a specified date range via the Threads Graph API, generates a self-contained HTML performance report (metrics, trend chart, and follower demographics), and delivers the report as a document to a Telegram…