Engineering· 2026-09-05· 7 min read

How Autonomous AI Agents Monitor Municipal Feeds in Real Time

Inside the event-driven ingestion pipeline that turns raw city data into actionable resident alerts.

E
Engineering Team
Core Platform

Processing Raw Civic Data at Scale

Civic data is notoriously fragmented. A medium-sized municipality publishes updates through a dizzying array of formats: RSS feeds for council meetings, raw CAP (Common Alerting Protocol) XML for emergency management, JSON endpoints for public works, and audio streams for dispatch.

To synthesize these disparate streams into cohesive timeline cards, MyZip utilizes a distributed worker pipeline written in Go.

[Civic Ingestion] -> [Semantic Normalization] -> [Vertex AI Summarizer] -> [Firestore Geo Feed]

Ingestion & Sanitization

Our background ingestion workers poll upstream municipal endpoints on jittered schedules. When new raw payloads arrive:

  1. Checksum & Deduplication: SHA-256 digests ensure redundant alerts are dismissed before expensive LLM processing.
  2. Geocoding & Spatial Indexing: Street intersections and landmarks are extracted and mapped to canonical postal boundaries using our internal spatial resolver.
  3. Structured Vertex AI Inference: We prompt Vertex AI (Gemini 2.5 Flash) with strict JSON schema constraints. The model outputs the alert severity, event category, concise title, and recommended resident actions.

Low-Latency Delivery

Once verified, alerts are committed to Firestore collections partitioned by {countryCode}_{zipCode}. Connected clients receive push notifications via Firebase Cloud Messaging and live UI updates via real-time snapshot listeners.

#Go#Vertex AI#Architecture#Cloud Run