Azure AI Document Intelligence

Also known as: Form Recognizer

On this page 7

Azure AI Document Intelligence is the Microsoft Azure cloud service that applies optical character recognition, layout analysis and machine learning models to documents and returns their text, structure and named fields as structured JSON. In AI automation, it serves as the extraction layer that turns invoices, receipts, identity documents and contracts into data that downstream workflows, robots and language models can use without manual keying.

The service was known as Form Recognizer until 2023, and many code samples, SDK packages and architecture diagrams still use that older name. It belongs to the broader category of intelligent document processing, where it competes with services such as Amazon Textract and products from vendors such as ABBYY.

How Azure AI Document Intelligence processes a document

Azure AI Document Intelligence processes a document through an asynchronous analyze operation: a client submits a file or URL to a chosen model, receives an operation address, and polls it until the AnalyzeResult object is ready. Short documents usually finish within seconds, while long PDFs with hundreds of pages can take minutes.

Inside the operation, the service runs a pipeline of stages. OCR extracts words and lines with bounding polygons, a layout model detects paragraphs, tables, selection marks and section headings, and a field model maps content to named fields with confidence scores. Every extracted element carries a page number and coordinates, which makes it possible to highlight the source region in a review interface.

The table below summarizes the main parts of the response and how automation designers typically use them.

ElementWhat it containsTypical use in a workflow
Pages and linesWords, lines, polygons, page sizeFull-text search, visual highlighting
Paragraphs and rolesText blocks with roles such as title or footnoteChunking text for retrieval
TablesCells with row and column indexes, spansLine-item extraction, spreadsheet export
Key-value pairsDetected labels and their valuesGeneric form capture without training
Documents and fieldsTyped fields with confidence scoresPosting data to ERP or CRM systems
Main elements of the analyze result

The layout model can also emit Markdown, which preserves headings and tables in a compact form. This output has become popular in retrieval-augmented generation, because a language model receives cleaner structure than plain OCR text provides.

Prebuilt, custom and composed models

The service offers three families of models: general extraction models, prebuilt domain models and custom models trained on an organization’s own samples. Choosing the right family is the most consequential design decision, because it determines labeling effort, accuracy and maintenance cost.

Model familyExamplesTraining neededBest fit
ReadPrinted and handwritten textNoneText capture, language detection
LayoutTables, paragraphs, selection marksNoneStructure extraction, RAG preprocessing
PrebuiltInvoice, receipt, ID document, tax formsNoneCommon business documents
Custom templateFixed-layout formsAbout 5 labeled samplesForms with stable positions
Custom neuralSemi-structured and varied layoutsMore samples, longer trainingDocuments with layout variation
Custom classifierSplitting and typing mixed filesExamples per classMail rooms and batch scans
Model families and when each applies

A composed model groups several custom extraction models under one identifier. In current API versions, the recommended pattern routes each document through a custom classifier first, which then sends it to the matching extraction model. This approach handles a mixed stack of purchase orders, delivery notes and invoices in a single call.

Custom template models learn fixed positions and train in minutes, but they break when a supplier redesigns a form. Custom neural models learn visual and textual patterns, tolerate layout variation better, and are the default choice for most new projects despite the longer training time.

Azure AI Document Intelligence is a developer-facing API, not a complete document processing product, and this distinguishes it from several neighboring tools. The comparison below positions it against services and concepts that automation teams often evaluate together.

Tool or conceptMain roleRelationship
AI BuilderLow-code AI inside Power PlatformUses Document Intelligence models behind its document processing
Amazon TextractAWS document extraction APIDirect cloud competitor with similar capabilities
ABBYY productsCommercial capture platformsBroader capture suites with on-premises focus
Intelligent document processingEnd-to-end disciplineDocument Intelligence covers the extraction step
Large language model extractionPrompt-based field extractionOften combined with layout output as input
Position among related tools

In practice, the service rarely works alone. A typical AI workflow combines it with a confidence threshold, a human approval gate for uncertain fields, and an orchestration layer such as Logic Apps, Power Automate or a durable function.

Designing a reliable extraction workflow

A reliable workflow treats every extracted value as a probabilistic result that needs validation, not as a final fact. The confidence score attached to each field is the main signal, but business rules such as totals that match line items, valid tax identifiers and known vendor lists catch errors that confidence alone misses.

  • Set field-level thresholds: critical fields such as amounts and bank details deserve stricter limits than descriptive text.
  • Route low-confidence documents to a review queue instead of rejecting the whole batch.
  • Pin the API version in code, because model behavior and output schema change between versions.
  • Store the raw JSON response to support audits, reprocessing and retraining.
  • Retrain custom models with corrected samples when new layouts appear.

The service runs in Azure regions and is also available as disconnected and connected containers for selected models, which helps organizations with data residency or air-gapped requirements. Pricing is based on pages analyzed per model type, with prebuilt and custom models costing more per page than the Read model.

Limitations and common mistakes

The service performs well on clean scans, but image quality, unusual layouts and dense handwriting remain the main sources of error. The table below lists frequent problems that appear in production projects.

SymptomLikely causeRemedy
Missing table rowsTables spanning pages or without bordersMerge tables across pages in post-processing
Wrong field valuesTemplate model applied to a new layoutSwitch to a neural model or add samples
Low confidence everywhereScans below about 150 DPI or skewed imagesImprove capture settings, enable high resolution
Throttling errorsRequest rate above tier limitsQueue requests and apply retry with backoff
Schema surprisesUnpinned or upgraded API versionPin versions and test before upgrading
Frequent problems and remedies

A common misconception holds that a high confidence score guarantees correctness. Confidence reflects the model’s internal certainty, so a well-printed but wrong value can still score highly; cross-field validation remains essential for financial data.

The short version

Azure AI Document Intelligence is a cloud service that reads documents the way a careful clerk would. It looks at a scanned invoice or a photo of a receipt, finds the text, understands which number is the total and which date is the due date, and hands those values to other software.

It works best as a fast first pass. The service does most of the typing automatically, and people only check the few values it is unsure about.

Where it makes a difference

A mid-sized distribution company receives about 4,000 supplier invoices per month as PDF attachments and paper scans. Before automation, three accounts payable clerks typed vendor names, invoice numbers, totals and line items into the ERP system, with an average delay of five working days.

The team connected a shared mailbox to an orchestration flow that sends each attachment to the prebuilt invoice model. Fields with confidence above 0.90 and totals that match the sum of line items post directly; everything else goes to a review screen that highlights the source region on the page. A custom neural model was later trained for two large suppliers whose invoices used unusual layouts.

After three months, about 70 percent of invoices posted without human touch, review time per exception dropped to under a minute, and the clerks shifted to resolving supplier disputes instead of data entry.