Automation library · Alerts and monitoring

Analyze contract risk from PDFs with OpenAI and Supabase

Started by someone submitting a form, and works across Gmail, Slack and Supabase. 23 steps, 3 branches: large, and worth reading before you trust it with anything live.

Large

23 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 3Logic 9Service 11

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

  1. 1Upload ContractForm triggerStarts it
  2. 2Manual TestManual triggerStarts it
  3. 3Error TriggerError triggerStarts it
  4. 4ConfigSetLogic
  5. 5Slack Admin, ErrorSlackService
  6. 6Check DuplicateHttp RequestService
  7. 7Already Exists?IfLogic
  8. 8Already AnalyzedFormService
  9. 9Has File?IfLogic
  10. 10Extract PDF TextExtract From FileService
  11. 11Sample DataSetLogic
  12. 12Prepare TextCodeLogic
  13. 13AI Pass 1 - ClassifyHttp RequestService
  14. 14Parse ClassificationCodeLogic
  15. 15AI Pass 2 - Deep RiskHttp RequestService
  16. 16Parse Risk AnalysisCodeLogic
  17. 17Build ReportCodeLogic
  18. 18Supabase InsertSupabaseService
  19. 19High Risk?IfLogic
  20. 20Slack Alert - High RiskSlackService
  21. 21Gmail - Risk ReportGmailService
  22. 22Slack Summary - Low RiskSlackService
  23. 23Form EndingFormService

How it's built

Starts on
Someone submitting a form
Steps
23, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Slack, Supabase
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Gmail, Slack and Supabase accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

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.