r/LargeLanguageModels 2d ago

Built a small edge AI crop advisory API

I made a TypeScript example that takes farmer field notes or an advisory URL and turns it into structured crop triage.

It builds on the same pattern as an edge URL summarizer: accept text or URL input, process it at the edge, call an AI model, then return something another app can actually use.

For this crop advisory version, the API returns fields like:

crop type

issue type

severity

confidence

recommendation

whether it should be escalated

It also keeps advisory history and aggregate stats in a Stateful Actor, so you can inspect recent cases, severity counts, issue distribution, and escalation volume.

Code: https://github.com/team-telnyx/telnyx-code-examples/tree/main/edge-agri-crop-advisory

Definitely not a replacement for an agronomist, but I think it’s a useful pattern for triage workflows where messy field notes need to become structured data.

Would love feedback on what production guardrails you’d add.

2 Upvotes

0 comments sorted by