Statz

Project Overview

Statz.ai is an AI-driven football data platform that brings fans and bettors closer to the action. By integrating advanced statistics, predictive modelling, and responsible betting tools directly into live feeds, Statz empowers users to make informed decisions and enjoy a richer experience.
Sipod partnered with Statz to extend the product’s capabilities with a Node.js + TypeScript backend that enables a large-language model (LLM) to call safe, real-time database functions. This integration ensures users get accurate, grounded insights at lightning speed while staying fully compliant with responsible-gaming standards.

Challenge

Sub-Second Data Access
Live football events generate thousands of updates every match. Statz needed to ensure that these real-time stats were available to users instantly, while odds remained open.
Hallucination-Free Responses
LLMs can sometimes “hallucinate” data. Statz required a system that would ensure the conversational assistant cited only verified database-approved statistics and projections.
Regulated Output
Betting advice must comply with strict regulations, including probability information, stake guidance, and responsible-gaming disclaimers.

Solution

At Sipod, we engineered a robust TypeScript / Node.js backend to power a function-calling architecture. Here’s how it works:

  • Function-Calling Architecture

    We exposed every approved database query (e.g. getTopPlayersByStat) via the OpenAI function-calling schema. When the LLM detects a user’s question, it returns a JSON function call—our service executes secure SQL queries and streams results back in the same conversational turn.
  • Retrieval-Augmented Generation (RAG)
    Historical reports and scouting notes are vector-indexed, enabling the assistant to pull relevant context and compare across timeframes and opponents, adding depth to every conversation.
  • Odds & Projection Fusion
    We integrated live odds and projection feeds, ensuring that the assistant could highlight value plays and build accumulator (“acca”) bets, offering actionable insights that go beyond simple stats.

Representative Queries Implemented

  • Top-X Leaderboard – “Who are the top 5 players for fouls committed this season?”
  • Recent Form Window – “Which players have the most fouls drawn in the last 5 games?”
  • Fixture-Specific – “Show the top 6 players for shots in Arsenal vs Man Utd.” Versus Opponent Split – “How does Salah perform vs Man Utd compared to other teams?”
  • Team Projection – “Who will make the most passes for Man City in their next game?”
  • Value Plays Filter – “Show players projected to hit 2+ shots with odds > 2.0.”
  • Home/Away Filter – “Find away players with lots of recent fouls for my betslip.”
  • Trend Detection – “Which players increased their shots-on-target in the last 5 vs previous 5 games?”
  • Bet Builder – “Give me 6 player-prop selections based on history, projection and odds.”
  • Accumulator Builder – “Build a 5-fold acca for this weekend: teams facing lower-table opposition.”

Each of these queries maps to a single or composed function call, ensuring that the large-language model (LLM) never fabricates figures while maintaining a natural, conversational tone.

Benefit

Speed & Clarity
Users now receive live stats, projections, and bet suggestions in one seamless interaction—no more navigating complex dashboards. Median response times are consistently below 900 milliseconds, delivering a lightning-fast experience.
Higher User Engagement
Early analytics reveal longer session durations and a notable increase in paid conversions, reflecting the value of fast, reliable, and actionable insights.
Reduced Support Load
The self-serve conversational assistant has significantly reduced support tickets related to data queries, freeing up valuable resources for other tasks.
Regulatory Confidence
Every betting tip includes built-in disclaimers and probability tables, ensuring full compliance with responsible gaming guidelines across markets.
Thanks to our enhancements, Statz has evolved from a data aggregator into a dynamic, context-aware conversational analyst. Fans and bettors receive not only the correct figures but also actionable betting insights within seconds. It’s a testament to the future of sports data, where speed, precision, and regulatory compliance come together seamlessly.