# Translate & repost Twitter threads in multiple languages: n8n workflow

> Started by an event in a connected app, and works across Notion and X. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/translate-and-repost-twitter-threads-in-multiple-languages (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# Translate & repost Twitter threads in multiple languages

Started by an event in a connected app, and works across Notion and X. It hands the judgement calls to OpenAI. 40 steps, 9 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftranslate-and-repost-twitter-threads-in-multiple-languages)

**40 steps** Large: read it before trusting it with anything live

**9** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 3 Logic 26 Service 9

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 4 **config** Code *Logic*
- 5 **Translator_openai** Agent *Model*
- 6 **Rewriter** Agent *Model*
- 7 **Extract Tweet ID and Username** Function *Logic*
- 8 **Execute Workflow** Execute Workflow *Logic*
- 9 **Get twitter session** Notion *Service*
- 10 **Get first tweet** Http Request *Service*
- 11 **Merge all tweet infos** Merge *Logic*
- 12 **Extract tweets list** Code *Logic*
- 13 **Check session data** If *Logic*
- 14 **Extract Conversation and Author ID** Function *Logic*
- 15 **Merge first tweet and others** Merge *Logic*
- 16 **Get Tweet Replies** Http Request *Service*
- 17 **MAIN_LOOP** Split In Batches *Logic*
- 18 **First tweet or thread** If *Logic*
- 19 **Login Twitter** Http Request *Service*
- 20 **Filter empty ones** Filter *Logic*
- 21 **Fetch tweets which are connected to first tweet** Code *Logic*
- 22 **DONE** No Op *Logic*
- 23 **Set tweet infos** Set *Logic*
- 24 **Set first tweet id and session** Set *Logic*
- 25 **Check login status** If *Logic*
- 26 **No Operation, do nothing** No Op *Logic*
- 27 **REMOVE THIS NODE** Twitter *Service*
- 28 **Post reply tweet** Http Request *Service*
- 29 **Post first tweet** Http Request *Service*
- 30 **login_2fa error** If *Logic*
- 31 **Check posting1** If *Logic*
- 32 **Check posting** If *Logic*
- 33 **Login Twitter with 2fa** Http Request *Service*
- 34 **Wait for 2fa code** Wait *Logic*
- 35 **set_iteration_outputs** Code *Logic*
- 36 **Authorization Error1** If *Logic*
- 37 **Authorization Error** If *Logic*
- 38 **Check login** If *Logic*
- 39 **Update twitter session** Notion *Service*
- 40 **Send error message** No Op *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 40, with 9 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Notion, X
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Notion and X accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 40 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 40 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftranslate-and-repost-twitter-threads-in-multiple-languages)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Notion](https://millionrounds.com/workflows?service=Notion#library)[X](https://millionrounds.com/workflows?service=X#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Publish daily multi-platform social posts from live web research** 40 steps · calls a model · Notion, S3](https://millionrounds.com/workflow/publish-daily-multi-platform-social-posts-from-live-web-rese)
- [**Cross-platform content publisher: Telegram** 40 steps · LinkedIn, Telegram](https://millionrounds.com/workflow/cross-platform-content-publisher-telegram)
- [**Hacker News to video content with OpenAI and Dropbox** 39 steps · calls a model · Dropbox, Google Drive](https://millionrounds.com/workflow/hacker-news-to-video-content-with-openai-and-dropbox)
- [**Strategic social media goal tracker automation with MongoDB** 39 steps · Email, MongoDB](https://millionrounds.com/workflow/strategic-social-media-goal-tracker-automation-with-mongodb)
- [**Generate Blog Posts on Autopilot with Tavily and WordPress** 42 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-blog-posts-on-autopilot-with-tavily-and-wordpress)
- [**Generate a full startup plan from one sentence with Postgres** 43 steps · Gmail, Google Drive](https://millionrounds.com/workflow/generate-a-full-startup-plan-from-one-sentence-with-postgres)
