
Create leads, cases or custom objects from documents, for example loan applications or claims, straight into Salesforce.
Overview
Salesforce can receive Cradl AI’s Webhook export directly. Salesforce gives you an incoming URL through Apex REST endpoint, Cradl AI posts each processed document to it, and you map the fields where you work. Nothing sits in between.
Popular use cases
- Loan applications: create a lead or custom Application record from each scanned application form, with applicant name, income and requested amount filled in.
- Insurance claims: open a case from each claim form, linked to the policyholder’s account, with claim number, incident date and claimed amount set.
- Contract renewals: update the opportunity and account from signed renewal contracts, setting contract value, term length and renewal date.
Before you begin
- A Cradl AI agent with at least one processed document to test with.
- Salesforce: Enterprise, Performance, Unlimited or Developer edition (editions with Apex).
How to set it up
- In Salesforce, write a global Apex class with @RestResource(urlMapping='/cradl/*') and an @HttpPost method that reads RestContext.request.requestBody, rejects requests without your secret header and creates or updates records. Salesforce docs
- In Salesforce Setup, open Sites, choose or create a site, and add the class under Public Access Settings > Enabled Apex Class Access. Your endpoint is the site’s URL plus /services/apexrest/cradl. Salesforce docs
- In Cradl AI, open your agent, add a Webhook export, enter the endpoint under Endpoint with POST and add your secret under HTTP headers. Under Test delivery, choose a recent run and 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 an insurance claim form, as in the insurance claims use case.
Good to know
Salesforce Flow has no inbound webhook trigger. Standard Apex REST needs OAuth tokens that expire, which Cradl AI’s static headers can’t refresh, so the class is exposed through a Site instead. MuleSoft Composer’s Invoke trigger is the no-code alternative.

