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.
Vendors email signed contracts to an inbound address; a webhook stores the PDF.
Gemini reads the PDF and returns structured JSON with per-field confidence.
The agent queries the internal policy vector store to flag deviations.
Clean, high-confidence contracts auto-approve. Anything ambiguous is queued for human review.
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.