Automated schema generationStay organized with collectionsSave and categorize content based on your preferences.
Document AI's automated schema generation lets you automatically generate a
document's schema from a test document you supply. Then, you can approve or
decline the schema and edit it manually. This saves time and effort when defining
the document schema for your custom processor and lets you focus on refining the
schema.
Automated schema generation also has a wider knowledge base on creating high
quality schemas. This can potentially improve document extraction quality.
Generate a schema
If you haven't already snapshotted or fine-tuned your processor, take the following steps.
On theGet startedtab, selectGenerate schema from document. TheEdit schemapage opens.
Use the input field to select a local file file to generate the schema, or
use theBrowseoption to upload a sample document.
SelectGenerate Schema.
Review the generated schema preview. You can choose accept or reject the
schema withApply schemaorAbort schema, to try again with a different
sample document or prompt.
Optional: If the resulting schema doesn't serve your
needs, or requires more than manual editing, you can enter a prompt inGenerate
a schema promptto provide additional input and direction for the generator.
Try prompts such as: specifying the document type, stating the most important
parts of the document, or suggesting a target number of entities.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-15 UTC."],[],[]]