Connect Cradl AI to Amazon Redshift


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

Write every verified document to Redshift through a small function in your own AWS account.

Overview

Amazon Redshift doesn’t connect to Cradl AI directly yet. Until it does, connect it through one of Cradl AI’s automation integrations, as described below.

Popular use cases

  • Spend analytics: insert invoice lines into a Redshift table, then break spend down by vendor, cost center and month in your BI tool.
  • Payment matching: join extracted invoice totals with payment and ledger tables in Redshift to find invoices that are unpaid, short-paid or paid twice.
  • Audit trail: keep runId and documentId beside each extracted value in a Redshift table, so every reported figure traces back to its document.

Before you begin

  • A Cradl AI agent with at least one processed document to test with.
  • Amazon Redshift: AWS account; Lambda and Redshift Data API usage are billed by AWS.

How to connect it today

  1. In the AWS Lambda console, create a function whose code checks your secret, parses the body and runs an INSERT through the Redshift Data API’s ExecuteStatement. Amazon Redshift docs
  2. In IAM, give the function’s execution role access to the Data API for your cluster or Serverless workgroup, for example with credentials in Secrets Manager. Amazon Redshift docs
  3. In Lambda, on the function’s Configuration tab, choose Function URL › Create function URL with Auth type NONE, and copy the URL. Amazon Redshift docs
  4. In Cradl AI, add a Webhook export with POST and the function URL, add your secret under HTTP headers or set a Signing secret, then click Test webhook. Cradl AI docs

Good to know

Redshift can’t receive webhooks, so this route is code you write, host and maintain in your own AWS account.

Document automation for the agentic era.

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