INVOICE PROCESSING

Triage unmatched invoices with an agent that chases the vendor

When an invoice fails PO matching, an agent investigates the cause, drafts and sends a clarifying email to the vendor, opens a tracked exception in Postgres.

CategoryInvoice Processing
Enginepaperclip
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerMatch failure webhook receivedHTTP webhook
  • ActionGather PO, vendor, and history contextPostgreSQLPostgres
  • LogicAgent reasons about root cause and next step
  • ActionSend tailored clarification to vendorGmailGmail
  • ActionOpen tracked exception recordPostgreSQLPostgres
  • OutputSummarize case to AP channelSlack

What it does

Handles the messy long tail of invoices that don't cleanly match a PO. A webhook hands the failed invoice to an agent that reasons about why it failed — missing PO, wrong quantity, unrecognized vendor — gathers the relevant records, then composes a specific follow-up to the vendor and opens a tracked exception so nothing gets dropped.

When to use it

Use this when your match-and-approve flow rejects invoices and a human currently spends time diagnosing each one and writing back to vendors. The agent does the investigation and the first draft of outreach.

How it works

  1. 1The matching system fires a webhook with the failed invoice and reason code.
  2. 2The agent pulls related PO, vendor, and prior-invoice context from Postgres.
  3. 3It reasons through the likely root cause and decides what the vendor must clarify.
  4. 4It sends a tailored follow-up email requesting the missing or corrected information.
  5. 5It records a tracked exception with status and next action in Postgres.
  6. 6It posts a concise case summary to the AP channel so the team has visibility.

Set it up

What you configure once, before turning it on.

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