Automation library · Chat assistants

The X agent workflow with Gemini and Slack

Started by a clock, and works across Slack and X. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 25 steps, 7 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

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

The flow

Starts it 2Model 6Logic 9Service 8

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2ThinkTool ThinkModel
  3. 3Tweet MemoryMemory Buffer WindowModel
  4. 4Simple MemoryMemory Buffer WindowModel
  5. 5Slack TriggerSlack triggerStarts it
  6. 6Google Gemini Chat ModelLm Chat Google GeminiModel
  7. 7CodeCodeLogic
  8. 8X BotAgentModel
  9. 9Chat Memory ManagerMemory ManagerModel
  10. 10IfIfLogic
  11. 11SwitchSwitchLogic
  12. 12Send a message3SlackService
  13. 13Gets Last MessageCodeLogic
  14. 14Check RegenerateIfLogic
  15. 15Check ApproveIfLogic
  16. 16Check StopIfLogic
  17. 17Caption OR PhotoIfLogic
  18. 18Download ImageHttp RequestService
  19. 19Send a message2SlackService
  20. 20XTwitterService
  21. 21Send a messageSlackService
  22. 22Text OR PhotoIfLogic
  23. 23Upload a fileSlackService
  24. 24Send a message1SlackService
  25. 25Get a fileSlackService

How it's built

Starts on
A clock
Steps
25, with 7 branches
Size
Large: read it before trusting it with anything live
Connects to
Slack, X
Model
Gemini
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 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 25 steps before you point it at anything that matters.