Paradoc
Open source · MIT

The document layer for agents.

Paradoc enables AI agents to populate, validate, render, and reason over real-world documents. Deterministically, every time.

A client intake form and income verification form alternate. All details are fictional examples. Three conversational answers populate each document. As each answer is checked, the Paradoc agent writes it into the matching labeled field from left to right. Questions and answers appear from top to bottom and remain in place until the document changes. “Boston MA” fills separate City and State fields. Each filled input gains a checkmark. The completed submission is then checked as a whole and confirmed valid. Illustrative example.
BankingInsuranceHealthcareLawGovernment+ more

Built for regulated industries

Documents as code

Paradoc turns real-world documents into portable, structured, type-safe artifacts. Work with documents like you work with software.

import { w9 } from "@paradoc/essentials/tax";

const pdf = await w9
  .fill({
    parties: { taxpayer: { name: "Jane Q. Public", … } },
    fields: {
      taxClassification: "individual_or_sole_proprietor",
      ssn: "123-45-6789",
      mailingAddress: { … },
    },
  })
  .render({ layer: "pdf" });

95% right isn’t good enough.

When documents carry consequences, agents need the context to act and the tools to check their work.

One source of truth

Define artifacts that capture a document’s fields, parties, rules, instructions, output layers, and other context. Version them and host them in a registry for agents and code.

Tools to act and verify

Fill forms, extract data, assemble documents, and validate as you go. Each operation uses the document’s artifact.

  • CLI
  • AI SDK
  • TanStack AI
  • MCP
  • API

Drop it into your stack

Bring the same artifact and tools to apps, coding agents, AI assistants, and connectors, wherever your software and agents run.

  • Ship faster
  • Validate results
  • Lower latency
  • Lower token spend

Registry

Pre-built, production-grade artifacts.

Import instead of building from scratch. Forms, contracts, checklists, and bundles across tax, banking, healthcare, insurance, legal, and government.

w9Tax

Request for Taxpayer Identification Number

PDFMarkdown
1099-necTax

Nonemployee Compensation

PDFMarkdown
ach-debit-authBanking

ACH Debit Authorization

PDFMarkdown
ach-credit-authBanking

ACH Credit Authorization

PDFMarkdown
ach-direct-depositBanking

ACH Direct Deposit Enrollment

PDFMarkdown
TaxBankingLendingInsuranceHealthcare

Start with the @paradoc/essentials package.

Need a specific form? Talk to us or build your own.

Define your own

Import what exists. Define what doesn’t.

Type-safe from definition to render.

import { p } from '@paradoc/sdk';

const intake = p.form()
  .name('client-intake')
  .parties({
    client: p.party().label('Client'),
  })
  .fields({
    request: p.field.text().required(),
  })
  .layers({
    markdown: p.layer.inline()
      .mimeType('text/markdown')
      .text('{{parties.client.name}}: {{fields.request}}'),
  })
  .build();

Learn to define an artifact

Start building in minutes

Install. Import. Ship. Open source and MIT licensed.

# Add the SDK to your project

$ npm install @paradoc/sdk

# Or install the CLI globally

$ npm install -g paradoc-cli

Read the docs