Skip to main content

Type Designer

What this page is — the catalog of document types your organisation issues, and the six ways a new one comes into being: from scratch, cloned, copied from another project, imported from another environment, generated by AI from a description, or built by AI from an existing document.

What it is for — so every contract, certificate and offer letter of a kind comes out the same way, from wording and rules somebody approved once.

The problem it solves — each department keeps its own Word template, and nobody can say which wording was approved.

Route: /org/papers/designer · Permissions: View this project's document types. to look (and Show the Type Designer sidebar entry. for the sidebar entry); Create/edit/retire project types and template versions. to create, publish, clone and retire; Manage org-canonical types/templates (projects inherit). for org-wide types that every project inherits.

Figure 1 — Each card is one document type. The counts above them summarise the library.

1. What it is​

A type is the mould; a document is what comes out of it. A type carries five things, and they do not all behave the same way when you change them:

PartTabVersionedA change reaches existing documents?
TemplateTemplateYesNo — only documents created after publishing
FieldsFieldsYesNo
LifecycleLifecycleYesNo
BehaviourBehaviorNo — saved on the typeMostly yes, immediately
AI configurationAI ConfigNo — saved on the typeYes, from the next lifecycle event

That table is the most useful thing to know about this screen. A document remembers the version it was created from, so a fixed template does not repair documents already made from a broken one. Behaviour, by contrast, is read live — turning Allows amendment off stops amendments on every existing document of the type at once.

Each card shows:

On the cardMeans
NameWhat authors pick when creating a document
CodeThe permanent machine identifier — unique across the whole organisation
Family chipOne of eleven classes (§5). Fixed at creation
Status badgedraft, active or retired
Org-wide badgeBelongs to no project — every project can create documents from it
Unpublished warningNo published version yet
StatusOffered in New DocumentMeans
draftNoNever published
activeYesHas a published version
retiredNoWithdrawn. Existing documents keep working. Types are never deleted

2. Why you would use it​

  • The approved wording is the only wording on offer. Authors cannot drift from a template they never edit.
  • Rules travel with the type. Approval, signature, numbering and confidentiality are decided once per class of document instead of remembered per document.
  • AI removes the blank page. Describe a document, or upload last year's offer letter, and a working draft type — fields, sections, tables and signature anchors — is waiting for review in minutes.
  • Types move between environments safely. Export from dev, import into production, and the importer tells you exactly which approval workflows and clauses it could not reconnect.
  • Variants do not fork the original. Clone or copy a type to build a variant without touching the one in use.

3. Six ways to get a new type​

Every route below creates a draft. Nothing is ever published automatically.

RouteStarts fromCostBest for
New TypeNothingFreeA simple fixed-wording letter
CloneA type in the same scopeFreeA variant — one-way NDA from a mutual one
Copy to projectA type in another projectFreeProject B wants project A's type, with a tweak
ImportAn exported type fileFreeMoving a type from dev to production
Generate with AIA plain-language description600 credits est. · 2,400 maxYou have only an idea
Build from a documentAn uploaded file1,200 credits est. · 4,800 maxYou have a real document whose wording you want to keep

Generate with AI runs papers_template_generator: you describe the document, optionally force the family and jurisdiction, and it returns a name, code, family, field schema, template and notes on what to review.

Build from a document runs papers_type_from_document. The file's text layer is read directly, or OCR is used for scans; text is capped at 60,000 characters (about 40 pages). Optional guidance — "salary, joining date and designation must be variables; keep the confidentiality clause fixed" — is the single highest-leverage input. Anything the model was unsure about is left as fixed text and listed in review_items, because silently turning a negotiated clause into a blank is the more dangerous mistake. The uploaded file is discarded after conversion.


4. Step by step​

Create and publish

  1. Pick a route from §3.
  2. Open the card and work through the Template, Fields, Behavior, Lifecycle and AI Config tabs.
  3. Save draft — the designer does not autosave.
  4. Publish. The badge becomes active and the type appears in New Document.

Change a published type — New draft version → edit → Publish. Documents already created keep the version they were made from.

Retire — Retire on the card, then confirm.

Move between environments — Export downloads the definition as JSON; Import in the target environment re-creates it as a draft and shows a report.


5. Field reference​

New / Clone drawer​

FieldRequiredRulesRefusal
Clone fromNoRetired types are not offered. When set, family and description come from the source—
NameYesTyping it fills the code until you edit the code—
CodeYesLowercase letters, digits and underscores; unique across the organisation, not just the project; permanentinvalid code "X": lowercase letters, digits and underscores only · a document type with code "nda" already exists in this organization — choose a different code
FamilyYesOne of the eleven below; permanentinvalid family "x"
DescriptionNoShown on the card—

The eleven families​

