# Send Azure Document OCR to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "azure-doc-ocr",
    "name": "Azure Document OCR",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/Li-Hongmin/azure-doc-ocr",
    "canonicalUrl": "https://clawhub.ai/Li-Hongmin/azure-doc-ocr",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/azure-doc-ocr",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=azure-doc-ocr",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/models.md",
      "scripts/batch_ocr.py",
      "scripts/ocr_extract.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "azure-doc-ocr",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T00:45:12.608Z",
      "expiresAt": "2026-05-07T00:45:12.608Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=azure-doc-ocr",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=azure-doc-ocr",
        "contentDisposition": "attachment; filename=\"azure-doc-ocr-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "azure-doc-ocr"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/azure-doc-ocr"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/azure-doc-ocr",
    "downloadUrl": "https://openagent3.xyz/downloads/azure-doc-ocr",
    "agentUrl": "https://openagent3.xyz/skills/azure-doc-ocr/agent",
    "manifestUrl": "https://openagent3.xyz/skills/azure-doc-ocr/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/azure-doc-ocr/agent.md"
  }
}
```
## Documentation

### Azure Document Intelligence OCR

Extract text and structured data from documents using Azure Document Intelligence REST API.

### 1. Environment Setup

Set your Azure Document Intelligence credentials:

export AZURE_DOC_INTEL_ENDPOINT="https://your-resource.cognitiveservices.azure.com"
export AZURE_DOC_INTEL_KEY="your-api-key"

### 2. Single File OCR

# Basic text extraction from PDF
python scripts/ocr_extract.py document.pdf

# Extract with layout (tables, structure)
python scripts/ocr_extract.py document.pdf --model prebuilt-layout --format markdown

# Process invoice
python scripts/ocr_extract.py invoice.pdf --model prebuilt-invoice --format json

# OCR from URL
python scripts/ocr_extract.py --url "https://example.com/document.pdf"

# Save output to file
python scripts/ocr_extract.py document.pdf --output result.txt

# Extract specific pages
python scripts/ocr_extract.py document.pdf --pages 1-3,5

### 3. Batch Processing

# Process all documents in a folder
python scripts/batch_ocr.py ./documents/

# Custom output directory and format
python scripts/batch_ocr.py ./documents/ --output-dir ./extracted/ --format markdown

# Use layout model with 8 workers
python scripts/batch_ocr.py ./documents/ --model prebuilt-layout --workers 8

# Filter specific extensions
python scripts/batch_ocr.py ./documents/ --ext .pdf,.png

### Model Selection Guide

Document TypeRecommended ModelUse CaseGeneral textprebuilt-readPure text extraction, any documentStructured docsprebuilt-layoutTables, forms, paragraphs, figuresInvoicesprebuilt-invoiceVendor info, line items, totalsReceiptsprebuilt-receiptMerchant, items, totals, datesIDs/Passportsprebuilt-idDocumentIdentity documentsBusiness cardsprebuilt-businessCardContact informationW-2 formsprebuilt-tax.us.w2US tax documentsInsurance cardsprebuilt-healthInsuranceCard.usHealth insurance info

See references/models.md for detailed model documentation.

### Supported Input Formats

PDF: .pdf (including scanned PDFs)
Images: .png, .jpg, .jpeg, .tiff, .bmp
URLs: Direct links to documents

### Output Formats

text: Plain text concatenation of all extracted content
markdown: Structured output with headers and tables (best with layout model)
json: Raw API response with full extraction details

### Features

Handwriting Recognition: Extracts handwritten text alongside printed text
CJK Support: Full support for Chinese, Japanese, Korean characters
Table Extraction: Preserves table structure (use layout model)
Multi-page Processing: Handles documents with multiple pages
Concurrent Processing: Batch script supports parallel processing
URL Input: Process documents directly from URLs

### Environment Variables

VariableRequiredDescriptionAZURE_DOC_INTEL_ENDPOINTYesAzure Document Intelligence endpoint URLAZURE_DOC_INTEL_KEYYesAPI subscription key

### Error Handling

Invalid credentials: Check endpoint URL and API key
Unsupported format: Ensure file extension matches supported types
Timeout: Large documents may need longer processing (max 300s)
Rate limiting: Reduce concurrent workers for batch processing

### Extract text from scanned PDF

python scripts/ocr_extract.py scanned_contract.pdf --model prebuilt-read

### Process invoices with structured output

python scripts/ocr_extract.py invoice.pdf --model prebuilt-invoice --format json --output invoice_data.json

### Batch process with layout analysis

python scripts/batch_ocr.py ./reports/ --model prebuilt-layout --format markdown --workers 4

### Extract specific pages from large document

python scripts/ocr_extract.py large_doc.pdf --pages 1,3-5,10 --format text
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Li-Hongmin
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T00:45:12.608Z
- Expires at: 2026-05-07T00:45:12.608Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/azure-doc-ocr)
- [Send to Agent page](https://openagent3.xyz/skills/azure-doc-ocr/agent)
- [JSON manifest](https://openagent3.xyz/skills/azure-doc-ocr/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/azure-doc-ocr/agent.md)
- [Download page](https://openagent3.xyz/downloads/azure-doc-ocr)