FINANCE
Auto-open Linear issues for eroding cohorts
When a BigQuery check finds a cohort whose gross margin breaches the erosion threshold, it opens a Linear issue with the cohort's margin trend and assigns it to the finance…
How it runs
The automated pipeline, trigger to output.
- TriggerQuarterly schedule after quarter close
- ActionQuery BigQuery cohort margin trendBigQuery
- LogicKeep threshold breaches, dedupe open issues
- ActionCreate assigned Linear issue per eroding cohortLinear
- OutputPost summary of created issues to SlackSlack
What it does
Detects cohorts in BigQuery whose gross margin has eroded past a defined threshold and turns each one into an actionable Linear issue. The issue carries the cohort id, its margin trajectory, and a suggested investigation checklist, so erosion becomes tracked work rather than a number in a dashboard.
When to use it
Use it when margin alerts keep getting noticed but not acted on. Routing each eroding cohort into Linear gives every decay a ticket, an owner, and a status, closing the loop between detection and remediation.
How it works
- 1A scheduled trigger runs after quarter close.
- 2A BigQuery query returns per-cohort gross margin for the trailing quarters.
- 3A logic step keeps only cohorts breaching the erosion threshold and dedupes against cohorts that already have an open issue.
- 4For each new offender, a Linear issue is created with the trend, threshold breached, and a checklist, labeled and assigned to the finance triage team.
- 5An output step posts a one-line summary of issues created.
Set it up
What you configure once, before turning it on.
- 1Connect BigQueryDatasets, queries, schemas.
- 2Connect LinearIssues, projects, cycles, triage.
- 3Connect SlackChannels, DMs, threads, mentions.
- 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.
