Automation library · Content

Twitter content automation with Gemini

Started by someone submitting a form, and works across X. It hands the judgement calls to Gemini. 17 steps: a working afternoon to understand properly.

MediumCalls a model: Gemini

17 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 4Logic 7Service 5

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

  1. 1Twitter Content FormForm triggerStarts it
  2. 2Twitter Post ToolTwitter ToolService
  3. 3Twitter DM ToolTwitter ToolService
  4. 4Google Gemini Chat Model2Lm Chat Google GeminiModel
  5. 5Twitter Engagement ToolTwitter ToolService
  6. 6Google Gemini Chat Model3Lm Chat Google GeminiModel
  7. 7Workflow ConfigurationSetLogic
  8. 8Twitter AI AgentAgentModel
  9. 9AI Agent - Create Image From PromptAgentModel
  10. 10Fields - Set ValuesSetLogic
  11. 11Process AI ResponseCodeLogic
  12. 12Merge Tweet Text and ImageMergeLogic
  13. 13Code - Clean JsonCodeLogic
  14. 14Create TweetTwitterService
  15. 15Code - Get PromptCodeLogic
  16. 16Code - Set FilenameCodeLogic
  17. 17HTTP Request - Create ImageHttp RequestService

How it's built

Starts on
Someone submitting a form
Steps
17
Size
Medium: a working afternoon
Connects to
X
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on someone submitting a form.

Does it use AI?

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

How long does it take to set up?

Plan an afternoon. 17 steps is enough that you should read each one before running it.

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 17 steps before you point it at anything that matters.