An end-to-end pipeline that turns ArakIce’s performance data into publish-ready vertical video — five to ten minutes of manual work a day for one to two videos. Every stage reads and writes plain files, so a failure is diagnosed by opening a single output.
- stages, file in → file out
- 7
- of manual work a day
- 5–10 min
- videos a day
- 1–2
- numbers the LLM can invent
- 0
- A validator rejects any figure outside the locked fact block.
From data to video, stage by stage
Data
Python scripts over 18 seasons of history plus a CSV builder querying the app’s API: 615 skaters, 63 goalies, 32 teams, 992 matchups. Refreshed every 3 days by a scheduled task.Statistical rigour
Minimum sample-size and effect-size thresholds, significance testing corrected for multiple comparisons (Benjamini-Hochberg, q = 0.10), collinear-factor pruning and team-identity normalisation.Rule-based selection
No model does the choosing: deterministic rules produce scored candidates, each with a decomposed score and a readable “why”. The same file always yields the same candidates.Constrained writing
The LLM writes only once the facts are locked — it never sees the raw data. A validator mechanically replays every rule: no figures outside the fact block, no unsupported superlatives or causal claims, no betting vocabulary, per-shot word and duration budgets.Rendering
HTML/CSS templates captured with Playwright, charts generated as in-house SVG, animations driven by a progress value rather than elapsed time — two runs produce identical frames.Assembly
ffmpeg encodes one segment per shot, then concatenates them without re-encoding.Publishing and logging
A daily page gathers the videos and copy-ready captions; the logging step prevents repeating a subject or a format too soon.
What the chain actually produces
This is not a mockup: these are the output files of one pipeline run, shown as they are. Two games go in, four posts come out, each with its shots rendered at 1080 × 1920, a TikTok caption, an Instagram caption and hashtags.
The LLM never sees the raw data. It gets a locked block of facts, and a validator then replays every rule. The “numbers allowed” under each post are exactly what the copywriting was allowed to use.
- games in
- 2
- posts out
- 4
- rendered shots
- 19
- manual work
- 0
The night — short format
Both games of the night, in 4 shots
- Shots
- 4
- Length
- 12.4s
- Target
- 12–32s
hook · 2s
scoreboard · 4.4s
stars · 3.5s
call to action · 2.5s
- TikTok caption
- Every final score from a 2-game night in the NHL, November 4. Full team and player numbers at arakice.com
- Instagram caption
- Every final score from a 2-game night in the NHL, November 4. Box scores, team totals and season numbers at arakice.com
- Hashtags
- #nhl #hockey #nhlrecap #nhlscores #nhlstats #hockeystats
- Numbers allowed for this post
- games · finals · goals · overtime
The night — long format
The same story told score by score
- Shots
- 5
- Length
- 17s
- Target
- 20–75s
hook · 2s
score · 3.5s
score · 3.5s
stars · 5.5s
call to action · 2.5s
- TikTok caption
- Every final score from a 2-game night in the NHL, November 4. Full team and player numbers at arakice.com
- Instagram caption
- Every final score from a 2-game night in the NHL, November 4. Box scores, team totals and season numbers at arakice.com
- Hashtags
- #nhl #hockey #nhlrecap #nhlscores #nhlstats #hockeystats
- Numbers allowed for this post
- games · finals · goals · overtime
MTL – BOS — short format
One game, just the essentials
- Shots
- 4
- Length
- 15s
- Target
- 10–20s
hook · 2s
score · 5s
stars · 5.5s
call to action · 2.5s
- TikTok caption
- FINAL/OT — Canadiens 5, Bruins 4. Full box score at arakice.com
- Instagram caption
- FINAL/OT — Canadiens 5, Bruins 4. Goals, team totals and goalie lines at arakice.com
- Hashtags
- #nhl #hockey #gohabsgo #bruins #nhlrecap #nhlstats
- Numbers allowed for this post
- away · home · away_score · home_score · ending · away_sog · home_sog · goals · first_star
MTL – BOS — long format
The same game, with team stats and a summary
- Shots
- 6
- Length
- 34.8s
- Target
- 22–60s
hook · 2s
score · 5s
summary · 12.8s
team stats · 7s
stars · 5.5s
call to action · 2.5s
- TikTok caption
- FINAL/OT — Canadiens 5, Bruins 4. Full box score at arakice.com
- Instagram caption
- FINAL/OT — Canadiens 5, Bruins 4. Goals, team totals and goalie lines at arakice.com
- Hashtags
- #nhl #hockey #gohabsgo #bruins #nhlrecap #nhlstats
- Numbers allowed for this post
- away · home · away_score · home_score · ending · away_sog · home_sog · goals · first_star
