Automation library · Content

Screen CVs with OpenAI and PostgreSQL

Started by another system calling it, and works across Postgres. It hands the judgement calls to OpenAI. 21 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 5Logic 6Service 9

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

  1. 1Receive CVsWebhookStarts it
  2. 2Fetch Job and CandidatesPostgresService
  3. 3Job Template exists?IfLogic
  4. 4Prepare CandidatesCodeLogic
  5. 5Prompt 0, Extract Job TemplateOpen AiModel
  6. 6Loop CandidatesSplit In BatchesLogic
  7. 7Save Job TemplatePostgresService
  8. 8Prompt 1, ScoreOpen AiModel
  9. 9Prompt 2, GapsOpen AiModel
  10. 10Prompt 3, Interview QuestionsOpen AiModel
  11. 11Build Analysis PayloadCodeLogic
  12. 12Save AnalysisPostgresService
  13. 13Update Candidate StatusPostgresService
  14. 14Check Pending CandidatesPostgresService
  15. 15All Candidates Processed?IfLogic
  16. 16Update Job StatusPostgresService
  17. 17Fetch Full PoolPostgresService
  18. 18Fetch Job for SummaryPostgresService
  19. 19Prompt 4, Executive SummaryOpen AiModel
  20. 20Build Summary PayloadCodeLogic
  21. 21Save SummaryPostgresService

How it's built

Starts on
Another system calling it
Steps
21, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
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 another system calling it.

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 21 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 21 steps before you point it at anything that matters.