Computer Vision
Fast OCR and visual analysis for images via a single synchronous call
Document Intelligence
Async, structured extraction for PDFs and complex layouts with prebuilt
models
Prerequisites
- An Azure subscription with access to Azure AI services
- A Computer Vision (or Multi-Service Cognitive) resource and its endpoint + API key
- A Document Intelligence resource and its endpoint + API key
You can configure only one of the two services — each automation only requires
the config of the service it targets.
Installation
- Go to Apps in your workspace
- Search for Azure OCR and install it
- Open the app instance configuration and fill in the required fields
Configuration
Endpoints are stored as hostnames only — the app automatically strips
https:// and trailing slashes, so both
https://xxx.cognitiveservices.azure.com/ and
xxx.cognitiveservices.azure.com work.Available Instructions
analyzeImage (Computer Vision)
Send an image URL to Azure Computer Vision and return the analysis result (OCR and optional visual features). This call is synchronous.
Uses the Image Analysis API version
2024-02-01.
readResult, captionResult, tagsResult, …).
analyzeDocument (Document Intelligence)
Send a document (URL or base64) to Azure Document Intelligence, poll for the result, and return either a simplified or raw extraction. This automation handles the async submit-and-poll cycle internally (2s interval, 60s timeout).
Available prebuilt models:
Uses the Document Intelligence API version
2024-11-30.
URL source
Base64 source
Raw output
SetoutputFormat: raw to bypass the internal simplification and receive the full analyzeResult payload from Azure (pages, tables, key-value pairs, styles, …).
Error Handling
Both instructions emit anerror event and return a structured error payload instead of raising. The payload shape is:
Listening for Errors
Because both instructions emit anerror event on failure, you can globally monitor Azure OCR issues from another automation:
Example Use Cases
- Invoice OCR
- ID Verification
- Image OCR
- Markdown Layout
Extract structured invoice data from a PDF sent by email.
Best Practices
- Hostname only — always strip
https://and the trailing slash from endpoints to avoidNetworkError. - Pick the right model —
prebuilt-readis ~3× faster thanprebuilt-layout; uselayoutonly when tables or structure matter. - Prefer
urloverbase64for large documents — base64 uploads go through the Prisme.ai runtime and inflate the request size by ~33%. - Handle the 60s timeout — for long PDFs, either reduce
pagesor split the document upstream. - Use
simpleoutput for LLM pipelines (flattened text/markdown) andrawwhen you need Azure’s full structured result (bounding boxes, tables, key-value pairs).
External Resources
Azure Computer Vision
Image Analysis 4.0 reference
Azure Document Intelligence
Document Intelligence overview and prebuilt models
Prebuilt Models
Full list of prebuilt and custom models
API Keys & Endpoints
Create a Multi-Service Cognitive resource