← Back to Blog
MinYi / / 4 min read

Build a Fully Automated Threads Bot with n8n + MindThread

n8nautomationno-codetutorialworkflow

Build a Fully Automated Threads Bot with n8n + MindThread API

No coding required. n8n is a visual automation tool. Combined with MindThread's API, you can set up "auto-generate + publish Threads posts daily" workflows.


What We're Building

Workflow:
1. Trigger every day at 9 AM
2. Pick a topic from your list
3. Call MindThread API to generate content
4. Auto-publish to Threads
5. Log results to Google Sheets


Step 1: Setup

1. Sign up for n8n Cloud or self-host
2. Get your MindThread API key (tutorial)
3. Prepare a topic list


Step 2: Build the Workflow

Node 1 — Cron Trigger

- Schedule: Daily at 09:00

Node 2 — Topic Selection (Code Node)

``javascript
const topics = [
"How AI is changing work",
"Time management for solopreneurs",
"5 remote work productivity tips",
"Why you should learn AI tools",
"How automation saves 2 hours daily"
];
const topic = topics[new Date().getDay() % topics.length];
return [{ json: { topic } }];
`

Node 3 — MindThread API (HTTP Request)

- Method: POST
- URL:
https://mindthread.tw/api/v1/content/generate-and-schedule
- Headers:
Authorization: Bearer mt_live_your_key
- Body:

`json
{
"topic": "{{ $json.topic }}",
"formula": "auto",
"publish_now": true
}
`

Node 4 — Google Sheets Logger (Optional)

Log each post: date, topic, formula used, post ID, character count.


Advanced: Multi-Account Rotation

`javascript
const accounts = ["acc_1", "acc_2", "acc_3"];
const account = accounts[new Date().getDay() % accounts.length];
return [{ json: { topic, account_id: account } }];
``


Why n8n + MindThread?

| Approach | Pro | Con |
|----------|-----|-----|
| Manual posting | Full control | 30+ min/day |
| MindThread dashboard | Easy scheduling | Still manual |
| n8n + MindThread | Fully automated | Initial setup |

Set it once, runs forever.

Ready to automate your Threads?

7-day free trial, no credit card required

Start for Free →