Build a Fully Automated Threads Bot with n8n + MindThread
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:
- Trigger every day at 9 AM
- Pick a topic from your list
- Call MindThread API to generate content
- Auto-publish to Threads
- Log results to Google Sheets
Step 1: Setup
Step 2: Build the Workflow
Node 1 — Cron Trigger
- Schedule: Daily at 09:00Node 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.