The Problem: Contract Review at Scale in Swiss Insurance
A 2,000+ employee Swiss insurer processes thousands of contracts annually. Each contract requires manual review by legal and compliance teams, taking 4-8 hours per document. The bottleneck is not the legal review itself, but the pre-review work: extracting key terms, classifying risk, and flagging missing clauses. This is where AI can help. The goal is not to replace lawyers, but to reduce the manual back-office work that precedes legal review. The pilot focuses on one process: contract review. The output is a system that extracts terms, scores risk, and flags issues, with a human approving anything that touches money, health data, or legal obligations. The timeline is 2 weeks, which is tight but feasible for a scoped pilot. The architecture is model-agnostic, using OpenAI and Anthropic APIs where quality matters, and open-weight models on the client’s own hardware where GDPR-sensitive data cannot leave the building. The integration is with Google Workspace, where contracts live in Gmail, Drive, and Docs. The system must support multilingual coverage: German, French, Italian, and English, reflecting Switzerland’s linguistic landscape. The delivery model is an integration sprint, not a full product build. The output is a working prototype with a measured before/after baseline on cycle time and error rate.
The Mechanism: LangGraph Workflow and Predictive Scoring
The system uses LangChain and LangGraph to orchestrate the contract review workflow. LangGraph provides a stateful, cyclic graph structure that maps well to the review process. Each node represents a step: extraction, classification, scoring, human review. Edges define transitions based on conditions. For example, if the risk score is above 70, the contract goes to legal review. If below 30, it may auto-approve. The extraction node uses a fine-tuned model to pull key terms: parties, dates, amounts, clauses. The classification node categorizes the contract type: life, health, property, liability. The scoring node assigns a risk score (0-100) based on detected clauses, missing terms, and historical data. The human review node presents the extracted terms, risk score, and flagged issues to a legal reviewer. The reviewer approves, rejects, or requests changes. The system logs every decision for audit trails. The integration with Google Workspace uses the Google Workspace API, with OAuth 2.0 for authentication. The AI reads contracts from Gmail, Drive, and Docs, drafts responses, and logs actions. Data stays within the client’s Google tenant, and the AI only accesses what the user has permission to see. The model-agnostic architecture routes documents to the appropriate model based on data sensitivity. GDPR-sensitive data goes to open-weight models on the client’s hardware. Non-sensitive data can use OpenAI or Anthropic APIs.
Trade-offs: Model Choice, Automation Level, and Multilingual Support
The architect faces several trade-offs. First, model choice: OpenAI and Anthropic APIs offer higher quality but raise GDPR concerns. Open-weight models on the client’s hardware are GDPR-compliant but may have lower accuracy. The solution is routing: a simple classifier determines which model handles each document based on data sensitivity. Second, automation level: full automation is faster but riskier. Human-in-the-loop is slower but safer. The pilot uses human-in-the-loop by default, with the option to auto-approve low-risk contracts after a period of measured accuracy. Third, multilingual support: supporting German, French, Italian, and English increases complexity. The model’s accuracy may vary by language, so test thoroughly. Use language-specific models or fine-tune on multilingual data. Fourth, integration depth: a shallow integration (read-only) is faster but less useful. A deep integration (read-write) is more useful but requires more time and testing. The pilot uses a shallow integration, with the option to deepen in subsequent phases. Fifth, scope: a broad scope (all contract types) is more ambitious but harder to deliver in 2 weeks. A narrow scope (one contract type) is more feasible but less impactful. The pilot focuses on one contract type, with the option to expand in subsequent phases.
Recommendation: A Scoped Pilot with Measured Baselines
For a 2,000+ employee Swiss insurer, the recommendation is to start with a scoped pilot on one contract type. Use LangGraph to orchestrate the workflow, with nodes for extraction, classification, scoring, and human review. Use predictive scoring to assign a risk score to each contract, with high scores triggering human review. Integrate with Google Workspace to read contracts from Gmail, Drive, and Docs. Use a model-agnostic architecture, routing GDPR-sensitive data to open-weight models on the client’s hardware and non-sensitive data to OpenAI or Anthropic APIs. Support multilingual coverage: German, French, Italian, and English. Use human-in-the-loop by default, with the option to auto-approve low-risk contracts after a period of measured accuracy. Measure before/after baselines on cycle time and error rate. The goal is to reduce the manual back-office work that precedes legal review, not to replace lawyers. The output is a working prototype with a measured baseline, not a production-ready system. Full rollout and managed operation follow in subsequent phases. The key is to automate one process well before attempting multiple. The 2-week timeline is tight but feasible for a scoped pilot. Week 1 covers the process audit, data mapping, and environment setup. Week 2 focuses on building the LangGraph workflow, integrating with Google Workspace, and running the first 50-100 test documents.
Leave a Reply