This workflow corresponds to n8n.io template #4233 — we link there as the canonical source.
This workflow follows the Agent → Execute Workflow Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "IBfjTnWypBRXCPvj",
"name": "Twitter Thread (Flood) Translator & Poster",
"tags": [],
"nodes": [
{
"id": "72df7ac0-9e65-41f2-bdf4-180f3ed6f1e9",
"name": "When clicking \u2018Test workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
920,
-20
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5716837e-9709-4ec8-b41d-1f17c4fe1f4b",
"name": "Execute Workflow",
"type": "n8n-nodes-base.executeWorkflow",
"position": [
1440,
-20
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "aa0f1d55-f9fc-4932-8109-fdbc3aaf36ea",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-180
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a54bc9c6-3120-49eb-b779-e3af80f5813a",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1060,
-180
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "5fdb1ec4-315f-4361-a069-5e9e25dc3934",
"name": "config",
"type": "n8n-nodes-base.code",
"position": [
1140,
-20
],
"parameters": {},
"typeVersion": 2
},
{
"id": "174bc61b-1fb1-4772-bcf6-d0b223f0a57b",
"name": "Translator_openai",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2140,
160
],
"parameters": {},
"typeVersion": 1.7
},
{
"id": "083b6c06-1944-49a9-bdc2-750810c2861d",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
2220,
400
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "88a7b3be-1128-4e46-a6fa-b0872b5970db",
"name": "Rewriter",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2520,
160
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "59ca4c7a-2c45-4abc-b118-43303f830c8f",
"name": "Sticky Note10",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ec8bcd97-54a5-45aa-ac2c-3306f428e0f1",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4e9f7da0-bd52-4de4-aad1-3f917d3dfda5",
"name": "Login Twitter",
"type": "n8n-nodes-base.httpRequest",
"position": [
3560,
640
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "3ee576d3-e73e-4c1f-9fa9-446e6dc1da53",
"name": "Wait for 2fa code",
"type": "n8n-nodes-base.wait",
"position": [
4060,
640
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "d26e7f0f-8763-4c0d-ab0e-2e83816d0025",
"name": "Login Twitter with 2fa",
"type": "n8n-nodes-base.httpRequest",
"position": [
4300,
640
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "7e92ad78-4d8f-45e4-942b-8613bc93d101",
"name": "Check login",
"type": "n8n-nodes-base.if",
"position": [
4520,
640
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "335637cf-cea6-4bb2-a2c8-16cf11a1525d",
"name": "Check session data",
"type": "n8n-nodes-base.if",
"position": [
3160,
540
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "48c94aa1-8077-4c08-ad42-4fa70bca37d0",
"name": "Set first tweet id and session",
"type": "n8n-nodes-base.set",
"position": [
5180,
620
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "3a768947-083a-493e-a080-b5daa7f7c2b9",
"name": "Post first tweet",
"type": "n8n-nodes-base.httpRequest",
"position": [
5440,
620
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "54f189cc-0dcb-4c9f-8324-0c671db903ca",
"name": "Check posting",
"type": "n8n-nodes-base.if",
"position": [
5660,
620
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c5e56b2b-0250-4fb2-9662-1398d139b83e",
"name": "Authorization Error",
"type": "n8n-nodes-base.if",
"position": [
5880,
760
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "96149e63-37be-4148-8b66-d84ebc74715f",
"name": "Update twitter session",
"type": "n8n-nodes-base.notion",
"position": [
4800,
600
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c8ff5ba5-a9a3-46f6-847b-0d6521c6fd1f",
"name": "Get twitter session",
"type": "n8n-nodes-base.notion",
"position": [
2940,
540
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c30a3783-46f4-4aea-bf3b-6bae0feaea03",
"name": "login_2fa error",
"type": "n8n-nodes-base.if",
"position": [
3880,
920
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d34a6dbb-1a42-489f-8778-06f1493c329a",
"name": "Check login status",
"type": "n8n-nodes-base.if",
"position": [
3720,
640
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "9cab075a-55f0-4754-9015-3c22b65caee0",
"name": "First tweet or thread",
"type": "n8n-nodes-base.if",
"position": [
4840,
200
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "8234f0ee-7184-4aea-ba3a-0197dca248e2",
"name": "Set tweet infos",
"type": "n8n-nodes-base.set",
"position": [
5160,
-240
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "64257a36-2fd5-48fa-ad94-3e3bee2fdbbc",
"name": "Check posting1",
"type": "n8n-nodes-base.if",
"position": [
5680,
-240
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d5788735-40be-46cc-8aa9-eba78cce3bb9",
"name": "Authorization Error1",
"type": "n8n-nodes-base.if",
"position": [
5820,
-80
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "8c0a7f58-51af-44fe-acb9-a3d5048b226b",
"name": "Post reply tweet",
"type": "n8n-nodes-base.httpRequest",
"position": [
5420,
-240
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "e6b16945-b9d2-43cb-a6a2-d82a892fb185",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d9712b4b-c340-4e8c-a447-7aefe0315490",
"name": "set_iteration_outputs",
"type": "n8n-nodes-base.code",
"position": [
6220,
200
],
"parameters": {},
"typeVersion": 2
},
{
"id": "e90d235e-ca52-44f7-ae11-80ebf8871f32",
"name": "MAIN_LOOP",
"type": "n8n-nodes-base.splitInBatches",
"position": [
1900,
-20
],
"parameters": {},
"typeVersion": 3
},
{
"id": "952d5f9d-9db9-42ff-a00c-166bc2023c3a",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
540
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "44e8e0ea-d063-4a58-9c64-4f38c9af3efe",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
-320
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c299b7bf-ebff-4908-8020-3d3707406bcc",
"name": "Extract tweets list",
"type": "n8n-nodes-base.code",
"position": [
1660,
-20
],
"parameters": {},
"typeVersion": 2
},
{
"id": "aec16371-e942-4be9-9b00-809ca0d54e84",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1060,
-360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "4f42b137-0150-44d1-b628-b5f945d8a259",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1360,
-360
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9b936b1c-f594-453e-9a43-be8e655debd1",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
2080,
-100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2cac2fc1-d3ff-42c2-ba1a-f65daf439ea5",
"name": "Sticky Note11",
"type": "n8n-nodes-base.stickyNote",
"position": [
2480,
-100
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "dd6dc5c9-5950-4e8e-8810-941ee1e3fa4c",
"name": "Sticky Note9",
"type": "n8n-nodes-base.stickyNote",
"position": [
2880,
1080
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "1837647c-8619-41b3-8635-18ba646d6bd6",
"name": "Send error message",
"type": "n8n-nodes-base.noOp",
"position": [
4760,
920
],
"parameters": {},
"typeVersion": 1
},
{
"id": "3828dc13-6ed4-4ca8-a1fc-1e26700a71fb",
"name": "Sticky Note12",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
1020
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9637b6f0-5792-42ff-adf1-96f96a8ed389",
"name": "Sticky Note13",
"type": "n8n-nodes-base.stickyNote",
"position": [
5100,
-560
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9aa336df-7dec-4eb9-a3f7-5f1844497147",
"name": "DONE",
"type": "n8n-nodes-base.noOp",
"position": [
2100,
-280
],
"parameters": {},
"typeVersion": 1
},
{
"id": "99d86957-c9f7-4f5c-a7c9-8d8cb4bfd78f",
"name": "Merge first tweet and others",
"type": "n8n-nodes-base.merge",
"position": [
2940,
2120
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "69946d5e-1730-4b33-98f0-474507c7740b",
"name": "When Executed by Another Workflow",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
1160,
2120
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "2c8025d2-fade-45bf-b5bf-184766b1ec79",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"position": [
3400,
2120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "15e79dd7-cce8-4c22-a6e7-b0326218147b",
"name": "Extract Tweet ID and Username",
"type": "n8n-nodes-base.function",
"position": [
1520,
2240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "5d476c98-feb5-4c4e-97f5-64e23798432c",
"name": "Get first tweet",
"type": "n8n-nodes-base.httpRequest",
"position": [
1740,
2020
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "81a08de6-85d6-4f57-9602-7484d696b431",
"name": "Extract Conversation and Author ID",
"type": "n8n-nodes-base.function",
"position": [
1960,
2120
],
"parameters": {},
"typeVersion": 1
},
{
"id": "efe5470a-618b-4c19-8da3-a49cfeb4aea0",
"name": "Merge all tweet infos",
"type": "n8n-nodes-base.merge",
"position": [
2180,
2240
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "2b02d409-d36d-4c13-9380-0e7e24f35e37",
"name": "Get Tweet Replies",
"type": "n8n-nodes-base.httpRequest",
"onError": "continueRegularOutput",
"position": [
2400,
2240
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "833c0d80-fa81-4db9-a720-cf4626445c46",
"name": "Fetch tweets which are connected to first tweet",
"type": "n8n-nodes-base.code",
"position": [
2620,
2240
],
"parameters": {},
"typeVersion": 2
},
{
"id": "90b985e7-8e14-4801-a315-e52e52d57cac",
"name": "Filter empty ones",
"type": "n8n-nodes-base.filter",
"position": [
3160,
2120
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "da5309da-bc63-4157-b790-102728307f4e",
"name": "Sticky Note14",
"type": "n8n-nodes-base.stickyNote",
"position": [
1460,
1960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "b6a229b1-a4db-4d32-a46c-5dda58885597",
"name": "Sticky Note15",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
1960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "e0919f2e-6771-4df3-9d72-88333ef2a717",
"name": "Sticky Note16",
"type": "n8n-nodes-base.stickyNote",
"position": [
2780,
1960
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c8a1b8e9-23b6-4561-aa55-6471e47f9703",
"name": "Sticky Note17",
"type": "n8n-nodes-base.stickyNote",
"position": [
1460,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "fe98b5de-7600-47fc-8b6f-4487646d7c35",
"name": "Sticky Note18",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "c468ca50-25c1-4467-9065-46a1a69dd253",
"name": "Sticky Note19",
"type": "n8n-nodes-base.stickyNote",
"position": [
2780,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "22d1bd3b-ce0b-455f-b750-321f322be192",
"name": "Sticky Note20",
"type": "n8n-nodes-base.stickyNote",
"position": [
1000,
1800
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "2bd70d81-4345-4f4b-99df-a030269a6168",
"name": "Sticky Note21",
"type": "n8n-nodes-base.stickyNote",
"position": [
1000,
1660
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "bf8de65a-d7b2-42ea-89e9-d89c3bae92a3",
"name": "REMOVE THIS NODE",
"type": "n8n-nodes-base.twitter",
"position": [
2320,
-280
],
"parameters": {},
"typeVersion": 2
}
],
"active": false,
"settings": {
"timezone": "Europe/London",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "156bf779-c9ab-4cae-b275-cdf7dd5b57e3",
"connections": {
"DONE": {
"main": [
[
{
"node": "REMOVE THIS NODE",
"type": "main",
"index": 0
}
]
]
},
"config": {
"main": [
[
{
"node": "Execute Workflow",
"type": "main",
"index": 0
}
]
]
},
"Rewriter": {
"main": [
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
]
]
},
"MAIN_LOOP": {
"main": [
[
{
"node": "DONE",
"type": "main",
"index": 0
}
],
[
{
"node": "Translator_openai",
"type": "main",
"index": 0
}
]
]
},
"Check login": {
"main": [
[
{
"node": "Update twitter session",
"type": "main",
"index": 0
}
],
[
{
"node": "Send error message",
"type": "main",
"index": 0
}
]
]
},
"Check posting": {
"main": [
[
{
"node": "set_iteration_outputs",
"type": "main",
"index": 0
}
],
[
{
"node": "Authorization Error",
"type": "main",
"index": 0
}
]
]
},
"Login Twitter": {
"main": [
[
{
"node": "Check login status",
"type": "main",
"index": 0
}
]
]
},
"Check posting1": {
"main": [
[
{
"node": "set_iteration_outputs",
"type": "main",
"index": 0
}
],
[
{
"node": "Authorization Error1",
"type": "main",
"index": 0
}
]
]
},
"Get first tweet": {
"main": [
[
{
"node": "Extract Conversation and Author ID",
"type": "main",
"index": 0
},
{
"node": "Merge first tweet and others",
"type": "main",
"index": 0
}
]
]
},
"Set tweet infos": {
"main": [
[
{
"node": "Post reply tweet",
"type": "main",
"index": 0
}
]
]
},
"login_2fa error": {
"main": [
[
{
"node": "Login Twitter with 2fa",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait for 2fa code",
"type": "main",
"index": 0
}
]
]
},
"Execute Workflow": {
"main": [
[
{
"node": "Extract tweets list",
"type": "main",
"index": 0
}
]
]
},
"Post first tweet": {
"main": [
[
{
"node": "Check posting",
"type": "main",
"index": 0
}
]
]
},
"Post reply tweet": {
"main": [
[
{
"node": "Check posting1",
"type": "main",
"index": 0
}
]
]
},
"Filter empty ones": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
},
"Get Tweet Replies": {
"main": [
[
{
"node": "Fetch tweets which are connected to first tweet",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Translator_openai",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Rewriter",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Translator_openai": {
"main": [
[
{
"node": "Rewriter",
"type": "main",
"index": 0
}
]
]
},
"Wait for 2fa code": {
"main": [
[
{
"node": "Login Twitter with 2fa",
"type": "main",
"index": 0
}
]
]
},
"Check login status": {
"main": [
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
],
[
{
"node": "login_2fa error",
"type": "main",
"index": 0
}
]
]
},
"Check session data": {
"main": [
[
{
"node": "First tweet or thread",
"type": "main",
"index": 0
}
],
[
{
"node": "Login Twitter",
"type": "main",
"index": 0
}
]
]
},
"Authorization Error": {
"main": [
[
{
"node": "Login Twitter",
"type": "main",
"index": 0
}
]
]
},
"Extract tweets list": {
"main": [
[
{
"node": "MAIN_LOOP",
"type": "main",
"index": 0
}
]
]
},
"Get twitter session": {
"main": [
[
{
"node": "Check session data",
"type": "main",
"index": 0
}
]
]
},
"Authorization Error1": {
"main": [
[],
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
]
]
},
"First tweet or thread": {
"main": [
[
{
"node": "Set tweet infos",
"type": "main",
"index": 0
}
],
[
{
"node": "Set first tweet id and session",
"type": "main",
"index": 0
}
]
]
},
"Merge all tweet infos": {
"main": [
[
{
"node": "Get Tweet Replies",
"type": "main",
"index": 0
}
]
]
},
"set_iteration_outputs": {
"main": [
[
{
"node": "MAIN_LOOP",
"type": "main",
"index": 0
}
]
]
},
"Login Twitter with 2fa": {
"main": [
[
{
"node": "Check login",
"type": "main",
"index": 0
}
]
]
},
"Update twitter session": {
"main": [
[
{
"node": "Get twitter session",
"type": "main",
"index": 0
}
]
]
},
"Merge first tweet and others": {
"main": [
[
{
"node": "Filter empty ones",
"type": "main",
"index": 0
}
]
]
},
"Extract Tweet ID and Username": {
"main": [
[
{
"node": "Get first tweet",
"type": "main",
"index": 0
},
{
"node": "Merge all tweet infos",
"type": "main",
"index": 1
}
]
]
},
"Set first tweet id and session": {
"main": [
[
{
"node": "Post first tweet",
"type": "main",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Extract Tweet ID and Username",
"type": "main",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "config",
"type": "main",
"index": 0
}
]
]
},
"Extract Conversation and Author ID": {
"main": [
[
{
"node": "Merge all tweet infos",
"type": "main",
"index": 0
}
]
]
},
"Fetch tweets which are connected to first tweet": {
"main": [
[
{
"node": "Merge first tweet and others",
"type": "main",
"index": 1
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
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. Rewriting: Rewrites each translated tweet to maintain the original meaning while…
Source: https://n8n.io/workflows/4233/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
This workflow is designed for marketers, content creators, agencies, and solo founders who want to publish long‑form posts with visuals on autopilot using n8n and AI agents.
This workflow is perfect for creators, solopreneurs, and personal brands who want to consistently publish bold, high-performing content on X (Twitter) — without writing a single line themselves. After
AI Blog Publisher – Automated Blog Content Workflow This workflow is designed for individuals and teams who regularly publish content on their blog and want to automate the entire process from start t
Awesome N8N Templates. Uses stickyNote, gmail, executeWorkflowTrigger, httpRequest. Event-driven trigger; 35 nodes.
This template attempts to replicate OpenAI's DeepResearch feature which, at time of writing, is only available to their pro subscribers.