DATA OPS

Apply confirmed team mappings back to BigQuery on Notion approval

When a FinOps reviewer confirms the owning team on a Notion review card, a webhook fires and the workflow rewrites the attribution rows for that principal in BigQuery and adds…

CategoryData Ops
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNotion status-change webhook (card set to Confirmed)HTTP webhook
  • LogicValidate payload; proceed only on Confirmed transition
  • ActionRewrite attribution rows for the principal in BigQueryGoogle BigQueryBigQuery
  • ActionUpsert principal to owner lookup tableGoogle BigQueryBigQuery
  • OutputComment confirmation back on the Notion cardNotionNotion

What it does

Closes the attribution loop: a confirmed team on a Notion card triggers a rewrite of that principal's attribution rows in BigQuery and records the mapping permanently so the heuristic never has to guess for that principal again.

When to use it

Use it as the action half of a human-in-the-loop attribution flow. Once someone says 'this service account belongs to Growth,' the decision should stick and propagate, not get re-asked next week.

How it works

  1. 1Notion sends a webhook when a review card's status flips to Confirmed.
  2. 2Validate the payload and extract the principal and chosen team.
  3. 3Branch: ignore events that are not a Confirmed transition.
  4. 4Update every attribution row for that principal to the confirmed team at full confidence in BigQuery.
  5. 5Upsert the principal-to-team mapping into the owner lookup table so future runs match deterministically.
  6. 6Reply on the originating Notion card with how many rows were corrected and the dollars now attributed.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect HTTP webhookTrigger any URL on agent actions.
  2. 2
    Connect BigQueryDatasets, queries, schemas.
  3. 3
    Connect NotionPages, databases, comments.
  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.