INVOICE PROCESSING

Alert on Budget Category Overrun from Invoice Line Mapping

After each invoice is categorized, sums month-to-date spend per GL budget category against its budget in BigQuery and pages the controller via PagerDuty when a category crosses…

CategoryInvoice Processing
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerInvoice lines categorized event
  • ActionQuery BigQuery for MTD actuals and budgetGoogle BigQueryBigQuery
  • LogicCompute utilization per GL category
  • LogicBranch: category over overrun threshold
  • OutputOpen PagerDuty incident for breached categoryPagerDutyPagerDuty

What it does

Every time invoice lines are mapped to GL categories, this workflow recomputes month-to-date spend for the affected categories and compares each against its budgeted amount. If a category breaches a configurable threshold, it raises a PagerDuty incident so the controller catches the overrun before approving more spend.

When to use it

Use this when certain budget lines are prone to blowing past plan and you need real-time guardrails tied to invoice categorization rather than a monthly variance report after the damage is done.

How it works

  1. 1An invoice-categorized event triggers the flow with the affected GL codes.
  2. 2The flow queries BigQuery for month-to-date actuals and the budget for each touched category.
  3. 3A logic step computes the utilization percentage per category.
  4. 4A branch checks each against its overrun threshold.
  5. 5Categories under threshold end the run.
  6. 6Any category over threshold opens a PagerDuty incident with the category, actuals, budget, and the triggering invoice.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect PagerDutyIncidents, on-call, escalations.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    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.