Automation library · Content

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.

LargeCalls a model: OpenAI

40 stepsLarge: read it before trusting it with anything live
9Branches: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Model 3Logic 26Service 9

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3When Executed by Another WorkflowExecute Workflow triggerStarts it
  4. 4configCodeLogic
  5. 5Translator_openaiAgentModel
  6. 6RewriterAgentModel
  7. 7Extract Tweet ID and UsernameFunctionLogic
  8. 8Execute WorkflowExecute WorkflowLogic
  9. 9Get twitter sessionNotionService
  10. 10Get first tweetHttp RequestService
  11. 11Merge all tweet infosMergeLogic
  12. 12Extract tweets listCodeLogic
  13. 13Check session dataIfLogic
  14. 14Extract Conversation and Author IDFunctionLogic
  15. 15Merge first tweet and othersMergeLogic
  16. 16Get Tweet RepliesHttp RequestService
  17. 17MAIN_LOOPSplit In BatchesLogic
  18. 18First tweet or threadIfLogic
  19. 19Login TwitterHttp RequestService
  20. 20Filter empty onesFilterLogic
  21. 21Fetch tweets which are connected to first tweetCodeLogic
  22. 22DONENo OpLogic
  23. 23Set tweet infosSetLogic
  24. 24Set first tweet id and sessionSetLogic
  25. 25Check login statusIfLogic
  26. 26No Operation, do nothingNo OpLogic
  27. 27REMOVE THIS NODETwitterService
  28. 28Post reply tweetHttp RequestService
  29. 29Post first tweetHttp RequestService
  30. 30login_2fa errorIfLogic
  31. 31Check posting1IfLogic
  32. 32Check postingIfLogic
  33. 33Login Twitter with 2faHttp RequestService
  34. 34Wait for 2fa codeWaitLogic
  35. 35set_iteration_outputsCodeLogic
  36. 36Authorization Error1IfLogic
  37. 37Authorization ErrorIfLogic
  38. 38Check loginIfLogic
  39. 39Update twitter sessionNotionService
  40. 40Send error messageNo OpLogic

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.