Generate AI Tweets Mimicking Any Twitter User's Style with OpenAI
Needs changesNeeds changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), OpenAI (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 7 nodes and runs manually, when you click “Execute workflow”. Along the way it connects X (Formerly Twitter).
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Target & Content (Edit Fields (Set)): sets or maps fields
- Get User's Tweets (X (Formerly Twitter)): get user timeline (tweet)
- Prepare Style Examples (Function): runs custom JavaScript (legacy Function node)
- AI: Mimic Style & Generate Tweet (OpenAI): uses OpenAI
- Consolidate Generated Tweet (Edit Fields (Set)): sets or maps fields
- Publish Generated Tweet (Optional) (X (Formerly Twitter)): create (tweet)
Services it uses
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- Function (legacy) in Prepare Style Examples: replace with Code node, mode 'Run Once for All Items'.
- OpenAI (legacy) in AI: Mimic Style & Generate Tweet: replace with OpenAI node (AI section).
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Prepare Style Examples | Code node, mode 'Run Once for All Items' |
| OpenAI (legacy) AI: Mimic Style & Generate Tweet | OpenAI node (AI section) |
Nodes used (5)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - X (Formerly Twitter)
n8n-nodes-base.twitter - Function
n8n-nodes-base.function - OpenAI
n8n-nodes-base.openAi
From the author
How it works This intelligent workflow allows you to generate new tweets that closely mimic the unique style of any public Twitter user. It's perfect for content creators, marketers, or anyone wanting to create engaging content with a specific brand voice or…