Templates / Generate AI Tweets Mimicking Any Twitter User's Style with OpenAI

Generate AI Tweets Mimicking Any Twitter User's Style with OpenAI

Needs changes

by Piotr Sobolewski ✓ · 1,031 views · created 2025-07-29 · Content Creation, Multimodal AI

Needs 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”.

  1. Set Target & Content (Edit Fields (Set)): sets or maps fields
  2. Get User's Tweets (X (Formerly Twitter)): get user timeline (tweet)
  3. Prepare Style Examples (Function): runs custom JavaScript (legacy Function node)
  4. AI: Mimic Style & Generate Tweet (OpenAI): uses OpenAI
  5. Consolidate Generated Tweet (Edit Fields (Set)): sets or maps fields
  6. Publish Generated Tweet (Optional) (X (Formerly Twitter)): create (tweet)

Services it uses

X (Formerly Twitter)

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.0Replace 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)

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…

Excerpt from Piotr Sobolewski's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.