← Back to Blog
By / /Updated / 9 min read

Build a Fully Automated Threads Bot with n8n + MindThread

You can have Threads post on its own every day without writing code: an n8n schedule node fires once a day, calls the MindThread API to generate a post, and schedules it to go out a little later. You set it up once and it keeps running.

What is n8n?

n8n is an open-source visual automation platform where you build workflows by dragging nodes, either self-hosted or on its cloud version, much like Zapier.

What does this workflow do?

Every day it picks a topic, generates a post and schedules it on Threads:

What do you need first?

An n8n instance, a MindThread API key and a topic list:

How do you build the workflow?

Chain these four nodes.

Node one: Schedule Trigger

Fire it at a fixed time each day with the Asia/Taipei timezone. See the n8n docs: Schedule Trigger.

Node two: pick a topic (Code node)

const topics = [
  "How AI is changing work",
  "Time management for solopreneurs",
  "Staying productive while working remotely",
  "Why you should learn AI tools",
  "How automation saves you time"
];
const topic = topics[new Date().getDay() % topics.length];
return [{ json: { topic } }];

Node three: call the MindThread API (HTTP Request)

{
  "account_id": "YOUR_ACCOUNT_ID",
  "topic": "{{ $json.topic }}",
  "formula": "auto",
  "publish_at": "{{ $now.plus({ minutes: 40 }).toISO() }}"
}

account_id is required. Per the MindThread developer docs, a post scheduled 30 minutes or more ahead needs no owner approval, so this schedules it 40 minutes out; with "publish_now": true a standard key gets approval_not_supported, because this endpoint never waits for approval. For $now see the n8n docs: date and time, and for the HTTP node the n8n docs: HTTP Request.

Node four: log to Google Sheets (optional)

Log each post: date, topic, formula used, post id.

How do you switch it on?

Turn on the "Active" toggle at the top right of n8n and the workflow runs on schedule.

Can you rotate several accounts?

Yes, rotate account ids in the Code node:

const accounts = ["ACCOUNT_A_ID", "ACCOUNT_B_ID", "ACCOUNT_C_ID"];
const account = accounts[new Date().getDay() % accounts.length];
return [{ json: { topic, account_id: account } }];

Why use n8n with MindThread?

Because after one setup you don't touch it daily:

Why use n8n with MindThread?
ApproachProCon
Manual postingFull controlTakes time every day
MindThread dashboardEasy schedulingStill manual
n8n + MindThreadFully automatedOne-time setup

FAQ

Do I need to code to connect n8n and MindThread?
No. Nodes are set up by dragging, and you can copy the short topic snippet as is.

Why not publish right away with publish_now?
Publishing now needs the account owner's approval, and this endpoint never waits for it, so scheduling at least thirty minutes ahead keeps the workflow fully automatic.

Can I post to several accounts?
Yes. Rotate account ids in the Code node, or build one workflow per account.

Further reading

Ready to automate your Threads?

14-day free trial, no credit card required

Start for Free →