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.

CategoryInvoice Processing
Enginepaperclip
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWebhook: confirmed price increaseHTTP webhook
  • ActionPull contract terms and invoice historyPostgreSQLPostgres
  • LogicJudge whether hike breaches agreed terms
  • ActionDraft dispute email citing the clauseGmailGmail
  • 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

  1. 1A webhook fires from the detector with the vendor and the new amount.
  2. 2The agent reads the vendor's contract terms and prior invoices from Postgres.
  3. 3It judges whether the increase breaches agreed terms and on what grounds.
  4. 4A logic gate stops here if the increase is contractually allowed.
  5. 5The agent drafts a Gmail dispute email quoting the relevant clause and prior rate.
  6. 6The draft is posted to Slack for a human to approve and send.

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.