Capabilities

🔍
OCR Extraction
Docling parses PDFs and images into structured JSON — fields, tables, and key-value pairs.
✅
Agent Review
Agents review and correct extracted values inline in the Work Center before approving.
☁️
S3 Storage
SigV4 presigned upload to AWS S3 or any S3-compatible service (MinIO, R2).
🔒
Privacy First
Docling is self-hosted — no document data leaves your network.

Step Types

Step TypeWork Center PanelAuto-advance Trigger
doc_extractDocExtractPanel 🔍 — extraction status, field review table (editable), Approve buttonAgent clicks Approve on the extracted data
doc_storeDocStorePanel ☁️ — upload progress, S3 object key, presigned URL copy buttonSuccessful S3 upload (HTTP 200 from S3)

Configuring Docling (OCR)

  1. Deploy Docling on an internal server reachable from case-service. The Docling service exposes a REST API for document parsing.

  2. Set DOCLING_SERVICE_URL on the case-service host (e.g. http://docling.internal:5001).

  3. Navigate to Studio > HxConnect > Doc Intel > Add Connector. Select DoclingConnector. Optionally configure extraction_template — a JSON schema that guides Docling's field detection for a specific document type (e.g. invoice, ID card, bank statement).

  4. Add a step with type doc_extract to any stage in your case type. Link it to the DoclingConnector. Set the source_field to the case field that holds the uploaded file attachment.

Extraction template: A JSON schema hint improves extraction accuracy for known document types. Without a template, Docling performs general-purpose OCR and returns all detected text structures.

Configuring S3 Storage

  1. Create an S3 bucket. Attach an IAM policy granting the Velaris service account s3:PutObject, s3:GetObject, and s3:DeleteObject on the bucket ARN.

  2. Set environment variables on case-service: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, S3_BUCKET_NAME. For non-AWS storage, also set S3_ENDPOINT_URL (e.g. https://s3.r2.cloudflarestorage.com).

  3. Navigate to Studio > HxConnect > Cloud Storage > Add Connector. Select S3Connector. Set presign_ttl_seconds (default 86400 — 24 hours).

  4. Add a step with type doc_store linked to the S3Connector. Set the source_field to the attachment field on the case.

Presigned URL expiry: After the TTL expires, the URL is no longer valid. When an agent opens the panel after expiry, Velaris automatically generates a fresh presigned URL — no manual action required.

API Reference

MethodPathDescription
POST/api/docs/cases/{id}/extractTrigger OCR extraction on the case's current attachment. Returns job ID.
GET/api/docs/extraction-jobs/{job_id}Get extraction job status and results.
POST/api/docs/extraction-jobs/{job_id}/approveAgent approves (and optionally corrects) extracted data. Triggers step completion.
POST/api/docs/cases/{id}/storeUpload case attachment to S3. Returns presigned URL and object key.
GET/api/docs/storage-routes/{id}Get current presigned URL for a stored document (regenerates if expired).

Best Practices