Send verified document data to MuleSoft Composer


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

A no-code route from documents into Salesforce, built as a MuleSoft Composer flow.

Overview

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

Popular use cases

  • Opportunity updates: update the Salesforce opportunity amount and close date from each signed order form, matching on the opportunity number in the document.
  • Account onboarding: create a Salesforce account and contact from each verified application form, using the company registration number to avoid duplicates.
  • Finance handoff: create a NetSuite vendor bill from each verified invoice and record its status on the related Salesforce account.

Before you begin

  • A Cradl AI agent with at least one processed document to test with.
  • MuleSoft Composer: MuleSoft Composer subscription.

How to set it up

  1. In Cradl AI, open your agent, add a Webhook export and copy a sample from View payload under Test delivery. Cradl AI docs
  2. In MuleSoft Composer, create a flow, choose Invoke under Interaction, open Add Input Fields and paste the sample in the Sample JSON Editor. MuleSoft Composer docs
  3. In MuleSoft Composer, build and activate the flow, then open Flow Credentials and copy the URL, Client ID and Client Secret. MuleSoft Composer docs
  4. In Cradl AI, choose POST under Endpoint, paste the URL, and under HTTP headers add Authorization with Basic and the Base64-encoded client ID and secret. 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 customer onboarding form, as in the account onboarding use case.

{  "output": {    "companyName": {      "rawValue": "Lakeside Logistics Inc.",      "value": "Lakeside Logistics Inc.",      "confidence": 0.964,      "page": 0,      "name": "Company Name"    },    "ein": {      "rawValue": "84-1234567",      "value": "84-1234567",      "confidence": 0.94,      "page": 0,      "name": "EIN"    },    "stateOfIncorporation": {      "rawValue": "Delaware",      "value": "Delaware",      "confidence": 0.913,      "page": 0,      "name": "State of Incorporation"    },    "billingAddress": {      "rawValue": "1200 N Lake Shore Dr, Chicago, IL 60610",      "value": "1200 N Lake Shore Dr, Chicago, IL 60610",      "confidence": 0.907,      "page": 0,      "name": "Billing Address"    },    "paymentTerms": {      "rawValue": "Net 30",      "value": "30",      "confidence": 0.929,      "page": 0,      "name": "Payment Terms"    }  },  "context": {    "runId": "cradl:run:eee4d543…",    "documentId": "cradl:document:349e99a0…"  }}

Good to know

The flow credentials expire if the flow stays deactivated for more than 30 days.

Document automation for the agentic era.

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