Automation library · Documents and files

Automated Instagram commenting on selected profiles

Started by a clock. It calls services over plain HTTP rather than through connectors. It hands the judgement calls to OpenAI. 31 steps, 2 branches, 3 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 4Logic 11Service 15

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Schedule TriggerSchedule triggerStarts it
  3. 3OpenAI Chat Model2Lm Chat Open AiModel
  4. 4Create CommentAgentModel
  5. 5Get Available Session CookiesMicrosoft Share PointService
  6. 6Select CookieAgentModel
  7. 7Create CSV BinaryCodeLogic
  8. 8Extract CookiesExtract From FileService
  9. 9Set ENV VariablesSetLogic
  10. 10Upload CSVMicrosoft Share PointService
  11. 11Get Profile Extractor AgentPhantombusterService
  12. 12Get Autocomment AgentPhantombusterService
  13. 13Get List of AccountsMicrosoft Share PointService
  14. 14Launch AC AgentPhantombusterService
  15. 15Launch Agent1PhantombusterService
  16. 16Wait1WaitLogic
  17. 17Wait3WaitLogic
  18. 18Get ResponsePhantombusterService
  19. 19HTTP RequestHttp RequestService
  20. 20HTTP Request1Http RequestService
  21. 21Prepare PostsCodeLogic
  22. 22If EmptyIfLogic
  23. 23Wait2WaitLogic
  24. 24Get Random PostCodeLogic
  25. 25Download fileMicrosoft Share PointService
  26. 26Extract from FileExtract From FileService
  27. 27Check if in ListCodeLogic
  28. 28IfIfLogic
  29. 29Prepare Updated DataCodeLogic
  30. 30Convert to FileConvert To FileService
  31. 31Update fileMicrosoft Share PointService

How it's built

Starts on
A clock
Steps
31, with 2 branches, 3 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
OpenAI

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 a clock.

Does it use AI?

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

How long does it take to set up?

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