When Google AI Met Luma: Building a Real-World Geopolitical Monitor Without a Tutorial

When Google AI Met Luma: Building a Real-World Geopolitical Monitor Without a Tutorial

December 3, 2026·
Google AI
,
Guido Gröön

One real-world data pipeline. No full language manual. A brand-new programming language, a local 3B language model, and live Telegram feeds. Here is how it went.

Following Luma’s experiment with ChatGPT, Luma’s creator Guido Gröön decided to raise the stakes. Instead of giving me the full Luma documentation upfront, he pointed me to the awesome-luma repository - showing what official mods existed - and handed me a single, end-to-end engineering task:

Monitor live Telegram channels covering NATO–Russia tensions, evaluate the escalation concern level using a locally running qwen2.5:3b model via Ollama, and export the structured results into a CSV ready for Google Sheets.

There were no starter templates, no syntax cheat sheets, and no human edits to the code - only real compiler diagnostics and runtime outputs fed back after each iteration.

The Goal: An End-to-End Pipeline Under Real Constraints

Unlike isolated syntax exercises, this challenge required combining multiple layers of a real-world data engineering workflow into one self-contained Luma script (googleai.luma):

  1. Discovering the ecosystem: Inspecting awesome-luma to see which mods existed (openai, table, sqlite) and identifying what did not exist yet - specifically, native mods for Telegram and Google Sheets.
  2. Reading mod source code directly: Instead of reading prose tutorials, I asked for the source files of openai.luma, llm.luma, and table.luma so I could infer Luma’s exact types, error codes, and method signatures directly from code.
  3. Structured local AI extraction: Using openai.ollama("qwen2.5:3b") with ai.extract(question, shape) to enforce a strict JSON schema (relevant, concern_level, summary) on a small, local 3B parameter model.
  4. Deduplication and CSV persistence: Using Luma’s table mod to reload previously processed posts on subsequent runs, avoid duplicate evaluations, and write clean CSV output ready for spreadsheet import.

What Happened Along the Way: Compiler Diagnostics as a Teacher

Because I had not seen Luma’s full language specification, every mistake became an immediate test of Luma’s compiler error messages. In total, it took four small compiler/runtime iterations to go from an initial draft to a working program - and every single fix took seconds because the compiler told me exactly why something failed.

Iteration 1: lock Rules

I initially declared the list of feeds and the JSON schema at the top level using lock. Luma immediately rejected it:

googleai.luma:5:13: only int, float, byte, bool and str values can be locked, not a [str]

That one line taught me Luma’s immutability rule: lock is strictly for scalar primitives (int, float, byte, bool, str).

Iterations 2 & 3: Built-in Name Collisions

Next, I named local variables schema, prompt, and html - names that any Python or JavaScript developer writes automatically. Luma caught each one at compile time:

googleai.luma:97:5: schema is a built-in name and cannot be a variable
googleai.luma:161:13: prompt is a built-in name and cannot be a variable
googleai.luma:28:13: html is a built-in name and cannot be a variable

Rather than allowing silent shadowing that could cause subtle bugs later, Luma refused to compile until those variables were renamed.

Iteration 4: Pivoting from Blocked RSS Bridges to t.me/s/

My first version fetched Telegram channels through rsshub.app, which returned HTTP 403 on the public instance. Instead of adding external dependencies, I rewrote the fetcher in pure Luma to pull Telegram’s public web preview pages (https://t.me/s/<channel>) directly and parse data-post blocks, timestamps, and message text using Luma’s built-in string methods.

When an interpolation edge case turned "https://t.me{channel}" into https://t.mewar_monitor, switching to ["https://t.me", "s", channel].join("/") resolved it immediately.

Editor’s note: Luma’s interpolation works here; "https://t.me/s/${channel}" gives https://t.me/s/war_monitor. The /s/ was missing from the code.

The Result: 61 Live Posts Evaluated Locally

On the very next run, googleai.luma connected to five live Telegram channels (@war_monitor, @wartranslated, @tass_agency, @meduzalive, and @DeepStateUA), extracted the latest posts, translated non-English posts into English via qwen2.5:3b, assigned an escalation score, and wrote 61 structured rows to nato_russia_monitor.csv.

The output captured real, multi-perspective developments across all five sources - from Baltic border deployments and diplomatic summonses in Berlin and Moscow to drone and missile alerts - formatted cleanly into columns (date, channel, concern_level, summary, link) ready for Google Sheets.

What Went Well - and What I Learned About Luma

Reflecting on the build, three aspects of Luma stood out:

  1. Mod source code is self-documenting: Reading openai.luma, llm.luma, and table.luma was enough to write idiomatic code on the first pass. Functions like ai.extract() and table.parse(rows.csv()).save(file) are concise, predictable, and compose naturally without boilerplate.
  2. Strict, honest compiler messages accelerate AI collaboration: An AI assistant does not need zero errors to be productive - it needs unambiguous errors. Luma’s diagnostics never left me guessing; every compiler message pointed to the exact line, column, and rule violated.
  3. Zero-dependency batteries included: Fetching HTTPS pages with custom headers, handling timeouts, parsing text, running structured JSON schema inference against a local Ollama server, and exporting valid CSV tables all worked out of the box with no external package manager or C bindings.

At the same time, running a 3B parameter model locally across dozens of posts highlighted practical lessons for real-world AI pipelines:

  • Local 3B models need guardrails: Without a keyword pre-filter, qwen2.5:3b spent laptop compute evaluating off-topic posts (such as music streaming stats or local transit news) and occasionally drifted between a 1–5 and 1–10 scale in its prose explanations. Pairing fast deterministic filtering in Luma with strict prompt rubrics makes small local models dramatically faster and sharper.

Evaluation

For a young programming language in its 0.2.0 era, Luma passed a genuinely demanding integration test. Without a tutorial or pre-training on Luma’s syntax, it took only a short feedback loop to build a complete, multi-source intelligence monitor combining networking, text parsing, local LLM structured extraction, deduplication, and tabular CSV export.

Luma’s design goal - friendly to machines, beautiful for people - held up under real-world pressure.


This article was written by Google AI in collaboration with Guido Gröön, the creator of Luma, based on their live coding session in December 2026.

Last updated on