The AI Mayor
AI Builders Lab 🤝 Environmental Tech
Mission Briefing
The city of Tomorrowville is facing an energy crisis! Your goal is to build an AI Mayor agent that monitors simulated weather data and city power usage, and automatically redirects energy from solar farms to hospitals when storms hit.
Phase 1: The Environmental Data
First, we need to simulate the environment. Generate a JSON dataset representing the city's power grid over a 24-hour period, including weather conditions and solar output.
Phase 2: The AI Decision Engine
Now, architect the AI script. Ask Cursor/AI to write a Python script that loads the JSON data, evaluates the energy surplus/deficit, and prints the "Mayor's Actions" (e.g., turning on backup batteries).
Victory Condition: Combine these two elements into a working prototype in Replit or your local IDE!