INVOICE PROCESSING

Review emailed vendor invoices with an agent and open AP tasks for anomalies

Watches a shared AP inbox for invoice PDFs, has an agent extract vendor and amount, checks the amount against the vendor's prior invoices in Postgres.

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

How it runs

The automated pipeline, trigger to output.

  • TriggerInvoice PDF email arrives in AP inboxGmailGmail
  • ActionAgent extracts vendor, total, line itemsOpenAI
  • ActionQuery vendor invoice history in PostgresPostgreSQLPostgres
  • LogicCompare amount and line-item mix to history
  • OutputCreate Asana review task for anomaliesAsanaAsana

What it does

Turns a messy AP inbox into a triaged work queue. An agent reads each emailed invoice PDF, pulls the vendor and total, compares it to what that vendor has billed before, and only spins up a human review task when the amount or line items deviate from the established pattern.

When to use it

Use this when invoices arrive as email attachments rather than through a portal, and you want intelligent triage instead of a human opening every PDF. Good for teams whose vendors send inconsistent formats that rule-only parsers choke on.

How it works

  1. 1A new email with a PDF attachment arrives in the Gmail AP inbox.
  2. 2An agent (paperclip) extracts vendor, invoice number, total, and line items from the document.
  3. 3The flow queries Postgres for that vendor's recent invoice history.
  4. 4A logic step compares the new total and line-item mix against the history.
  5. 5Normal invoices are recorded silently; anomalous ones become an Asana task with the agent's reasoning attached for an AP reviewer.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GmailRead, draft, send, label.
  2. 2
    Connect OpenAIModels, embeddings, files.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Connect AsanaTasks, projects, milestones — everywhere.
  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.