Automation library · Setup and learning

Instagram automation template in n8n

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 30 steps, 6 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 3Model 6Logic 12Service 9

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

  1. 1MEMÓRIAMemory Postgres ChatModel
  2. 2WEBHOOK EVENTOSWebhookStarts it
  3. 3MEMÓRIA1Memory Postgres ChatModel
  4. 4MEMÓRIA2Memory Postgres ChatModel
  5. 5GET WebhookWebhookStarts it
  6. 6Processa Resposta IAOpen AiModel
  7. 7IfIfLogic
  8. 8Processa Resposta IA1Open AiModel
  9. 9Processa Resposta IA2Open AiModel
  10. 10Respond to WebhookRespond To WebhookStarts it
  11. 11CHATBOT DIRECTHttp RequestService
  12. 12No Operation, do nothingNo OpLogic
  13. 13Identifica EventoSwitchLogic
  14. 14CHATBOT DIRECT1Http RequestService
  15. 15CHATBOT DIRECT2Http RequestService
  16. 16IF TextIfLogic
  17. 17IF AudioIfLogic
  18. 18IF ImagemIfLogic
  19. 19OPÇÕES COMENTÁRIOSIfLogic
  20. 20Ignora meu @No OpLogic
  21. 21Edit FieldsSetLogic
  22. 22Ignora meu @1No OpLogic
  23. 23Baixar AudioHttp RequestService
  24. 24Ignora meu @2No OpLogic
  25. 25Baixar ImagemHttp RequestService
  26. 26RESPONDE COMENTÁRIOHttp RequestService
  27. 27IGNORANo OpLogic
  28. 28Converte Audio GroqHttp RequestService
  29. 29Descrição imagemHttp RequestService
  30. 303 - RESPOSTAS PRIVADAS HMG1Http RequestService

How it's built

Starts on
Another system calling it
Steps
30, with 6 branches
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, and a key for OpenAI. 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 OpenAI. 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 30 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 30 steps before you point it at anything that matters.