FINANCE
On-demand margin-erosion attribution deck for the board
Chat-triggered agent that investigates gross-margin erosion across BigQuery cohorts, decomposes the drivers iteratively, and assembles a narrated board-ready section in Notion.
How it runs
The automated pipeline, trigger to output.
- TriggerChat request with quarter and segment scope
- ActionRun iterative BigQuery price/mix/cost queriesBigQuery
- LogicDecide if variance is explained or drill deeper
- ActionCompose margin bridge and narrativeOpenAI
- OutputWrite attribution section to Notion board pageNotion
What it does
When a finance lead asks for a margin write-up, an agent queries BigQuery, decomposes the erosion into price, mix, and cost effects, and keeps drilling until the variance is explained. It then writes a structured, board-ready attribution section, including a clear bridge from last quarter's margin to this quarter's, into a Notion page.
When to use it
Use it ahead of board or QBR prep when you need more than a single query, an actual investigation that follows the numbers wherever the erosion leads and produces defensible narrative, not just a table.
How it works
- 1A chat request kicks off the agent with the quarter and segment in scope.
- 2The agent runs iterative BigQuery queries to isolate price, mix, and cost contributions.
- 3A reasoning step decides whether the variance is fully explained or needs another drill-down.
- 4OpenAI composes the margin bridge and narrative.
- 5The finished attribution section is written to a Notion board-prep page.
Set it up
What you configure once, before turning it on.
- 1Connect BigQueryDatasets, queries, schemas.
- 2Connect OpenAIModels, embeddings, files.
- 3Connect NotionPages, databases, comments.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More Finance workflows
Detect Annual-to-Monthly Downgrade Refunds Owed
Catches subscriptions switched from an annual term to monthly partway through the prepaid year, computes the unused prepaid balance owed back.
Detect Mid-Cycle Plan Change Mischarges and Queue Credit Memos
Listens for Stripe subscription plan changes, recomputes the correct prorated amount.
Expense Submission Webhook Instant Triage and Routing
Receives each expense submission via webhook the instant it's filed, classifies it as in-policy, needs-review, or hard-violation, and routes it to auto-approval.
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.
Real-Time Uncoded Expense Nudge on New Spend Event
When a new expense lands without a GL code, a webhook fires and the workflow immediately Slack-nudges the spending owner to code it on the spot.
Monthly Vendor Spend Anomaly Brief for Finance Leads
Once a month, an agent analyzes the full expense ledger for vendor and category spend anomalies, drafts a narrative brief with the top outliers and likely causes.
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.
