Schema Upload & Review
When you want to build a template from an existing PDF report (e.g. a competitor’s template, a state-mandated form, or your own legacy report) instead of building from scratch, the Schema Upload & Review flow is the fast path. The AI reads the PDF, extracts sections / subsections / fields / checkboxes, and presents them for your review before saving. This article documents both halves of the flow:- Schema Upload (
/templates/builder/:templateId/schema) — submit a PDF, watch the AI extract - Schema Review (
/template-reviewor/template-editor/:id) — review the extraction and save into a template
When to use this flow
- Building a template from a competitor’s PDF — drop in a copy of their report, get most of the structure for free
- Cloning a TREC-variant report another inspector uses
- Migrating from a legacy report format to 1nspecT-rendered reports
- Starting from a state-mandated form (e.g. some commercial standards)
Phase 1 — Schema Upload
[SCREENSHOT: schema-upload-screen.png — desktop, the Schema Upload page showing a large drag-and-drop zone for PDF upload, with progress indicators for extraction phases below.]Uploading a PDF
The upload zone accepts:- PDF files (any size up to your tenant’s configured limit, typically 25 MB)
- DOCX files (extracted via the same pipeline)
Extraction phases
Behind the scenes, the AI runs in several phases visible as progress indicators:
Total time: typically 30–90 seconds depending on PDF complexity. A long PDF (50+ pages) can take 2–3 minutes.
Cost
Schema extraction uses theextract-structured-ocr AI operation: 3 IT per extraction (see AI Features → Complete Operation Reference). This is per-attempt — re-running on the same PDF costs additional IT.
What gets extracted
The pipeline produces a draft schema with:- Sections with names and short codes
- Subsections under each section
- Fields of various types, classified automatically:
Each field is also tagged with a field category —
standard or informational. This drives whether the field appears in the mobile inspector’s main flow or in the tech-spec grid.
Phase 2 — Schema Review
After extraction completes, you are auto-routed to the Review Template Schema page. URL:/template-review or /template-editor/:id.
[SCREENSHOT: schema-review-screen.png — desktop, the Schema Review page showing Template Information at the top, an Extraction Summary card with counts, and the extracted Template Structure tree below.]
Page sections
Template Information
Choose the standard that best matches the PDF you uploaded. This affects how the AI tunes narrative language later when inspectors use the template.
Extraction Summary
A card showing what the AI found:
The numbers help you spot extraction issues at a glance. If a 30-page report extracts as 2 sections, something went wrong — likely the AI didn’t recognize the section breaks. Re-upload with a cleaner version, or hand-edit the extracted schema.
Template Structure
A hierarchical tree showing the extracted schema. Each node:- Section (collapsible) — name + count of subsections
- Subsection (collapsible) — name + count of fields
- Field — type + category
- Edit — change name, type, category
- Delete — remove this node from the schema
- Add child — insert a new section, subsection, or field
Common AI mistakes to look for
Based on patterns the extraction pipeline has known issues with:Saving the reviewed schema
A Save button at the bottom (or top-right) commits the schema:
After save, you typically continue to Template Designer to set up the canvas and rating scale.
Re-extracting
If you want to start the AI extraction over (e.g. after editing the source PDF):- Return to the Upload page
- Drop the new PDF
- The pipeline re-runs and replaces the current extraction
Errors and recovery
What this flow does NOT do
- It does not design the report PDF’s appearance. Schema is structure only; rendering is Template Designer.
- It does not assign default narratives or AI prompts. Those are configured separately via Narrative Library.
- It does not validate that the extracted schema matches an official standard’s spec. The AI extracts whatever’s in the PDF; if the PDF is non-compliant, the extraction reflects that.
Related articles
- Templates Overview
- Template Builder — where the newly-extracted template appears
- Template Designer — set up the canvas after schema is in place
- Template Editor — edit settings, font, branding
- AI Features → Schema extraction — IT cost and operation reference