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
Automate Threads posts with n8n and Notion

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

Learn how to Build this Workflow with AI:

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


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.


Automate Threads posts with n8n and Notion

Visit through Desktop to Interact with the Workflow.

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.
Author
Written By
Ritu Sanjali

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.