INVOICE PROCESSING

Duplicate Invoice Scanner Across Vendors (Snowflake)

Scans every new invoice against your full payment history in Snowflake to catch near-identical bills submitted under different vendor names.

CategoryInvoice Processing
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNew invoice staged (webhook)HTTP webhook
  • ActionQuery payment history within tolerance windowSnowflakeSnowflake
  • LogicScore amount, vendor, and invoice-number similarity
  • LogicBranch if match score clears duplicate threshold
  • OutputPost side-by-side duplicate alert to AP channelSlack

What it does

Before an invoice reaches approval, this workflow compares it against the full AP history sitting in Snowflake and flags near-duplicates that slip past exact-match checks: same amount and date posted by a renamed vendor, the same invoice number with a transposed digit, or a re-submitted bill from a parent company. Suspected duplicates land in a Slack channel with both records side by side so an AP clerk can confirm or clear before money moves.

When to use it

Use it when vendors get acquired, renamed, or maintain multiple billing entities, and exact-match dedupe in your ERP misses the overlaps. Ideal for high-volume AP teams paying thousands of invoices a month where a single double-payment can run into five figures.

How it works

  1. 1A new invoice row is inserted into the staging table, firing the webhook.
  2. 2The workflow queries Snowflake for invoices within a tolerance window of amount, date, and normalized vendor name.
  3. 3A fuzzy-match step scores each candidate on amount delta, vendor-name similarity, and invoice-number distance.
  4. 4If the top score clears the duplicate threshold, it branches to the alert path; otherwise it logs a clean result.
  5. 5A formatted Slack message posts both invoices with the match score and a hold recommendation.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect SnowflakeWarehouses, queries, shares.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.