This site is not affiliated with or endorsed by Vercel, Inc. Read the docs, then deploy or run each experiment yourself.
AI

Policy Simplifier Lab

Paste terms or privacy text - plain-language summary, key bullets, and watch-outs (not legal advice).

Run this experiment yourself

Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.

Local development

cd apps/experiments/policy-simplifier-lab
pnpm install
pnpm dev

Then open http://localhost:3010.

This is an experimental demo. Outputs are not legal advice.

Policy Simplifier Lab rewrites terms/privacy excerpts into plain English with generateObject: a short summary, key bullets, and watch-outs. No AI keys - 503.

Features

  • Plain summary – 2–4 sentences.
  • Key bullets – collection, sharing, retention, rights.
  • Watch outs – careful-reader callouts.
  • Sample privacy excerpt.
  • Honest unavailable state.

Server Reference

POST /api/simplify

{ "policy": "..." }

Success (200)

{
  "plainSummary": "We collect email and usage data…",
  "bullets": ["You can request deletion…"],
  "watchOuts": ["Legal hold can keep records up to 7 years."],
  "provider": "ai-gateway"
}
StatusCause
503No AI provider
400Empty policy

Implementation Details

clampSummary trims and caps bullets (16) and watch-outs (8).

Use Cases

  • Internal policy literacy drafts.
  • Teach plain-language rewrite schemas.
  • Pair with Contract Clause Finder for legal-ish docs.

Limitations

  • Not legal advice.
  • Truncates long policies (~18k chars).
  • No auth / rate limits.

Use in your project

Reuse the summary + bullets schema from app/api/simplify/route.ts.

Deployment

Deploy on Vercel

Local Development

cd apps/experiments/policy-simplifier-lab
pnpm install
pnpm dev

Configuration

VariableRequiredPurpose
AI_GATEWAY_API_KEYYes (or OPENAI_API_KEY)Preferred provider
OPENAI_API_KEYNoFallback
AI_MODELNoModel override

Vercel / Next.js Features Used

  • AI SDK generateObject
  • Vercel AI Gateway
  • Route Handlers
  • Zod

Next Steps

On this page