FINANCE
Real-Time BigQuery Spend-Spike Alert to Discord
On each new billing export load, checks the latest hourly spend against a statistical baseline and immediately pings finance Discord when a sudden spike crosses a Z-score…
How it runs
The automated pipeline, trigger to output.
- TriggerWebhook on new billing-export loadHTTP webhook
- ActionCompute latest-hour spend with mean and stddevBigQuery
- LogicContinue only if Z-score exceeds threshold
- ActionDraft urgent incident messageOpenAI
- OutputPost mention alert to finance DiscordDiscord
What it does
This workflow watches for fresh billing data loads and, on each one, evaluates the most recent hour of cloud spend against a statistical baseline using a Z-score. When the latest hour is a clear statistical outlier, it fires an urgent narrated alert to Discord within minutes rather than waiting for a daily report.
When to use it
Use it for runaway-cost protection: a misconfigured autoscaler, a forgotten large query job, or a leaked credential mining compute. Daily digests catch slow drift; this catches the fast, expensive incidents while you can still stop them.
How it works
- 1A webhook trigger fires when a new BigQuery billing-export load completes.
- 2A BigQuery query computes the latest hour's spend plus the mean and standard deviation over the prior 7 days of the same hour.
- 3A logic step calculates the Z-score and continues only if it exceeds the alert threshold.
- 4OpenAI drafts a tight incident message naming the spiking service, the dollar figure, and the deviation magnitude.
- 5The alert posts to the finance Discord channel with an at-here mention so it surfaces immediately.
Set it up
What you configure once, before turning it on.
- 1Connect BigQueryDatasets, queries, schemas.
- 2Connect OpenAIModels, embeddings, files.
- 3Connect DiscordCommunity channels + voice + bots.
- 4Connect HTTP webhookTrigger any URL on agent actions.
- 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 Finance workflows
Month-End Uncoded Spend Chaser via Snowflake to Slack
On a month-end schedule, queries Snowflake for unaccrued or uncoded expenses, groups them by department owner.
Receipt Upload OCR Policy Check with Manager Escalation
When an employee drops a receipt into a Drive folder, it extracts the line items, checks them against expense policy.
Weekly Proration Anomaly Audit to Notion
Each week it aggregates all flagged proration discrepancies from Snowflake, scores them against anomaly thresholds, and publishes a finance-ready audit page in Notion with totals.
Accrual Chase Board in Monday with Per-Owner Tasks
On a schedule it reads open uncoded expenses from Snowflake and creates or updates a Monday item per department owner.
Detect Mid-Cycle Plan Change Mischarges and Queue Credit Memos
Listens for Stripe subscription plan changes, recomputes the correct prorated amount.
Draft and Send Proration Over-Billing Correction Emails
For each confirmed over-billing credit, an agent drafts a clear, customer-specific apology email explaining the proration error and the credit applied.
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.
