Turn documents into Odoo records


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

Turn supplier invoices, orders and delivery notes into Odoo records.

Overview

Odoo can receive Cradl AI’s Webhook export directly. Odoo gives you an incoming URL through Studio webhook, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.

Popular use cases

  • Vendor bills: create draft vendor bills in Odoo Accounting from supplier invoices, with vendor, bill reference, invoice lines and taxes filled in.
  • Purchase receipts: update receipts in Odoo Inventory from delivery notes, matching each line to the purchase order quantity actually delivered.
  • Sales orders: create quotations in Odoo Sales from customer purchase orders, with customer, products, quantities and the customer’s reference set.

Before you begin

  • A Cradl AI agent with at least one processed document to test with.
  • Odoo: Odoo Enterprise with Studio (Custom plan on Odoo Online).

How to set it up

  1. In Odoo, open Studio, click Webhooks, then New. Name it, choose the model (developer mode lets you pick others), turn on Log Calls and copy the URL. Odoo docs
  2. In Odoo, edit the Target Record code for an external sender and, in Actions To Do, add an Execute Code action that creates the vendor bill from the payload. Odoo docs
  3. In Cradl AI, open your agent, add a Webhook export and paste the URL under Endpoint with POST. Under Test delivery, choose a recent run and click Test webhook. Cradl AI docs
  4. In Odoo, open the Logs smart button on the automation rule to check the call, then fix any field mapping that returned an error. Odoo 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 with line items, as in the vendor bills use case. A table field, such as invoiceLineItems, holds a list with one entry per row.

{  "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"    },    "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"    },    "invoiceLineItems": [      {        "lineDescription": {          "rawValue": "Steel angle 1-1/2 in.",          "value": "Steel angle 1-1/2 in.",          "confidence": 0.95,          "page": 0,          "name": "Line Description"        },        "quantity": {          "rawValue": "12",          "value": "12",          "confidence": 0.953,          "page": 0,          "name": "Quantity"        },        "lineTotal": {          "rawValue": "$930.00",          "value": "930",          "confidence": 0.94,          "page": 0,          "name": "Line Total"        }      },      {        "lineDescription": {          "rawValue": "Freight",          "value": "Freight",          "confidence": 0.95,          "page": 0,          "name": "Line Description"        },        "quantity": {          "rawValue": "1",          "value": "1",          "confidence": 0.953,          "page": 0,          "name": "Quantity"        },        "lineTotal": {          "rawValue": "$450.00",          "value": "450",          "confidence": 0.94,          "page": 0,          "name": "Line Total"        }      }    ]  },  "context": {    "runId": "cradl:run:eee4d543…",    "documentId": "cradl:document:349e99a0…"  }}

Good to know

Creating records needs an Execute Code action in Python. Odoo recommends testing in a duplicate database first.

Document automation for the agentic era.

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