Translate & repost Twitter threads in multiple languages with OpenAI
Needs changesWhat this workflow does
This AI workflow has 40 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects OpenAI Chat Model, Notion and X (Formerly Twitter).
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- config (Code): runs custom JavaScript code
- Extract Tweet ID and Username (Function): runs custom JavaScript (legacy Function node)
- Execute Workflow (Execute Sub-workflow): calls another n8n workflow
- Get first tweet (HTTP Request): calls an HTTP API
- Merge: merges the data from its input branches
- Extract tweets list (Code): runs custom JavaScript code
- Extract Conversation and Author ID (Function): runs custom JavaScript (legacy Function node)
- Merge: merges the data from its input branches
- Get Tweet Replies (HTTP Request): calls an HTTP API
- MAIN_LOOP (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 24 more steps. See the full node list below.
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:
- AI Agent v1 (old agent modes) in Translator_openai (v1.7), Rewriter (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
- Function (legacy) in Extract Tweet ID and Username, Extract Conversation and Author ID: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Translator_openai (v1.7), Rewriter (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
| Function (legacy) Extract Tweet ID and Username, Extract Conversation and Author ID | Code node, mode 'Run Once for All Items' |
Nodes used (17)
- Manual Trigger
n8n-nodes-base.manualTrigger - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Notion
n8n-nodes-base.notion - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - No Operation, do nothing
n8n-nodes-base.noOp - Merge
n8n-nodes-base.merge - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Function
n8n-nodes-base.function - Filter
n8n-nodes-base.filter - X (Formerly Twitter)
n8n-nodes-base.twitter
From the author
Twitter Thread (Flood) Translator & Poster What it does - Thread Extraction: Automatically detects and extracts all tweets from a provided Twitter thread (flood) link. - Translation: Translates each extracted tweet into your target language using OpenAI. -…