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
- Download the workflow file using the Download button on this page.
- Open n8n editor and choose “Import from File”.
- Select the downloaded workflow file to add it inside n8n.
Step 2: Setup Credentials and IDs
- Add your Threads API credentials, including your Long-Lived Access Token and Threads ID.
- Add your Notion API credentials and make sure your Notion database is ready with the needed properties.
- 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
- Run the workflow manually once to make sure posts can be fetched and pages created.
- Check the output for errors and verify if a sample page appears in Notion.
Step 4: Activate the Workflow
- Enable the workflow in n8n editor.
- Set your preferred schedule in the Schedule Trigger so the workflow runs automatically (example: daily at midnight).
- 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
sinceparameter 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.
