FINANCE
New Enterprise Deal COGS Preview on Stripe Subscription
When a new high-value Stripe subscription is created, it estimates the account's likely cost to serve from Datadog usage of comparable customers and posts a projected-margin…
How it runs
The automated pipeline, trigger to output.
- TriggerStripe new high-value subscription webhookStripe
- LogicClassify account by plan and usage tier
- ActionQuery Datadog cost of comparable customersDatadog
- LogicProject gross margin at signed price
- OutputPost margin preview with flag to Slack deal deskSlack
What it does
It gives finance an instant read on whether a freshly signed deal will be profitable. The moment a large Stripe subscription is created, it estimates the new account's likely COGS by benchmarking against the observed Datadog usage cost of similar existing customers, then projects gross margin at the signed price and posts the verdict to Slack.
When to use it
Use it when sales closes flat-rate or custom enterprise deals and finance only discovers the margin months later. This shifts the check to the moment of signature, before usage ramps.
How it works
- 1A Stripe webhook fires on a new subscription above a value threshold.
- 2A logic step classifies the new account by plan and expected usage tier.
- 3It queries Datadog for the average per-customer infrastructure cost of comparable existing accounts.
- 4It projects gross margin from the signed Stripe price minus the estimated COGS.
- 5It posts a Slack preview — projected margin, comparable benchmark, and a green/amber/red flag — to the deal-desk channel.
Set it up
What you configure once, before turning it on.
- 1Connect StripeCustomers, subscriptions, payments.
- 2Connect DatadogMetrics, traces, log search.
- 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.
