
Write document data to your database and power internal review tools.
Overview
Retool can receive Cradl AI’s Webhook export directly. Retool gives you an incoming URL through Webhook trigger, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.
Popular use cases
- Approval queue: insert each extracted invoice into a Retool Database table that a Retool app lists for finance to approve, correct or reject.
- Claims intake: use a Branch block on the document type to send claims and invoices to different tables, then review both in one Retool app.
- Supplier onboarding: write extracted company and bank details to your Postgres resource with a query block and post a Slack message to the ops channel.
Before you begin
- A Cradl AI agent with at least one processed document to test with.
- Retool: All Retool plans, including Free (500 workflow runs a month on Free, 5,000 on Team and Business).
How to set it up
- In Retool, create a workflow, open the Triggers tab, turn on the Webhook trigger and copy its URL and API key. Retool docs
- In Retool, paste the sample payload from Cradl AI’s View payload into Test JSON Parameters, read fields as {{ startTrigger.data.output.companyName.value }} in your blocks, then click Publish release. Retool docs
- In Cradl AI, add a Webhook export. Under Endpoint, choose POST and paste the URL. Under HTTP headers, add X-Workflow-Api-Key with the API key. Cradl AI docs
- In Cradl AI, choose a recent run under Test delivery and click Test webhook, then check the run in the workflow’s run history. 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 vendor setup form, as in the supplier onboarding use case.
Good to know
Webhook calls run only the published release, so click Publish release after every change.

