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…

CategoryFinance
Enginesim
Difficultyintermediate
Triggerschedule
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerQuarterly schedule after quarter close
  • ActionQuery BigQuery cohort margin trendGoogle BigQueryBigQuery
  • LogicKeep threshold breaches, dedupe open issues
  • ActionCreate assigned Linear issue per eroding cohortLinearLinear
  • 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

  1. 1A scheduled trigger runs after quarter close.
  2. 2A BigQuery query returns per-cohort gross margin for the trailing quarters.
  3. 3A logic step keeps only cohorts breaching the erosion threshold and dedupes against cohorts that already have an open issue.
  4. 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.
  5. 5An output step posts a one-line summary of issues created.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect BigQueryDatasets, queries, schemas.
  2. 2
    Connect LinearIssues, projects, cycles, triage.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    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.