INVOICE PROCESSING
Auto-Draft a Dispute Email When a Vendor Quietly Raises Your Rate
When a confirmed price increase is detected, an agent pulls the vendor's contract terms and prior invoices, decides whether the hike breaches the agreed rate.
How it runs
The automated pipeline, trigger to output.
- TriggerWebhook: confirmed price increaseHTTP webhook
- ActionPull contract terms and invoice historyPostgres
- LogicJudge whether hike breaches agreed terms
- ActionDraft dispute email citing the clauseGmail
- OutputSend draft to human for approvalSlack
What it does
Catching a price hike is only half the job; the next step is pushing back. This agent-driven workflow takes a detected increase, retrieves the vendor's contract and recent invoice history, and reasons about whether the new rate violates a locked price, exceeds a contractual cap, or arrived without required notice. It then drafts a firm but professional dispute email referencing the specific clause and the original price, and routes it to a human for approval.
When to use it
Use this when you want more than an alert. It is for teams that actually want to contest unjustified increases and need the case assembled and the email written for them.
How it works
- 1A webhook fires from the detector with the vendor and the new amount.
- 2The agent reads the vendor's contract terms and prior invoices from Postgres.
- 3It judges whether the increase breaches agreed terms and on what grounds.
- 4A logic gate stops here if the increase is contractually allowed.
- 5The agent drafts a Gmail dispute email quoting the relevant clause and prior rate.
- 6The draft is posted to Slack for a human to approve and send.
Set it up
What you configure once, before turning it on.
- 1Connect HTTP webhookTrigger any URL on agent actions.
- 2Connect PostgresAny Postgres URL — query, write, migrate.
- 3Connect GmailRead, draft, send, label.
- 4Connect SlackChannels, DMs, threads, mentions.
- 5Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 6Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 7Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Invoice Processing workflows
Dollar-Threshold Match Variance Escalation Chain
Routes three-way match variances up an approval ladder by dollar size — small ones to the line manager, large ones to the controller.
Front vendor invoice to Airtable approval packet with line-item parse
Watches a Front inbox for vendor invoice emails, extracts header and line-item data from the body and PDF attachment, and writes a structured.
Gate invoice approvals on a duplicate cross-check
When an approver clicks Approve in your AP system, a webhook re-validates the invoice against paid history in Postgres and Stripe charges.
Three-Way Match Exception Router by Variance Type
When a new invoice fails three-way match against its PO and receiving record, this workflow classifies the mismatch (price, quantity, or missing receipt) and routes each variance…
Route parsed Front invoices to the right Slack approver by amount
Parses an incoming Front vendor invoice and posts an interactive Slack approval card to the approver whose spending threshold matches the invoice total.
Three-way match Front invoices against purchase orders in Postgres
Parses a Front vendor invoice and runs a three-way match against the matching purchase order and receipt records in Postgres, posting pass or exception results to Slack.
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
