Automation library · AI assistants

Automate multilingual Slack communication (JA EN) with Gemini

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to Gemini. 24 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Gemini

24 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 5Model 4Logic 11Service 4

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

  1. 1Webhook (Slack /trans)WebhookStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Webhook (Slack @trans + reaction)WebhookStarts it
  4. 4Ack (Respond to Slack)Respond To WebhookStarts it
  5. 5Parse Slash PayloadCodeLogic
  6. 6Basic LLM Chain (reaction)Chain LlmModel
  7. 7Basic LLM Chain (@trans)Chain LlmModel
  8. 8Basic LLM Chain (/trans)Chain LlmModel
  9. 9Detect Slack Event TypeCodeLogic
  10. 10Format Slack Message (reaction)CodeLogic
  11. 11Format Slack Message (@trans)CodeLogic
  12. 12Format Slack Message (/trans)CodeLogic
  13. 13Route by Event TypeSwitchLogic
  14. 14Post to Slack (reaction reply)Http RequestService
  15. 15Post to Slack (@trans reply)Http RequestService
  16. 16Post to Slack (response_url)Http RequestService
  17. 17Ack Mention EventRespond To WebhookStarts it
  18. 18Parse Mention EventCodeLogic
  19. 19Ack Reaction EventRespond To WebhookStarts it
  20. 20Parse Reaction EventCodeLogic
  21. 21Filter Reaction TypeCodeLogic
  22. 22Fetch Original MessageHttp RequestService
  23. 23Prep Reaction Translation InputCodeLogic
  24. 24Skip Reaction When No Message FoundIfLogic

How it's built

Starts on
Another system calling it
Steps
24, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on another system calling it.

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?

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