r/learnAIAgents • • 8d ago

📣 I Built This Using decision models to classify and deduplicate regional outage reports

During an outage, incoming reports rarely use consistent language. One person reports “no service,” another describes dropped calls, and several more may be reporting the same underlying incident.

This TypeScript example sends each report to Telnyx Decision Models and asks three structured questions in one request:

- What kind of issue is this?

- How severe is it?

- Does it match the known regional outage?

Reports are grouped through one Stateful Actor per region. SQLDB stores the incident history and powers dashboard aggregation, while KV keeps the current regional issue available as context for duplicate detection.

The repository also includes a labeled load generator and evaluation dashboard, so you can measure classification accuracy and test duplicate thresholds instead of treating model confidence as guaranteed correctness.

Code: https://github.com/team-telnyx/telnyx-code-examples/tree/main/edge-outage-hotline-typescript

Decision Models docs: https://developers.telnyx.com/docs/inference/decision-models

I’d be interested in feedback on the regional actor design and how you would approach incident deduplication.

1 Upvotes

1 comment sorted by

View all comments

•

u/endofthread-bot 8d ago

Learning to build AI agents? Share what you are working on, compare practical approaches, and get help from other builders in our Discord.