Documentation
The shared intelligence layer for AI working with insurance
Clarity Labs is an applied AI research lab building the infrastructure for AI to work safely with insurance.
Cell is a pure TypeScript library that any product or agent can import to understand, reason about, and act on insurance. Provider-agnostic — works with Anthropic, OpenAI, Google, or any model via the Vercel AI SDK.
Capabilities
Document Extraction
Multi-pass pipeline that turns insurance PDFs into structured data — coverages, limits, exclusions, sections — with page-level provenance.
Agent System
Composable prompt modules for building insurance-aware conversational agents across email, chat, SMS, Slack, and Discord.
Application Processing
Prompt builders for detecting application forms, extracting fields, auto-filling from context, batching questions, and filling PDFs.
Install
npm install @claritylabs-inc/cell ai pdf-lib
import { classifyDocumentType, extractFromPdf, applyExtracted } from "@claritylabs-inc/cell";
const { documentType } = await classifyDocumentType(pdfBase64);
const { extracted } = await extractFromPdf(pdfBase64);
const fields = applyExtracted(extracted);