The family is the one decision on this page you cannot revisit. It chooses the default lifecycle chain, the defaults the Behavior tab applies, the checklist AI clause reviews use, and which smart fields, signatory grants and regulation rules match.

FamilyTypical documentsApply defaults turns on
TransactionalQuotation, pro-forma, purchase orderApproval, line items, tax exclusive, 30-day validity
AgreementNDA, MSA, contract, SOWApproval, signature, counterparty, amendment, versioning
CorrespondenceOffer letter, noticeApproval
CertificateCertificates, warrantiesDownload on; signature and draft watermark off
PolicyInternal policy, SOPApproval, versioning
RecordMinutes, reports, filingsNothing
SpecificationSRS, design documentsApproval, versioning; signature off
Compliance filingStatutory returns, licences, permitsApproval, versioning, 365-day validity
Proposal / bidTenders, RFP responsesApproval, line items, tax exclusive, 30-day validity
Form / applicationIntake submissionsApproval, counterparty; draft watermark off
CustomAnythingTurns every switch off

Limits and refusals​

RuleDetail
Type limitSystem Config papers.max_types_per_org; 0 = unlimited. Counts every non-retired type in every project — the chip reads "n of N used across the organization". Refusal: your organization has reached its limit of N document types (papers.max_types_per_org) — this limit is shared by all projects
Retiring a type an intake form usesRefused: this type is generated by a Papers intake bridge from the "X" form — delete that bridge in Organization Settings → Papers → Intake forms before retiring the type
Copy to projectNeeds a new code (codes are org-wide). Counts against the limit. References that could not travel are listed as warnings

Import report​

Reference in the fileRe-matched in the target byIf not found
Approval workflow on a transitionModule and workflow nameSet empty and listed — reconnect it on the Lifecycle tab
Clause in a Clause blockClause titleSet empty and listed — reconnect it on the Template tab
Type codeKept, or the nearest free codecould not find a free code near "x" — rename the type and import again

Other import refusals: That file is not valid JSON — pick a file exported from the Type Designer. · the export has no type name.


6. Worked example​

An HR operations lead needs an Offer Letter (India) type and has last year's approved letter as a PDF.

  1. Generate with AI → Document tab → upload the PDF. Guidance: "candidate name, designation, annual CTC, joining date and reporting manager must be variables; keep the confidentiality clause fixed."
  2. About 1,200 credits later the review screen shows the fields — candidate_name (party), designation (text), annual_ctc (currency), joining_date (date), reporting_manager (text), salary_components (line items) — and one review item: "Probation period of six months — could be a variable if it differs per offer."
  3. They rename the code to offer_letter_india, keep family Correspondence, and Create draft type.
  4. In the designer they promote the probation period to a probation_months number field, press Apply Correspondence defaults, pick the HR/{FY}/{SEQ:0000} numbering sequence, Save draft, Publish.

Two weeks later they Export it from dev and Import it into production. The report lists one unresolved reference: the approval workflow "HR offer approval" does not exist there yet. They create it, reconnect it on the Lifecycle tab, and publish.


7. The admin contract​

Must be trueWhereWhat breaks without it
The role holds Create/edit/retire project types and template versions.Role editorThe designer is read-only: no New Type, Generate, Publish, Clone or Retire
Manage org-canonical types/templates (projects inherit). for shared typesRole editorOrg-wide types cannot be changed from a project
papers.max_types_per_org has headroomSystem ConfigEvery create, clone, copy and import is refused
Approval workflows exist in each environmentApproval engineImported types arrive with gated transitions disconnected
papers_template_generator and papers_type_from_document are activeOrbit AI FlowGenerate with AI fails
Numbering sequences and branding existPapers settingsPublished types seal unnumbered, unbranded PDFs

8. Downstream​

When you…Then
PublishNew documents use this version; existing documents keep theirs
Change a Behaviour switchIt applies at once to existing documents of the type (see behaviour)
RetireNo new documents; existing ones keep working
Clone or copyAn independent duplicate — later edits to either do not reach the other
Change the familyNot possible — create a new type

9. Don't confuse this with…​

Create a documentUses a type. This screen builds one
Clause libraryThe second tab — reusable wording shared between types
Papers settingsWhere numbering, branding and rules are created. A type refers to them
ClassifyPicks an existing type for a document. Generate with AI creates a new type

10. Troubleshooting​

SymptomCause
A type is not offered in New DocumentIt is draft or retired, not active
Fixing the template did not fix an existing documentDocuments keep the version they were created from
…already exists in this organization…Codes are unique org-wide — another project has it
…reached its limit of N document types…The organisation cap; retired types do not count, so retire obsolete ones
Retire is refusedAn intake bridge generates from the type — delete the bridge first
An imported type fails on submitA workflow or clause reference was not reconnected — read the import report
New Type and Publish are missingYour role lacks Create/edit/retire project types and template versions.