Skip to content

Contract Clause Reviewer

FieldValue
Namecontract-clause-reviewer
Categoryautomation
Complexityadvanced
Tagslegal-review, google-drive, document-processing, fan-out-pattern, llm-analysis, risk-scoring, s3-storage, postgres-state
Authorrandybias
Min Version0.1.0

Watch a Google Drive folder for new contracts, extract text, perform parallel AI clause analysis across four legal dimensions (liability, IP rights, termination, compliance), and generate consolidated risk reports. Uses a fan-out/fan-in DAG pattern for parallel review.

┌→ review-liability ───┐
poll-drive → store-originals → extract-text ─┼→ review-ip-rights ──┼→ synthesize-report → store-and-notify
├→ review-termination ─┤
└→ review-compliance ──┘
NodePurpose
poll-drivePoll Google Drive folder for new contract documents
store-originalsStore original documents in S3
extract-textExtract text content from documents
review-liabilityAI review of liability clauses
review-ip-rightsAI review of intellectual property clauses
review-terminationAI review of termination clauses
review-complianceAI review against configured compliance frameworks
synthesize-reportConsolidate all reviews into a risk report
store-and-notifyStore report and notify via Slack
  • manual
  • cron — every 30 minutes (*/30 * * * *)
ServiceTypeRequired
Google Drive APIExternalYes
Anthropic APIExternalYes
Slack webhookExternalYes
tentacular-postgresExoskeletonYes
tentacular-rustfsExoskeletonYes
KeyDefaultDescription
timeout300sPer-node timeout
retries1Retry count per node
drive_folder_idYOUR_FOLDER_IDGoogle Drive folder to watch
compliance_frameworks[GDPR]Compliance frameworks to check against
  • google.access_token — Google API access token for Drive
  • anthropic.api_key — Claude API key for clause analysis
  • slack.webhook_url — Slack webhook for notifications
Terminal window
tntc scaffold init contract-clause-reviewer
tntc scaffold init contract-clause-reviewer my-custom-name
tntc scaffold info contract-clause-reviewer

Scaffold source: quickstarts/contract-clause-reviewer/