INVOICE PROCESSING

Email Invoice Intake to Airtable PO Matching

Watches an AP inbox for vendor invoice PDFs, extracts the totals and PO number with OpenAI, matches against open POs in Airtable.

CategoryInvoice Processing
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerInvoice email arrives in AP inboxGmailGmail
  • ActionDownload invoice PDF attachmentGmailGmail
  • ActionExtract PO number and totals with OpenAIOpenAI
  • ActionLook up matching open PO in AirtableAirtableAirtable
  • LogicSet match status from total comparison
  • OutputWrite matched invoice record to AirtableAirtableAirtable

What it does

Turns emailed PDF invoices into structured Airtable records that are already matched to a purchase order. It reads the attachment, pulls vendor, PO number, line totals, and invoice amount, then finds the corresponding open PO and writes a single row showing whether it matches.

When to use it

When vendors email invoices as PDFs and someone is hand-keying them into a tracker and looking up the PO each time. This removes the typing and the lookup in one pass.

How it works

  1. 1A new email with an attachment arrives in the monitored Gmail AP inbox.
  2. 2The flow downloads the invoice PDF.
  3. 3OpenAI extracts vendor name, PO number, invoice number, line items, and grand total into structured fields.
  4. 4The flow queries Airtable for the open PO matching that number.
  5. 5A logic step compares invoice total to PO balance and sets status to Matched, Over-billed, or No-PO-Found.
  6. 6The record is written to the Airtable Invoices table with the status flag and a link to the source email for AP review.

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 AirtableBases, tables, views, automations.
  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.