The decision API that learns
Decisions that start with AI and end as code.
DataSnack watches the decisions your AI makes and turns them into code: the same answer every time, in under a millisecond.
Ad approval · act modeNorthside Motors · December lease offer
ExampleLease the 2027 Ridgeline: $299 a month for 36 monthsMeta · US-TX · rule
approveoffer-matches v1 · 0.02 msLease the 2027 Ridgeline: $249 a month for 36 monthsDisplay · US-CA · rule
rejectprice-mismatch v2 · the approved price is $299The Ridgeline December event, 30-second spotTV · US-WA · AI model · no price given, so no rule applies
askEvery decision records what answered: the cache, a rule, the AI model or your default
- ReproducibleThe same input always gets the same answer.
- DeterministicRules are code you can read, not a model's guess.
- FastUnder a millisecond, instead of seconds.
- CheapEvery answer a rule gives is a model call you don't pay for.
How it works
Start with AI. End with code.
It watches
Keep deciding as you do, with your AI or your team, and send DataSnack each decision. Nothing in your workflow changes.
It learns the rules
DataSnack writes rules from your decisions and tests each one against your history before it is used.
Rules answer
Switch it on: proven rules answer instantly. Anything they don't cover goes back to your system.
One call, before and after200
POST /v1/gates/ad-approval/decide
{"input": {"price_monthly_usd": 249,
"term_months": 36, "market": "US-CA",
"channel": "meta", "flight_end_day": 20261220,
"legal_line_present": true}}
{ "output": {"decision": "reject"},
"reason": "The approved price is $299 a month.",
"decided_by": {"tier": "rule",
"rule": "price-mismatch"},
"ms": 0 }Where it fits
Any decision your team makes again and again, from typed fields.
Create your first gate in minutes.
Name a decision, send it your system's answers, and watch it learn. Free while in early access.