Automation library · Chat assistants

Reply to Instagram comments and send DMs

Started by another system calling it, and works across Google Sheets and Slack. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 5 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: GeminiRetrieval

23 stepsLarge: read it before trusting it with anything live
5Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 3Model 6Logic 7Service 7

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

  1. 1WebhookWebhookStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Google Gemini Chat Model1Lm Chat Google GeminiModel
  5. 5Simple Memory1Memory Buffer WindowModel
  6. 6Code in JavaScript1CodeLogic
  7. 7Respond to Webhook3Respond To WebhookStarts it
  8. 8AI AgentAgentModel
  9. 9AI Agent1AgentModel
  10. 10Respond to Webhook2Respond To WebhookStarts it
  11. 11IfIfLogic
  12. 12If2IfLogic
  13. 13Facebook Graph API3Facebook Graph ApiService
  14. 14If1IfLogic
  15. 15WaitWaitLogic
  16. 16Send a message1SlackService
  17. 17Facebook Graph API2Facebook Graph ApiService
  18. 18If3IfLogic
  19. 19If4IfLogic
  20. 20Facebook Graph APIFacebook Graph ApiService
  21. 21Story MentionSlackService
  22. 22Send a messageSlackService
  23. 23Update row in sheetGoogle SheetsService

How it's built

Starts on
Another system calling it
Steps
23, with 5 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Slack
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 Google Sheets and Slack accounts, 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. 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 23 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 23 steps before you point it at anything that matters.