The scenario
Example Sportsbook (fictional) is a licensed mobile betting operator in several regulated jurisdictions, with about three million registered players, 600,000 active in a month and around 40 million bets a month. Traffic is sharp: weekends and major events bring five to ten times a normal day. The operator must verify every player, enforce limits and self-exclusion, spot harm early, catch fraud and match-fixing, and answer thousands of questions, all under licence conditions that regulators inspect.
The goal is a platform that does this faster and more consistently while keeping every protective duty reliable. Bet acceptance, limits, odds and settlement are deterministic code that does not depend on any model. Models read identity documents, flag signs of harm, fraud and suspicious betting, answer questions from the terms and draft messages from approved templates. People decide anything that restricts a player beyond the rules, every suspicious activity report and every exception. One design rule runs through every page: AI is used to protect players and the market, and never to increase spending by anyone who may be at risk.
Everything here is fictional and illustrative: the operator, players, bets, amounts, thresholds and targets are invented, and licence conditions differ by jurisdiction. Vendor product names are real; code and configuration are sketches that show the shape of an integration. Check endpoints, parameter names and feature availability against each vendor's current documentation before you build.
Architecture
Eligibility, limits, odds, settlement and payments are deterministic services with tests, owned by the product, risk and compliance teams. Models sit beside them: they flag, summarise and draft. If every AI service were switched off, players could still bet within their limits and every hard protection would still apply.
One player showing signs of harm, with what happens behind it
A player's behaviour changes on a Friday night. The right-hand column is what the platform does.
| Step | What happens | Behind the scenes |
|---|---|---|
| Signals | On a Friday night a player makes three deposits within an hour after losing bets, then raises stakes to three times their usual level after midnight. | Streaming features are computed from account activity. No language model is involved. |
| Score | The harm-marker model scores the session as medium risk and lists the factors: deposit frequency after losses, stake escalation and a long late-night session. | A trained model on a serving endpoint returns a score and reasons. The score is a flag, never a finding. |
| Rules | Rules confirm the thresholds in the operator's safer gambling policy are met. | Thresholds are code with owners and versions. They decide which intervention applies. |
| Intervene | The player sees a reality check and an offer to set or lower a limit, using wording a specialist has approved. | A model may fill an approved template. The consent and service-message rules are checked first. |
| Escalate | The player deposits again, so the marker becomes high. A task opens for a safer gambling specialist with an activity summary. | The summary comes from tools reading account data. The specialist decides what to do next. |
| Protect | Marketing and bonuses are suppressed for this player at once, by rule, and the specialist offers a cooling-off period. | Protective actions that reduce risk are automatic. Restricting play beyond the rules needs a person. |
| Record | Every score, message, action and decision is stored for the regulator, and the case becomes a masked example for the evaluation set. | Full trace under one identifier. Specialist corrections become new test cases. |
The parts, and where each is covered
KYC and eligibility
Document reading with deterministic rules for age, location and sanctions, and analysts for exceptions.
Safer gambling
Harm markers, approved interventions and specialist follow-up, with automatic protective actions.
Fraud and integrity
Scores for takeover, multi-accounting, bonus abuse and suspicious betting, reviewed by analysts.
Support copilot
Answers from the terms and house rules with citations; cannot change a balance or promise a credit.
Platform
The AI gateway, tool gateway, lakehouse, security scanning and telemetry shared by every agent.
Assurance
Threat model, evaluation plan, governance and runbooks that make it safe to run in a regulated setting.
Design and delivery documents
The documents an architecture review, a compliance review, a security review and an operations team would ask for, each written for this platform.
- Business user stories: Personas, epics, acceptance criteria and a release plan.
- Architecture decisions: The eleven decisions behind the shape of the platform.
- Sequence diagrams: Onboarding, a bet with checks, a harm marker, account takeover, an integrity alert and a support dispute.
- Diagram gallery: The pertinent diagrams in one place.
- Data model and classification: Entities, classification and retention, with gambling behaviour as restricted data.
- Tool and API (Application Programming Interface) contracts: The tool catalogue, OpenAPI and MCP (Model Context Protocol) definitions.
- Integration map: Account platform, wallet, bet engine, results, KYC, geolocation and registries.
- Non-functional requirements: Performance, availability, event-day peaks and recovery.
- Threat model: Takeover, forged IDs, location spoofing, collusion and misuse.
- Evaluation plan: Datasets, metrics, safer gambling and fairness checks, release thresholds.
- Responsible AI and governance: Duty of care, licence conditions, AML and oversight.
- Cost and FinOps model: Cost per KYC document, support case and scored event.
- Rollout and operating model: Phases, regulator engagement, gates and responsibilities.
- Agile delivery plan: Two-week sprints, roadmap and capacity.
- Runbooks and incident playbooks: Failed protections, takeover waves and data exposure.
- References and further reading: Standards, regulators, documentation and papers.
Requirements and targets
These are the requirements the design was built against. The targets are planning figures for this demo, not measured results.
| Area | Requirement | Illustrative target |
|---|---|---|
| Eligibility | No bet accepted from an under-age, excluded or restricted-location player | Zero accepted bets outside eligibility |
| KYC | Identity documents verified quickly and correctly | At least 85% verified without a person; median under 3 minutes |
| Safer gambling | Signs of harm detected and acted on early | Recall of at least 70% of specialist-labelled harm cases; first intervention within minutes |
| Protection first | No marketing or bonuses to at-risk or excluded players | Zero sends to excluded or at-risk players |
| Fraud | Takeover, multi-accounting and bonus abuse caught early | Fraud losses down by a third; wrongful restrictions under 0.5% |
| Integrity | Suspicious betting flagged to analysts for review and reporting | Alerts reviewed inside the agreed service level |
| Support | Answers cite the terms; no promises beyond policy | Every rule answer carries a citation, or says none was found |
| Security | Documents, messages and tool traffic scanned | Scan on 100% of model and tool traffic |
| Privacy | Gambling behaviour, identity and location data minimised and masked | No raw behaviour data in analytics tables |
| Audit | Every score, action and decision traceable for the regulator | Complete trace for 100% of protective and restrictive actions |
Suggested reading order
Business user stories
Start with who the platform serves and what each of them needs.
ADRs (Architecture Decision Records)
Read the decisions that set the shape of the platform.
Sequence diagrams
Follow the key flows step by step across the components.
Diagram gallery
See the most pertinent diagrams from every page in one place.
Design documents
Data model, tool contracts, integration map and non-functional requirements.
AI gateway
See how developers reach models through one governed front door.
Databricks
See where data, features, knowledge, serving and evaluation live.
Prisma AIRS
See how every document, message and tool call is scanned.
Foundry
See the platform on Microsoft's agent platform.
LangSmith
See the platform on LangGraph with tracing and evaluation.
Telemetry
See how every unit of work is traced and measured, with queries operators use.
Assurance
Threat model, evaluation plan and governance: how it is shown to be safe and fair.
Delivery
Cost model, rollout, agile plan and runbooks for running it.
Build this for your business
This example is a player protection and operations platform for a licensed betting operator, but the same pattern, deterministic rules for every hard duty, a governed gateway, runtime security, protect-first automation and measured quality, fits any regulated, customer-facing service. We can scope a pilot on your own systems.
Book a discovery call