Technology

A serverless audit pipeline, planned on AWS.

Our architecture uses Amazon Textract for document extraction, Amazon Bedrock for contract interpretation and dispute drafting, AWS Lambda and Amazon API Gateway for processing and integrations, Amazon S3 for document storage and Amazon DynamoDB for audit records.

StatusAll AWS services on this page are proposed. None is deployed or tested in production yet. Frayvault is not an AWS partner, and this page makes no claim of AWS approval, credits or service access.

Architecture

Documents flow left to right. Dashed boxes are steps where a person decides.

1 · Intake

Upload & email intakeInvoices, contracts, BOLs, PODs
Amazon API GatewayTMS / ERP integration API

2 · Store & orchestrate

Amazon S3Original documents, encrypted
AWS LambdaPipeline steps, event-driven

3 · Understand & check

Amazon TextractTables, line items, key fields
Amazon BedrockContract terms → proposed rules; dispute drafts
Rate rule engineDeterministic recalculation on Lambda

4 · Record & act

Amazon DynamoDBRules, audit results, action log
ReviewerConfirms rules, approves, disputes
Carrier disputeSent by the reviewer

Data flow

  1. IntakeDocuments arrive by upload, forwarded email or the integration API (API Gateway) and are written to S3.
  2. ExtractionAn S3 event triggers a Lambda function that calls Textract. Fields and line items are stored in DynamoDB with confidence scores and page coordinates.
  3. Contract rulesWhen a new agreement is uploaded, Bedrock proposes structured rate rules from the text. A person confirms or edits each rule before it is active.
  4. AuditA Lambda rule engine matches the invoice to its shipment and active agreement and recalculates each charge. Differences become flags with evidence references.
  5. Review & disputeReviewers act on flags. For accepted flags, Bedrock drafts a dispute from the structured finding; the reviewer edits and sends it.

Service by service

ServicePlanned roleStatus
Amazon TextractExtracts tables, line items and key fields from PDF and scanned invoices and shipping documents.Proposed · not yet deployed
Amazon BedrockInterprets contract language into structured rate rules for human confirmation, and drafts dispute emails from confirmed findings.Proposed · not yet deployed
AWS LambdaRuns the audit pipeline steps: intake, extraction, matching, rule checks and notifications.Proposed · not yet deployed
Amazon S3Stores original invoices, contracts, BOLs and PODs, encrypted at rest.Proposed · not yet deployed
Amazon DynamoDBHolds rate rules, extracted invoice records, audit results and the action history.Proposed · not yet deployed
Amazon API GatewayExposes the integration API for TMS and ERP systems and for invoice intake.Proposed · not yet deployed
AWS KMS, AWS IAM, Amazon CloudWatchEncryption keys, least-privilege access and monitoring for the services above.Under evaluation

Design choices

  • Serverless and event-driven, so cost follows invoice volume rather than idle servers.
  • Deterministic rule engine for every dollar amount; generative AI only where text must be read or written.
  • Per-customer data separation and encryption at rest and in transit.
  • Every pipeline step writes to an append-only action log.

What exists today

This website and the interactive demo. The demo runs entirely in your browser on fictional sample data and does not call any AWS service or AI model. The contact form is the only part of the site that sends data to a server.

Help shape freight audit that finance teams trust.

We are looking for a small group of shippers, forwarders and 3PLs to pilot Frayvault on their own invoices and contracts.