Extract structured data from uploaded documents using self-hosted Docling OCR, and route files to cloud storage (AWS S3 or compatible). Both operations embed as native case steps — agents review extracted data inline before the case advances.
| Step Type | Work Center Panel | Auto-advance Trigger |
|---|---|---|
doc_extract | DocExtractPanel 🔍 — extraction status, field review table (editable), Approve button | Agent clicks Approve on the extracted data |
doc_store | DocStorePanel ☁️ — upload progress, S3 object key, presigned URL copy button | Successful S3 upload (HTTP 200 from S3) |
Deploy Docling on an internal server reachable from case-service. The Docling service exposes a REST API for document parsing.
Set DOCLING_SERVICE_URL on the case-service host (e.g. http://docling.internal:5001).
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).
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.
Create an S3 bucket. Attach an IAM policy granting the Velaris service account s3:PutObject, s3:GetObject, and s3:DeleteObject on the bucket ARN.
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).
Navigate to Studio > HxConnect > Cloud Storage > Add Connector. Select S3Connector. Set presign_ttl_seconds (default 86400 — 24 hours).
Add a step with type doc_store linked to the S3Connector. Set the source_field to the attachment field on the case.
| Method | Path | Description |
|---|---|---|
POST | /api/docs/cases/{id}/extract | Trigger 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}/approve | Agent approves (and optionally corrects) extracted data. Triggers step completion. |
POST | /api/docs/cases/{id}/store | Upload 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). |