Automation library · CRM

Assess contract risk from Google Drive with Groq

Started by an event in a connected app, and works across Google Drive, Salesforce and Slack. It hands the judgement calls to Groq. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Groq

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

The flow

Starts it 1Model 6Logic 9Service 6

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

  1. 1Trigger: New Contract in DriveGoogle Drive triggerStarts it
  2. 2LLM: Clause Extraction ModelLm Chat GroqModel
  3. 3LLM: Risk Analysis ModelLm Chat GroqModel
  4. 4LLM: Final Report ModelLm Chat GroqModel
  5. 5Validate File is PDFIfLogic
  6. 6Extract Contract ClausesAgentModel
  7. 7Analyze Clause RisksAgentModel
  8. 8Generate Final Risk ReportAgentModel
  9. 9Download Contract FileGoogle DriveService
  10. 10Parse Clause OutputCodeLogic
  11. 11Parse Risk Analysis OutputCodeLogic
  12. 12Parse Final ReportCodeLogic
  13. 13Extract Contract NameSetLogic
  14. 14Extract Text from PDFExtract From FileService
  15. 15Merge Contract DataMergeLogic
  16. 16Find Contract in SalesforceSalesforceService
  17. 17Clean Contract TextSetLogic
  18. 18Update Contract RecordSalesforceService
  19. 19Check If Contract ExistsIfLogic
  20. 20Split Contract into ChunksCodeLogic
  21. 21Send Slack NotificationSlackService
  22. 22Create Contract RecordSalesforceService

How it's built

Starts on
An event in a connected app
Steps
22, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Drive, Salesforce, Slack
Model
Groq

Questions

What does it need to run?

An n8n account, plus your own Google Drive, Salesforce and Slack accounts, and a key for Groq. 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 Groq. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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