Introduction
Use Cradl AI’s Webhook export to send extracted data to a Make scenario. You can also fetch and download the original file inside Make.A native Make integration is coming soon. Until then, connect via Webhook.
Before you begin
- A Make account with permission to create scenarios
- A Cradl AI agent with at least one test document
- API client credentials (
client_id,client_secret) from your workspace settings
Connect Cradl AI to Make
Create a Custom webhook in Make and point your agent’s Webhook export to it.1
Add a Custom webhook in Make
In Make, create a new scenario and add the Webhooks app with the Custom webhook trigger. Click Add to create a new webhook, then copy the generated Webhook URL. Click Run once so the scenario is listening for a request.
2
Add a Webhook export in Cradl AI
In your agent, add a new export and choose Webhook. Paste the Make Webhook URL into URL and set HTTP Method to POST. Click Test webhook and verify that the Make scenario receives a request (2xx). The captured request establishes the webhook’s data structure in Make.
Payload format
The Webhook body includes extracted fields and context such ascontext.documentId. See the Webhook → Payload format for a full example.
Download the file in Make (optional)
Webhook payloads don’t include the original file. The steps below show how to get an access token, fetch the document metadata to obtainfileUrl, and then download the file.
1
Get an access token (HTTP → Make a request)
Add an HTTP > Make a request module and configure it to request an OAuth token.
Save
Parameters
Parameters
| Parameter | Value |
|---|---|
| Method | POST |
| URL | https://auth.cradl.ai/oauth2/token |
| Body type | x-www-form-urlencoded |
| Body | See table below |
Body Fields
Body Fields
| Field | Value |
|---|---|
| client_id | your client id here |
| client_secret | your client secret here |
| grant_type | client_credentials |
| audience | https://api.cradl.ai/v1 |
access_token from the JSON response.2
Fetch document metadata (get fileUrl)
Add another HTTP > Make a request module to fetch document metadata using the
The response includes
documentId from the Webhooks module output.Parameters
Parameters
| Parameter | Value |
|---|---|
| Method | GET |
| URL | https://api.lucidtech.ai/v1/documents/<Document ID from Webhooks body.context.documentId> |
| Headers | Add Authorization: Bearer <access_token from previous step> |
fileUrl.3
Download the file
Add an HTTP > Get a file module (or use Make a request with file download enabled) to download the original file.
The module returns the file as binary data, which you can pass to storage apps like Google Drive, OneDrive, or S3.
Parameters
Parameters
| Parameter | Value |
|---|---|
| URL | {{fileUrl from previous step}} |
| Headers | Authorization: Bearer <access_token> |
Best practices
- Start the scenario in Run once mode when testing so Make captures the webhook sample and builds the data structure
- Return a fast 2xx from your first steps; branch long-running work downstream
- Store secrets in Make’s secure fields (e.g., module fields or variables) rather than hardcoding
Troubleshooting
- No requests arriving in Make: verify the export URL and click Test webhook in Cradl AI; ensure the scenario is in Run once or scheduled
- 401 from token or API calls: check
client_id/client_secret,grant_type=client_credentials, andaudience=https://api.cradl.ai/v1 - Missing fields when mapping: run the scenario once to recapture the webhook payload and refresh the data structure
- Cannot download file: include the
Authorization: Bearer <ACCESS_TOKEN>header when requestingfileUrl