Wall of glowing TVsRendered hook shotRendered score shotRendered team-stats shot
Automation · LLM

ArakIce Content Engine

A seven-stage chain: data refresh, deterministic angle selection, constrained LLM copywriting, HTML→PNG rendering, ffmpeg assembly and anti-repetition logging.

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.
The chain

From data to video, stage by stage

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Assembly

    ffmpeg encodes one segment per shot, then concatenates them without re-encoding.
  7. 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.
November 4, 2026 run

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

  1. The night — short format — hookhook · 2s
  2. The night — short format — scoreboardscoreboard · 4.4s
  3. The night — short format — starsstars · 3.5s
  4. The night — short format — call to actioncall 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

  1. The night — long format — hookhook · 2s
  2. The night — long format — scorescore · 3.5s
  3. The night — long format — scorescore · 3.5s
  4. The night — long format — starsstars · 5.5s
  5. The night — long format — call to actioncall 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

  1. MTL – BOS — short format — hookhook · 2s
  2. MTL – BOS — short format — scorescore · 5s
  3. MTL – BOS — short format — starsstars · 5.5s
  4. MTL – BOS — short format — call to actioncall 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

  1. MTL – BOS — long format — hookhook · 2s
  2. MTL – BOS — long format — scorescore · 5s
  3. MTL – BOS — long format — summarysummary · 12.8s
  4. MTL – BOS — long format — team statsteam stats · 7s
  5. MTL – BOS — long format — starsstars · 5.5s
  6. MTL – BOS — long format — call to actioncall 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
Tech stack

What it runs on

  • Python
  • TypeScript
  • Playwright
  • ffmpeg
  • SVG
  • LLM (constrained)
  • Scheduled tasks