Contract Review Agent
Sign in

Vendor contracts, reviewed by an agent.

Emails come in with a PDF attachment. The agent extracts the terms, cross-checks them against your internal policy library, and only puts uncertain contracts in front of a human.

Email intake

Vendors email signed contracts to an inbound address; a webhook stores the PDF.

Extraction

Gemini reads the PDF and returns structured JSON with per-field confidence.

RAG policy check

The agent queries the internal policy vector store to flag deviations.

Route

Clean, high-confidence contracts auto-approve. Anything ambiguous is queued for human review.

Inbound webhook endpoint

Any inbound-email provider (Resend, SendGrid, Postmark, Mailgun) can POST parsed emails here. The webhook accepts a JSON body with base64 attachments and is guarded by a shared secret.

POST /api/public/email/inbound
Header: x-webhook-secret: <shared secret>
Body: {
  "from": "legal@vendor.example",
  "subject": "Signed MSA",
  "attachments": [{
    "filename": "contract.pdf",
    "content_type": "application/pdf",
    "content_base64": "..."
  }]
}

For a quick demo without configuring an inbound provider, use Simulate inbound after signing in.