Case study

A crash-news agent that checks US news and police sources for serious commercial-vehicle crashes

A US personal injury law firm wanted to know fast when a truck or another commercial vehicle was in a fatal or life-threatening crash. Those crashes are often first reported by a local TV station, a small paper or a state police press release. Our team built an AI agent that reads those reports and emails the firm each crash that meets its rules.

Tell us the job
System
Node.js and SQLite on a dedicated US server
Checks
Set to every two hours
Review
The firm reviews the leads
Where it stands
Live
Illustration of hands highlighting a printed newspaper page on a desk. Illustration.
Illustration

Too many sources
for one person to read.

No one at a firm can read every local outlet and police newsroom across 50 states every day. The agent reads a set list of those sources for the firm. An AI agent is a program that uses an AI model to do one set job. In this one, an AI model reads each story, and fixed rules decide which crashes qualify.

The seven answers,
as in every case study.

The systemNo ERP. A Node.js app with a SQLite database, on a dedicated server in the US. Node.js runs the program; SQLite is the small database that keeps the records.
The jobFind fatal or life-threatening crashes that involve a commercial vehicle and are 14 days old or newer, then email them to the firm.
What goes inA licensed news API on the firm's own paid plan (a service that hands news data to other programs), the GDELT public news index, local news feeds, the California Highway Patrol incident feed and state police newsrooms that post crash releases.
What comes outOne email per crash that qualifies, and a private console that lists every lead.
How it connectsEmails go out through Resend, an email service. The console sits behind Cloudflare Access, which checks each person's email with a one-time code before the page loads.
Who approvesThe firm reviews the leads and decides which ones to follow up.
Where it standsLive on a dedicated US server, set to check its sources every two hours.

The model reads.
The rules decide.

The model reads

For each story, an AI model pulls out the facts: the vehicle, how bad the crash was, the date, the place, and any victim's name, age and hometown.

The rules decide

  • A commercial vehicle has to be in the crash itself.
  • Someone has to have died or been critically hurt, for example flown to a hospital by helicopter.
  • The crash has to be 14 days old or newer.
  • Stories about lawsuits, new laws or news roundups are turned away.

At the firm's request, rideshare, app delivery and taxi crashes count too, because those cars carry commercial insurance while working.

One email per crash,
in the firm's own format.

The subject line follows the firm's format: the town, the state, and the victim's name and age. The body gives the place, the date, the vehicle type, a short summary and a link to every source.

If a source says something about fault, the email shows it, but the agent never uses fault to keep or drop a lead. For a few states where the waiting-period rule has been checked, the email shows the earliest date the firm may contact a family, with the rule behind it. For every other state, it says the rule is unknown. Each email notes that it is not legal advice.

Sample wording

[Town], [State], [Name, age]

A follow-up goes out only if the victim's hometown is published later, so a crash gets two emails at most.

Checks against
made-up details.

Name check

Before any name is saved, the agent checks that the name is in the article text. If it is not, the name is dropped. This cuts the risk of a made-up name reaching the firm, though it does not prove who a person is.

Watchlist

When no name has been published yet, the crash goes on a watchlist. The agent is set to recheck its sources once a day and emails the firm when a name appears.

One record per crash

The same crash reported by several outlets becomes one record, so the firm is not emailed twice.

A server of its own,
with no public door.

The agent runs on a dedicated server in the US. The server has no public door, and its database is backed up every day, encrypted, to separate storage.

The agent reads a set list of sources, so a crash reported only somewhere else can be missed.

No lead counts or case results are given here. None have been measured, and the firm decides which leads to follow up.

FAQs

Questions about
this agent.

Does the agent decide who was at fault?

No. If a source mentions fault, the email shows it, but the agent never uses fault to keep or drop a lead. The firm reviews the leads and decides what to do with each one.

What happens when a story has no victim name yet?

The crash goes on a watchlist. The agent is set to recheck its sources once a day, and when a name is published and found in the article, it emails the firm.

Which parts use AI, and which are plain rules?

The AI model pulls the facts out of each story, because stories are written in free text. Fixed rules, written from the firm's own procedure, then decide whether a crash qualifies.