Skip to content
Ryan James
Menu

← BlogSubstack5 min read

Building Chat Alerts With Claude

A Network Monitor That Pings Me

Building Chat Alerts With Claude

I manage a lot of systems. Last spring, I wanted to see how sophisticated a network monitor I could build with Claude. I don’t remember exactly which model I used, but it was probably one of the Opus models. I put it on a local machine that sits next to my desk at work, wired into our network, and thought, that’s pretty cool. I can always check on how the network is behaving when I’m in my office.

Fast forward to now. Claude Fable 5.2 came out, and I wanted to see what it could do. I recall using the phrase “impress me” in my prompt to Claude. It rebuilt the entire monitor from scratch and gave me analytics I hadn’t had before.

The network monitor’s overview page, shown here with simulated demo data.

One place to see everything

The biggest change is that I can see a lot of different systems in one place. On the overview page, I can check access points, switches, and our internet speed and latency, along with Wi-Fi client counts compared to a typical day. Below that sit the other things I’m responsible for: printers (including low toner), phones, cameras, PA speakers, and the services our school depends on, so I can see right away when something like our student information system goes down. There’s also a timeline of what went offline and when it came back, plus an alerts page.

That matters because the job is mostly questions. Someone stops me in the hall, or a ticket comes in saying something connected to the network isn’t working. It could be one device, one room, a whole building, or our ISP. Before, answering that meant checking several tools one at a time. Now I start with one page and often know within a minute whether the problem is on our side.

I also saved the monitor as an app on the iPad I carry while I walk around campus. Yes, the iPad has a remote connection to the computer in my office — so its pulling what that computer is monitoring, not the iPad. I’m not stuck at my desk when I need to look something up. If a teacher tells me the PA isn’t working in a room, I can pull up the monitor while I’m standing in the hallway.

Adding notifications

I asked Claude how to improve it, and one suggestion was to build notifications, since we’re a Google Workspace school. I hadn’t built a chat bot since 2019, when I helped a colleague put together a proof of concept for a Microsoft Teams chat bot for schools. Anyone could ask it for schedules, lunches, and field trips. I felt lucky to be in the right place at the right time and play a supporting role in building that tool. (If you were at ISTE 2019, we presented on this topic)

This time I created a new Google Chat space, added a webhook, and had Claude give me a template for a local config file. I filled it out myself, so Claude never sees the real configuration. Now I get a daily summary at 7:30 every morning, and I get an alert whenever there’s an error.

Alerts and the daily summary in Google Chat. Illustration with sample data.

The value showed up recently during network maintenance when things weren’t coming back online. Because the alerts were running, I got a notification every time an access point or a switch went offline or returned. That gave me a timeline of what dropped and when it recovered, which made troubleshooting much easier. I’m sure systems like Ubiquiti and Aruba have features that do something similar. But this pings me on every single change, which has been very useful.

A second use: safety alerts

I told a colleague who manages safety and security for the school what I was doing, and he gave me a list of things he’d like to be alerted about. That meant two road systems and the weather. I set these up as alerts in a chat space, either by scraping the websites or by using an API token.

The important part is that none of this runs on Claude. Claude wrote the code, but GitHub Actions and Google Apps Script does the work. Claude does the templating, and other automation tools run it.

How the safety alert monitor fits together: Google Apps Script keeps time and hears commands, GitHub Actions does the work, and a webhook posts to the space.

Letting people ask for updates

Then I thought: what if we know weather is coming and the last alert was a few hours ago? We’d want an up-to-date synopsis. The webhook only sends information one way, so I worked with Claude to build a chat app in Google Cloud that uses slash commands. When someone types /update, a Google Apps Script tells GitHub Actions to run, and the update lands in the space.

A weather alert and a follow-up update, shown in a thread. Simulated with test data.

The principle behind it: build tools you own

This is the way I try to work with AI. Use it to build self-sustaining tools, and don’t build in a way that makes you dependent on it. I see people fall in love with one AI platform, then switch to the next one and try to move everything over. These platforms also want to keep everything inside their ecosystems. Take artifacts: I’d rather just have the PDF so I can take it and do whatever I want with it.

Two habits help. First, scope things bigger than you think they’ll be. If you’re building a spreadsheet, build it so it can become a dashboard you could hand to a board. Then you can pull it out of the AI system and be done. Second, ask what tool you’d need to do your job better if it existed, and build that.

If I ever left Claude, because Gemini became the best code editor or for any other reason, I could point an AI agent at the repository and say, “I built all this, I need some improvements.” These chat apps run outside of Claude and outside of any AI tool. The data doesn’t pass through an AI system. I own it.

What’s next

These two projects were more useful than I expected, and they make me curious about what else we could build. If you work in Google Workspace or Microsoft, what could a chat app do for you? Education carries a lot of administrative overhead from answering small questions, and I’d like to see how much of it chat tools could take off our plates.

Keep coding!
Ryan

This post first went out on Substack. Join the conversation there or subscribe to get the next one by email.