Product Design & Engineering

Motley Monitoring

Daily news on a family's schools and neighborhoods.

A watchlist for the schools and neighborhoods a family cares about, checked every day for news for about a cent a place. One search per place, shared by every family watching it, sorted by a low-cost model and checked so it can't invent a story or a source.

Product Design · AI Engineering

Motley's dashboard. The Monitoring panel reads 3 of 3 active. Under a sea Watchlist band marked Checked daily, the left column lists Park Slope (2 new; Development & housing, Transit), Saint Ann's (1 new; Events), P.S. 321, and Astoria (Central), switched off. The right column is the What's new reader for Park Slope, sorted Newest, with a Mark all read button
A recreation of the panel, drawn from its code with Motley's own tokens. The places are the five the daily check was tested on; headlines are shown as bars.
What's The Problem?

Families saved schools and neighborhoods, then had to keep checking each one for news themselves.

What's The Scope?
  • 1.The watchlist: where a family turns monitoring on and reads the news
  • 2.The daily check: Inngest, a news search and a model
  • 3.The cost: about a cent a place a day

I designed and built all three.

What's The Challenge?

Check every watched place every day for news a parent would care about, and keep the cost flat as more families sign up.

A monitor runs every day for as long as it's on, so a cost per family would grow with every signup.

01 · Design

The watchlist

A family on Motley Pro turns monitoring on from a pill on any school or neighborhood page, or with the switch beside a place on their dashboard. The Monitoring panel puts the watchlist on the left and one news reader on the right. On a phone it shows one at a time.

The Monitoring panel: 3 of 3 active above a Watchlist band marked Checked daily. On the left, the filter tabs and four places: Park Slope (2 new; Development & housing, Transit), Saint Ann's (1 new; Events), P.S. 321, and Astoria (Central), switched off. On the right, the What's new reader for Park Slope, with Newest, Oldest and Unread first sorts, Mark all read, and four headlines, the first two marked unread
  1. 1SwitchOff stops new checks. Old news stays.
  2. 23 of 3A fourth switch stays off and says why.
  3. 3Checked dailyThe panel never mentions AI.
  4. 4ChipsWhat kind of news turned up, and how much is new.
  5. 5ReaderUnread headlines get a dot. Each links to its source.

02 · Engineering

How the AI works

Three services do the work. Inngest runs the job: it starts it once a day and runs each place on its own, three at a time, so one slow search doesn't hold up the rest. Exa does the news search. MiniMax, a low-cost model, sorts what the search finds. Then code checks the model's work against the search.

Once a day

Inngest
  1. 01Deletes headlines older than 90 days.
  2. 02Lists every place a paying family watches, once each.
  3. 03Sends one event per place.

A family switching a place on sends the same event straight away, so the first news doesn't wait a day.

For each place

Inngest
  1. 1

    Checked today?

    Postgres

    If the place was checked in the last 20 hours, the run stops here.

  2. 2

    Search

    Exa

    One news search over the last 120 days. Eight results, with up to 3,000 characters from each.

    The search for Park Slope

    "Park Slope" Brooklyn NYC neighborhood news development safety schools

  3. 3

    Sort

    MiniMax

    The model reads the eight results, files each story under one of five kinds of news, and writes a headline and a short summary. Anything off-topic, older than about six months, or a listing is dropped.

  4. 4

    Check

    Code

    Drops any kind that isn't on the list, and any link the search didn't return, so the model can't add a story or a source.

  5. 5

    Save

    Postgres

    Saved once for the place, kept for 90 days, and shown to every family watching it.

If the search or the model fails, nothing is saved and the place is tried again on the next run. The family sees “Nothing new yet — we check daily.”

The five kinds of news the model sorts into

Schools

AdmissionsLeadership & policySafetyEventsAchievements

Neighborhoods

SafetyDevelopment & housingSchoolsTransitCommunity

03 · Cost

Making it cheaper

A monitor runs every day it's on, so small costs add up.

  • SearchesThe obvious build: One per familyWhat I built: One per place, shared

    Headlines are saved against the place and shown to every family watching it. Fifty families watching P.S. 321 share one search a day.

  • ChecksThe obvious build: Whenever askedWhat I built: Once a day per place

    The daily run and a family switching a place on can ask for the same check. A place checked in the last 20 hours is skipped before any search is paid for.

  • What the model readsThe obvious build: Full articlesWhat I built: 8 search highlights, about half the cost

    The search returns up to 3,000 characters from each of eight results, and the model sorts from those. Fetching every article in full would roughly double the cost of each search.

  • ModelThe obvious build: Top-tierWhat I built: MiniMax, low-cost

    Sorting eight short pieces is an easy job, so it goes to MiniMax, not a top-tier model. Exa and MiniMax were chosen in the Motley study.

Outcomes

What it saved.

~1¢

per watched place, per day

One search and one sort, however many families watch the place.

1

search a day per place

Fifty families watching P.S. 321 cost the same as one.

~50%

less search cost per check

From sorting the search's highlights instead of fetching every article in full.

93%

less per search with Exa

$0.007 a call against Tavily's $0.100, from Motley's call log.

Source: the cost model in Motley's monitoring guide, and Motley's AI call log for the search prices.