Load document data into Oracle Autonomous Data Warehouse automatically


The Cradl AI builder with the Export to Webhook panel open: endpoint URL, signing secret, HTTP headers and a test delivery.

Insert every verified document into Oracle Autonomous Data Warehouse through a REST handler built into the database.

Overview

Oracle Autonomous Data Warehouse can receive Cradl AI’s Webhook export directly. Oracle Autonomous Data Warehouse gives you an incoming URL through ORDS REST handler, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.

Popular use cases

  • Spend analytics: insert invoice headers and lines into related Oracle tables, then analyze spend by supplier and month in Oracle Analytics Cloud.
  • Payables matching: compare extracted invoice totals with purchase orders and receipts already in your Autonomous AI Database to flag mismatches before payment.
  • Audit trail: store runId and documentId in every inserted row, so each figure in a report traces back to the document it came from.

Before you begin

  • A Cradl AI agent with at least one processed document to test with.
  • Oracle Autonomous Data Warehouse: Any Autonomous AI Database, including Autonomous AI Lakehouse (formerly Autonomous Data Warehouse).

How to set it up

  1. In Database Actions, REST-enable an application schema, then under REST › Modules create a module, a template and a POST handler with source type PL/SQL. Oracle Autonomous Data Warehouse docs
  2. In the handler, read :body once into a BLOB and insert the fields and line items with JSON_TABLE, following Oracle’s nested JSON example. Oracle Autonomous Data Warehouse docs
  3. In Database Actions, protect the module with a privilege, then copy the handler URL, which looks like https://…/ords/<schema>/<module>/<template>. Oracle Autonomous Data Warehouse docs
  4. In Cradl AI, add a Webhook export with POST and that URL. Under HTTP headers, add Authorization: Basic for the schema user, then click Test webhook. Cradl AI docs

What Cradl AI sends

Each processed document arrives as one JSON request with two parts. output holds every field under its field ID, with the value, the text as read, a confidence score and a readable name. context holds the run and document IDs. The request is signed with HMAC SHA-256 in the X-Cradl-Signature header.

This example is a supplier invoice, as in the payables matching use case.

{  "output": {    "supplierName": {      "rawValue": "Summit Industrial Supply",      "value": "Summit Industrial Supply",      "confidence": 0.909,      "page": 0,      "name": "Supplier Name"    },    "invoiceNumber": {      "rawValue": "INV-20931",      "value": "INV-20931",      "confidence": 0.916,      "page": 0,      "name": "Invoice Number"    },    "purchaseOrderNumber": {      "rawValue": "PO-4471",      "value": "PO-4471",      "confidence": 0.936,      "page": 0,      "name": "Purchase Order Number"    },    "invoiceDate": {      "rawValue": "05/23/2026",      "value": "2026-05-23",      "confidence": 0.951,      "page": 0,      "name": "Invoice Date"    },    "totalAmount": {      "rawValue": "$1,380.00",      "value": "1380",      "confidence": 0.906,      "page": 0,      "name": "Total Amount"    },    "currency": {      "rawValue": "USD",      "value": "USD",      "confidence": 0.933,      "page": 0,      "name": "Currency"    }  },  "context": {    "runId": "cradl:run:eee4d543…",    "documentId": "cradl:document:349e99a0…"  }}

Good to know

You write a short PL/SQL handler that runs in the database. To skip code, POST to a SODA for REST collection and query the JSON with SQL.

Document automation for the agentic era.

Build your first agent in minutes, and let your business users review and train it from day one.