Automate Threads Post Archiving with n8n and Notion

Automate saving your Threads posts and media to Notion with this n8n workflow. It tackles manual data entry by syncing and filtering posts and comments, saving you hours each week.
httpRequest
function
notion
+4
Workflow Identifier: 1857
NODES in Use: HTTP Request, Function, SplitInBatches, Code, NoOp, Switch, Notion

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow gets the most recent posts from Threads and saves them to Notion automatically.
It solves the problem of copying posts by hand and losing media or comments.
The result is new or updated Notion pages with post text and all media included.

The steps run in order. First, an access token is refreshed. Then the latest posts are fetched with all needed details.
A filter picks only posts with certain media types and no quotes.
Each post is handled in batches to get full info and comments.

Filtered data merges and builds the right format for Notion.
The workflow checks if a page for the post already exists in Notion.
If not, a new page is created with metadata, and all media blocks are uploaded.
This way, the user keeps a neat, media-rich Notion archive without manual work.


Tools and Services Used

  • Threads API: To get posts, refresh tokens, and get comments.
  • Notion API: To check existing pages, create new pages, and add media blocks.
  • n8n Automation Platform: Hosts and runs the workflow with scheduling and API calls.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open n8n editor and choose “Import from File”.
  3. Select the downloaded workflow file to add it inside n8n.

Step 2: Setup Credentials and IDs

  1. Add your Threads API credentials, including your Long-Lived Access Token and Threads ID.
  2. Add your Notion API credentials and make sure your Notion database is ready with the needed properties.
  3. Update any placeholder IDs, usernames, or tokens in the HTTP Request and Code nodes, like the Threads username in “Comment’s Filter” node.

Step 3: Test the Workflow

  1. Run the workflow manually once to make sure posts can be fetched and pages created.
  2. Check the output for errors and verify if a sample page appears in Notion.

Step 4: Activate the Workflow

  1. Enable the workflow in n8n editor.
  2. Set your preferred schedule in the Schedule Trigger so the workflow runs automatically (example: daily at midnight).
  3. Monitor the runs at first to confirm smooth operation.

For users hosting n8n on their own server, consider this helpful self-host n8n resource.


Input → Process → Output Explained

Inputs

  • Threads Long-Lived Access Token and Threads ID.
  • Notion API token and Notion database info.
  • Schedule for when to fetch posts.

Processing Steps

  • Refreshing Thread API token for valid access.
  • Fetching recent posts with media details since a set date.
  • Filtering posts by media type and not quoted.
  • Splitting posts to process each detailed post separately.
  • Fetching full post data and all comment threads.
  • Filtering both root and comment data to keep media and user-specific comments.
  • Merging root and comment data and building Notion block content.
  • Checking if post ID exists in Notion already.
  • Creating Notion pages for new posts and uploading media blocks.

Outputs

  • New Notion pages with post details and embedded media.
  • Updated Notion database as an archive for easy searching.
  • Skipped duplicates to avoid clutter.

Customization Ideas

  • Change the username filter in the “Comment’s Filter” code from ‘geekaz’ to your own Threads username.
  • Modify the since parameter in the “Get Post” node to change how far back posts are fetched.
  • Add new properties or tags in the “Create Page” Notion node to better organize posts.
  • Adjust the filtering logic in “Get Post ID” to include or skip quote posts.

Troubleshooting

“No items found” in Function nodes

This means the API returned empty results.
Check if the Threads ID and access token are correct and not expired.

Notion API returns 401 Unauthorized

This means the Notion token is invalid or expired.
Get a new integration token in Notion and update it in n8n.

Media blocks not showing in Notion pages

The JSON for uploading blocks might be malformed or tokens wrong.
Check that the “children” array in the HTTP request has correct format and authentication headers are set.


Pre-Production Checklist

  • Confirm Threads API Long-Lived Access Token is current.
  • Verify Notion database has columns for “Threads ID”, “Post Date”, and others as required.
  • Run a small test for recent posts to check proper creation and media embedding.
  • Make a backup of your Notion data before running large imports.

Deployment Guide

Turn on the workflow by enabling it in the n8n editor.
Check the workflow runs to see posts get archived in Notion.

If duplicates are found, they will skip and go to a no-operation node.
Adjust scheduling according to your needs.

If using self-host n8n, this link may help: self-host n8n.


Conclusion

Following these steps lets you set up a workflow that saves Threads posts and media directly to Notion.
It saves hours of manual work and keeps your media safe.

You get a well-organized, searchable archive.
You can extend this later with auto-tagging, repost scheduling, or alerts.


Frequently Asked Questions

The workflow compares Threads post IDs with existing Notion page IDs. If a post is already present, it skips creating a new page.
Update the filtering code in the “Get Post ID” node to select media types or adjust the “since” parameter to fetch posts from different dates.
Check that the media blocks JSON sent to Notion is correctly structured and verify the Notion API token and headers.
Run the imported workflow manually once, check for errors, and confirm a sample Threads post appears as a new page in Notion.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free