The flow
Starts it 1Model 1Logic 10Service 8
The steps in the order they run, from what starts it.
- 1Schedule Trigger Every MidnightSchedule triggerStarts it
- 2Fetch LinkedIn Profile from UnipileHttp RequestService
- 3Select rows from a tablePostgresService
- 4Insert Lead into Nebula PostgresPostgresService
- 5Loop Over Items3Split In BatchesLogic
- 6Get Latest Linkedin PostHttp RequestService
- 7Prepare Latest Post ContextCodeLogic
- 8Is New Commentable Post?IfLogic
- 9Get Post CommentsHttp RequestService
- 10Prepare AI Engagement Context.CodeLogic
- 11AI Decide And Generate CommentOpen AiModel
- 12Parse AI DecisionCodeLogic
- 13IfIfLogic
- 14Comment Like via UnipileHttp RequestService
- 15Prepare Skip UpdateCodeLogic
- 16WaitWaitLogic
- 17Reattach Context After LikeCodeLogic
- 18Comment Post via UnipileHttp RequestService
- 19Reattach Context After CommentCodeLogic
- 20Execute a SQL queryPostgresService
How it's built
- Starts on
- A clock
- Steps
- 20, with 2 branches, 2 loops or waits
- Size
- Medium: a working afternoon
- Connects to
- Postgres
- Model
- OpenAI
Questions
What does it need to run?
An n8n account, plus your own Postgres 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?
Plan an afternoon. 20 steps is enough that you should read each one before running it.
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 itNothing 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 20 steps before you point it at anything that matters.