INVOICE PROCESSING

Duplicate and Fraud Screen Before Three-Way Match Release

Before any payment, screens each invoice for duplicates and suspicious patterns using OpenAI and a Postgres history check.

CategoryInvoice Processing
EngineSim + Paperclip
Difficultyadvanced
Triggerevent
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNew invoice added to S3 AP storeAWS S3
  • ActionExtract fields and assess tampering signals with OpenAIOpenAI
  • ActionCheck Postgres history for duplicates and bank changesPostgreSQLPostgres
  • LogicBlock duplicates/high-risk; pass clean to match
  • ActionRun three-way match and release payment via StripeStripeStripe
  • OutputOpen Linear review ticket for flagged invoicesLinearLinear

What it does

This adds a fraud and duplicate gate in front of the three-way match. Before reconciling against the PO and receipt, it checks whether this invoice number, amount, or vendor-bank detail has been seen before or looks manipulated, and stops payment cold if anything is off.

When to use it

Use this when duplicate payments and invoice fraud are real risks: many vendors, manual re-submissions, or changed banking details. It belongs upstream of your normal match so a fraudulent invoice never reaches the release step.

How it works

  1. 1A new invoice is added to S3 or your AP store, triggering the run.
  2. 2OpenAI extracts fields and assesses tampering signals such as altered totals or mismatched fonts.
  3. 3Postgres is checked for prior invoices with the same number, amount, or vendor account.
  4. 4A logic step blocks duplicates and high-risk invoices, passing only clean ones forward.
  5. 5Cleared invoices run the three-way match against PO and receipt and, on pass, pay via Stripe.
  6. 6Flagged invoices open a Linear ticket with the risk reasons for fraud-team review.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect AWS S3Buckets, objects, signed URLs.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Connect StripeCustomers, subscriptions, payments.
  5. 5
    Connect LinearIssues, projects, cycles, triage.
  6. 6
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  7. 7
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  8. 8
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.