Automation library · Documents and files

Review contract clauses against your playbook

Started by an event in a connected app, and works across Google Drive and Google Sheets. It hands the judgement calls to Claude. 24 steps, 1 branch, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: Claude

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
2Loops or waits
2Services it connects to

The flow

Starts it 2Model 3Logic 14Service 5

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

  1. 1When Contract UploadedGoogle Drive triggerStarts it
  2. 2Manual Start TriggerManual triggerStarts it
  3. 3Claude AI Model for ReviewLm Chat AnthropicModel
  4. 4Structure Assessment ResultsOutput Parser StructuredModel
  5. 5Retrieve Contract from DriveGoogle DriveService
  6. 6Configure Review SettingsSetLogic
  7. 7Evaluate Clauses with AgentAgentModel
  8. 8Encode File to Base64CodeLogic
  9. 9Store Assessment OutcomeCodeLogic
  10. 10Prepare Extraction RequestCodeLogic
  11. 11Batch Process ClausesSplit In BatchesLogic
  12. 12Post Extraction to Anthropic APIHttp RequestService
  13. 13Collate Clause FindingsCodeLogic
  14. 14Process Extracted ClausesCodeLogic
  15. 15Determine Escalation NecessityIfLogic
  16. 16Craft Escalation NoticeCodeLogic
  17. 17Auto-Clear ClausesCodeLogic
  18. 18Notify via Review ChannelHttp RequestService
  19. 19Compile Review ReportCodeLogic
  20. 20Pause for Reviewer InputWaitLogic
  21. 21Assemble Ledger EntryCodeLogic
  22. 22Log Reviewer JudgmentCodeLogic
  23. 23Log to Review SpreadsheetGoogle SheetsService
  24. 24Alert Completion of ReviewHttp RequestService

How it's built

Starts on
An event in a connected app
Steps
24, with 1 branch, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Google Sheets
Model
Claude

Questions

What does it need to run?

An n8n account, plus your own Google Drive and Google Sheets accounts, and a key for Claude. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

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

How long does it take to set up?

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