{"p":"government","persona":["government","Government & smart cities","Municipalities, agencies and city teams planning services and keeping residents safe and informed."],"industry":{"slug":"government","name":"Government & cities"},"templates":{"ambulance":{"name":"Nearest ambulance to each accident","desc":"Every hour: find accidents and road closures in your city, match each one to the nearest of your ambulances (from your CSV), email the list and map them.","n":[["sched","Every hour",{"freq":"Every hour"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Chicago","label":"Chicago","lat":41.8781,"lng":-87.6298}]}],["incidents","Accidents and closures",{"where":"Area of interest","types":["Road closures","Other incidents"]}],["nearest","Nearest ambulance",{"pts":{"file":"example ambulances.csv","cols":["name","lat","lng","phone"],"rows":[["Ambulance 1","51.51627","-0.09914","+000 55 000 1000"],["Ambulance 2","51.56488","-0.09745","+000 55 000 1111"],["Ambulance 3","51.60296","-0.15728","+000 55 000 1222"],["Ambulance 4","51.52143","-0.15432","+000 55 000 1333"],["Ambulance 5","51.48829","-0.18993","+000 55 000 1444"],["Ambulance 6","51.41904","-0.17463","+000 55 000 1555"],["Ambulance 7","51.47872","-0.119","+000 55 000 1666"],["Ambulance 8","51.47691","-0.07039","+000 55 000 1777"]],"name":0,"lat":1,"lng":2,"skipped":0,"more":false},"pre":"ambulance"}],["email","Email the dispatch list",{"kind":"One email per run","subj":"Accidents and the nearest ambulance"}],["map","Accidents and ambulances",{"name":"Accidents and ambulances"}]],"e":[[0,1],[1,2],[2,3],[3,4],[3,5]]},"gov_incident_exposure":{"name":"Incidents and the people they affect","desc":"Every morning: road incidents in your city, how many people live within 1 km of each, the most serious first with a situation note from an AI agent (hospitals and schools nearby), emailed to the traffic team and mapped.","n":[["sched","Every morning",{"time":"06:00"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Cairo","label":"Cairo","lat":30.0444,"lng":31.2357}]}],["incidents","Incidents in the city",{"where":"Area of interest","types":["Road closures","Roadworks","Other incidents"]}],["demog","Who lives around",{"where":"Each incoming place","radius":"1 km"}],["sort","Best 20 first",{"by":"Another field","fname":"population","dir":"Highest first (Z to A)","keep":"The first 20"}],["agent","Situation note from the AI agent",{"goal":"You support a traffic operations center. For each incident, use your tools to find hospitals and schools nearby, then write two lines: who is affected and what to do first (divert, inform schools, alert ambulances).","msg":"Assess the incident at {{lat}}, {{lng}}.","memory":"None","steps":"6","out":"situation"}],["nearby","Hospitals and schools around it",{"types":["Hospital","School"],"where":"Each incoming place","radius":"2 km","give":"Each incoming place, with counts"}],["email","Email me the list",{"kind":"One email per run","subj":"Incidents affecting the most people"}],["map","Show them on a map",{"name":"Incidents by people affected","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,7],[5,8],[5,6,"tool"]]},"gov_hospital_gaps":{"name":"Neighbourhoods far from a hospital","desc":"Every quarter: blocks of your city where people live with no hospital within 5 km, the most populated first, with a planning note from xMap AI, for health planning.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Paris","label":"Paris","lat":48.8566,"lng":2.3522}]}],["demog","People in every block of the city",{"where":"Area of interest","out":"Every hexagon (about 0.1 km\u00b2)"}],["filter","Blocks where people live",{"field":"A number field","fname":"population","op":"\u2265","val":"300"}],["nearby","Hospitals around each block",{"types":["Hospital"],"where":"Each incoming place","radius":"5 km","give":"Each incoming place, with counts"}],["filter","No hospital within 5 km",{"field":"A number field","fname":"nearby_count","op":"\u2264","val":"0"}],["sort","Best 20 first",{"by":"Another field","fname":"population","dir":"Highest first (Z to A)","keep":"The first 20"}],["llm","Write the planning note",{"scope":"The whole list","task":"Write summary","prompt":"Write a short note for health planners: where the largest populations live far from a hospital, the share of seniors and children there, and where a new clinic would help most.","out":"report"}],["map","Show them on a map",{"name":"Far from a hospital","color":"Category"}],["email","Email me the list",{"kind":"One email per run","subj":"Neighbourhoods far from a hospital"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[7,9]]},"gov_school_capacity":{"name":"Children per school, block by block","desc":"Every quarter: how many children live in every block of your city and how many schools serve them, the most crowded first, with a note from xMap AI, saved to a sheet and mapped.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Toronto","label":"Toronto","lat":43.6532,"lng":-79.3832}]}],["demog","People in every block of the city",{"where":"Area of interest","out":"Every hexagon (about 0.1 km\u00b2)"}],["nearby","Schools around each block",{"types":["School","Primary school","Kindergarten"],"where":"Each incoming place","radius":"2 km","give":"Each incoming place, with counts"}],["calc","Children per school",{"lines":"children_per_school = round({{children_0_19}} / ({{nearby_count}} + 1))"}],["sort","Best 20 first",{"by":"Another field","fname":"children_per_school","dir":"Highest first (Z to A)","keep":"The first 20"}],["llm","Write the capacity note",{"scope":"The whole list","task":"Write summary","prompt":"Write a short note for the education department: where children per school is highest and where the next schools are needed.","out":"report"}],["ap_google-sheets","Save the table",{"action":"insert_row","per":"Once per item","inputs":{"spreadsheetId":"","sheetId":"","first_row_headers":true,"values":{}}}],["map","Show them on a map",{"name":"Children per school","color":"Category"}],["email","Email me the results",{"kind":"One email per run"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[6,8],[6,9]]},"gov_heat_advisory":{"name":"Heat advisory for the public","desc":"Every morning: the forecast for your cities, and when it passes 45 degrees, a public advisory drafted by xMap AI for the communications team, by email and on Slack.","n":[["sched","Every morning",{"time":"05:00"}],["aoi","My cities",{"mode":"Cities","cities":[{"kind":"city","name":"Abu Dhabi","label":"Abu Dhabi","lat":24.4539,"lng":54.3773},{"kind":"city","name":"Kuwait City","label":"Kuwait City","lat":29.3759,"lng":47.9774},{"kind":"city","name":"Doha","label":"Doha","lat":25.2854,"lng":51.531}]}],["weather","Forecast for 3 days",{"where":"Area of interest","days":"3","what":["Temperature","Rain","Wind"]}],["filter","45 degrees or more",{"field":"Max temperature","op":"\u2265","val":"45"}],["llm","Draft the advisory",{"task":"Write summary","prompt":"Write a short public heat advisory for this city and day: the expected high, who is at risk and three practical steps, in plain language.","out":"advisory"}],["email","Email me the list",{"kind":"One email per run","subj":"Heat advisory to publish"}],["ap_slack","Tell the communications team",{"action":"send_channel_message","per":"Once per run","inputs":{"channel":"","text":""}}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_roadworks_residents":{"name":"New roadworks and the residents affected","desc":"Every Monday: roadworks that started in your city, only the new ones, how many residents live around each, and a resident notice drafted by xMap AI, emailed and mapped.","n":[["sched","Every Monday",{"freq":"Every week","weekday":"Monday","time":"08:00"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Toronto","label":"Toronto","lat":43.6532,"lng":-79.3832}]}],["incidents","Roadworks",{"where":"Area of interest","types":["Roadworks"]}],["onlynew","Only new ones",null],["demog","Who lives around",{"where":"Each incoming place","radius":"500 m"}],["llm","Draft the resident notice",{"task":"Write summary","prompt":"Write a short, polite notice for residents near these roadworks: what is happening, that it may take longer to get around, and where to find updates.","out":"notice"}],["email","Email me the list",{"kind":"One email per run","subj":"New roadworks this week"}],["map","Show them on a map",{"name":"Roadworks","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[5,7]]},"gov_new_businesses":{"name":"New businesses in the municipality","desc":"Every month: places that opened in your city in the last six months, grouped by kind of business, as a short report and a map for the economic development team.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Bogota","label":"Bogota","lat":4.711,"lng":-74.0721}]}],["nearby","New businesses",{"types":["Restaurant","Coffee shop","Supermarket","Clothing store","Gym","Pharmacy"],"where":"Area of interest","order":"Best rated first","max":"300","since":"Last 6 months","cover":true}],["onlynew","Only new ones",null],["classify","Group them by kind",{"tax":"Custom list","labels":"Food and drink, Retail, Health, Fitness, Services, Other"}],["llm","Write the monthly note",{"scope":"The whole list","task":"Write summary","prompt":"Write a short note for the economic development team: how many businesses opened, of which kinds, and in which areas.","out":"report"}],["email","Email me the list",{"kind":"One email per run","subj":"New businesses this month"}],["map","Show them on a map",{"name":"New businesses","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[5,7]]},"gov_citizen_chat":{"name":"Citizen services chat: nearest pharmacy or clinic","desc":"A chat for residents: they say where they are and what they need, an AI agent finds the nearest open pharmacy, clinic or hospital live and answers.","n":[["chat","Chat",{"title":"Find a service near you","welcome":"Hello. Tell me where you are and what you need (pharmacy, clinic, hospital) and I will find the nearest open one."}],["agent","Citizen services",{"goal":"You help residents find health services. When they say where they are and what they need, use Services nearby and answer with the 3 nearest open ones: name, how far and rating. In an emergency, tell them to call the emergency number. Answer in their language."}],["nearby","Services nearby",{"where":"A point","center":"{{agent: where to look, as the place the person named}}","types":["Pharmacy","Medical clinic","Hospital"],"radius":"5 km","order":"Best rated first","max":"20"}],["reply","Reply",{"text":"{{reply}}","give":"The answer and the items"}]],"e":[[0,1],[1,2,"tool"],[1,3]]},"gov_coast_watch":{"name":"Ships stopped off the coast","desc":"Every hour: ships stopped in a coastal area (live AIS) that entered it since the last check, each described by xMap AI for the coast team, emailed and mapped.","n":[["sched","Every hour",{"freq":"Every hour","every":"1 hour","minute":"00"}],["aoi","Coastal area",{"mode":"Draw on a map","shapes":{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[3.95,51.88],[4.35,51.88],[4.35,52.02],[3.95,52.02],[3.95,51.88]]]}}]}}],["ships","Ships in the area",{"where":"Area of interest","listen":"60 seconds","moving":"Stopped (anchored or moored)"}],["zone","Entered the area",{"zone":"The Area of interest","event":"Entered it"}],["llm","Describe each ship",{"task":"Write summary","prompt":"In one sentence, describe this ship for a coast guard officer: its type, size, where it says it is going and anything unusual about where it stopped.","out":"note"}],["email","Email the coast team",{"kind":"One email per run","subj":"Ships stopped off the coast"}],["map","Show them on a map",{"name":"Ships off the coast","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_project_monitor":{"name":"Public projects from space, every month","desc":"Every month: the latest clear satellite picture of each public project site, with the weather there and a status note from xMap AI, emailed to the project office and pinned on a map.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00"}],["mydata","My project sites",null],["satellite","Latest picture of each site",{"where":"Each incoming place","radius":"1000","period":"Last 30 days","cloud":"20"}],["weather","Forecast for 3 days",{"where":"Each incoming place","days":"3","what":["Temperature","Rain","Wind"]}],["llm","Write the status note",{"task":"Write summary","prompt":"Write a two-line note for this project: when the latest clear picture was taken and whether the coming weather could hold up outdoor work.","out":"status"}],["email","Email the project office",{"kind":"One email per run","subj":"Public projects from space this month"}],["map","Show them on a map",{"name":"Project sites","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_flood_points":{"name":"Heavy rain at flood-prone points","desc":"Every morning: the 2-day forecast at each flood-prone point (underpasses, low roads), and when heavy rain is coming, instructions from xMap AI to the field teams on WhatsApp and by email.","n":[["sched","Every morning",{"time":"05:00"}],["mydata","Flood-prone points",null],["weather","Forecast for 2 days",{"where":"Each incoming place","days":"2","what":["Temperature","Rain","Wind"]}],["filter","Heavy rain expected",{"field":"Rain (mm)","op":"\u2265","val":"15"}],["llm","Instructions for the field team",{"task":"Write summary","prompt":"Give the field team three short steps for this point before the rain: what to check, when to close the road and who to tell.","out":"instructions"}],["ap_whatsapp","Tell the field teams",{"action":"sendMessage","per":"Once per run","inputs":{"phone_number_id":"","to":"","text":"Heavy rain expected at {{count}} flood-prone points:\n{{items}}"}}],["email","Email me the list",{"kind":"One email per run","subj":"Heavy rain at flood-prone points"}],["map","Show them on a map",{"name":"Flood watch","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6],[4,7]]},"gov_city_safety_weekly":{"name":"Weekly city safety report","desc":"Every Sunday: every road incident in your city, grouped by kind, the people living around each and the hospitals within 5 km, the hotspots investigated by an AI agent, and a one-page safety report from xMap AI to the leadership, on Slack and on a map.","n":[["sched","Every Sunday",{"freq":"Every week","weekday":"Sunday","time":"07:00"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Bangkok","label":"Bangkok","lat":13.7563,"lng":100.5018}]}],["incidents","Incidents this week",{"where":"Area of interest","types":["Road closures","Roadworks","Other incidents"]}],["classify","Group them",{"tax":"Custom list","labels":"Road closure, Roadworks, Accident, Other"}],["demog","Who lives around",{"where":"Each incoming place","radius":"1 km"}],["nearby","Hospitals around each",{"types":["Hospital"],"where":"Each incoming place","radius":"5 km","give":"Each incoming place, with counts"}],["sort","Best 20 first",{"by":"Another field","fname":"population","dir":"Highest first (Z to A)","keep":"The first 20"}],["agent","Investigate each hotspot with the AI agent",{"goal":"You support city leadership. For each hotspot, use your tools to find schools and emergency services nearby, then write two lines: who is affected and what the city should do.","msg":"Investigate the hotspot at {{lat}}, {{lng}}.","memory":"None","steps":"6","out":"hotspot_note"}],["nearby","Schools and emergency services around it",{"types":["School","Police station","Fire station"],"where":"Each incoming place","radius":"2 km","give":"Each incoming place, with counts"}],["llm","Write the safety report",{"scope":"The whole list","task":"Write summary","prompt":"Write a one-page weekly safety report: the number of incidents by kind, the hotspots affecting the most people, and three actions for next week.","out":"report"}],["email","Email me the list",{"kind":"One email per run","subj":"Weekly city safety report"}],["ap_slack","Share with the leadership channel",{"action":"send_channel_message","per":"Once per run","inputs":{"channel":"","text":""}}],["map","Show them on a map",{"name":"Safety hotspots","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,9],[9,10],[9,11],[9,12],[7,8,"tool"]]},"gov_cooling_centres":{"name":"Cooling centres for the heat wave","desc":"In the hot season: libraries, community centres and malls in each district with how many seniors live around them, ranked, as cooling centres for the civil protection office.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Asia/Karachi"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Lahore","label":"Lahore","lat":31.5204,"lng":74.3587}]}],["nearby","Cool public buildings",{"types":["Library","Community center","Shopping mall"],"where":"Area of interest","order":"Best rated first","max":"150"}],["demog","Who lives around",{"where":"Each incoming place","radius":"1 km"}],["calc","Seniors nearby",{"lines":"seniors = age_60_69 + age_70_79 + age_80_plus"}],["sort","Best 20 first",{"by":"Another field","fname":"seniors","dir":"Highest first (Z to A)","keep":"The first 20"}],["map","Show them on a map",{"name":"Cooling centres","color":"One color"}],["email","Email me the list",{"kind":"One email per run","subj":"Cooling centres to open"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]]},"gov_pharmacy_night_cover":{"name":"Districts with no pharmacy close by","desc":"Every quarter: blocks of your city with many residents and the fewest pharmacies within 2 km, ranked, for the health department\u2019s night-duty plan.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Europe/Bucharest"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Bucharest","label":"Bucharest","lat":44.4268,"lng":26.1025}]}],["demog","People in every block of the city",{"where":"Area of interest","out":"Every hexagon (about 0.1 km\u00b2)"}],["nearby","Pharmacies within 2 km",{"types":["Pharmacy"],"where":"Each incoming place","radius":"2 km","give":"Each incoming place, with counts"}],["calc","People per pharmacy",{"lines":"per_pharmacy = population / (nearby_count + 1)"}],["sort","Best 20 first",{"by":"Another field","fname":"per_pharmacy","dir":"Highest first (Z to A)","keep":"The first 20"}],["email","Email me the list",{"kind":"One email per run","subj":"Pharmacy gaps by block"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6]]},"gov_tourism_permits":{"name":"New hotels and guest houses to register","desc":"Every month: hotels, guest houses and holiday rentals that appeared in your city in the last six months, the new ones only, in a sheet for the tourism licensing team to check.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Asia/Tbilisi"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Tbilisi","label":"Tbilisi","lat":41.7151,"lng":44.8271}]}],["nearby","New places to stay",{"types":["Hotel","Guest house","Hostel","Bed & breakfast"],"where":"Area of interest","order":"Best rated first","max":"150","since":"Last 6 months","contact":true}],["onlynew","Only new ones",null],["classify","Sort by kind",{"tax":"Custom list","labels":"Hotel, Guest house, Hostel, Holiday rental"}],["ap_google-sheets","Add them to the licensing sheet",{"action":"insert_row","per":"Once per item","inputs":{"spreadsheetId":"","sheetId":"","first_row_headers":true,"values":{}}}],["email","Email me the results",{"kind":"One email per run"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_school_route_safety":{"name":"Road incidents near schools before the bell","desc":"Every school day at 6:30: road closures and incidents within 1 km of each school in your table, with a note by xMap AI for the traffic police on where to place officers.","n":[["sched","Every morning",{"time":"06:30","tz":"Asia/Amman"}],["mydata","Our schools",null],["incidents","Incidents near each school",{"where":"Around each incoming place","types":["Road closures","Roadworks","Other incidents"],"radius":"1000"}],["llm","Write the traffic note",{"scope":"The whole list","task":"Write summary","prompt":"For the traffic police: the schools with incidents nearby this morning and where officers are needed most.","out":"report"}],["ap_whatsapp","Send it to the traffic police",{"action":"sendMessage","per":"Once per run","inputs":{"phone_number_id":"","to":"","text":"{{report}}"}}],["email","Email me the results",{"kind":"One email per run"}]],"e":[[0,1],[1,2],[2,3],[3,4],[3,5]]},"gov_market_inspections":{"name":"Food businesses to inspect this month","desc":"Every month: restaurants, bakeries and butchers in your municipality, the lowest-rated first, with an inspection focus by xMap AI for each, for the food safety inspectors.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Africa/Tunis"}],["aoi","My municipality",{"mode":"Cities","cities":[{"kind":"city","name":"Tunis","label":"Tunis","lat":36.8065,"lng":10.1815}]}],["nearby","Food businesses",{"types":["Restaurant","Bakery","Butcher shop"],"where":"Area of interest","order":"Best rated first","max":"300"}],["sort","Lowest rated first",{"by":"Rating","dir":"Lowest first (A to Z)","keep":"The first 50"}],["llm","Write the focus with xMap AI",{"task":"Write summary","prompt":"One line for the inspector: what to look at first at this place, from its kind and its rating.","out":"focus"}],["ap_google-sheets","Add them to the inspection plan",{"action":"insert_row","per":"Once per item","inputs":{"spreadsheetId":"","sheetId":"","first_row_headers":true,"values":{}}}],["email","Email me the results",{"kind":"One email per run"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_illegal_dumping":{"name":"New building sites from space near the river","desc":"Every month: the latest satellite picture of each riverbank and green site in your table, with a note by xMap AI on new clearing, building or dumping, for the environment inspectors.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Asia/Dhaka"}],["mydata","Protected sites",null],["satellite","Latest picture of each site",{"where":"Each incoming place","radius":"1000","period":"Last 30 days","cloud":"20"}],["llm","Read the picture with xMap AI",{"task":"Write summary","prompt":"One line: any sign of new clearing, building or dumping at this site.","out":"site_note"}],["jev","Ask Jev if it needs a visit",{"kind":"Yes or no","q":"From the note on the picture, does this site need an inspector\u2019s visit this month?","field":"visit"}],["email","Email me the list",{"kind":"One email per run","subj":"Sites from space this month"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5]]},"gov_youth_programmes":{"name":"Where young people have least to do","desc":"Every year: blocks of your city with many young people and the fewest sports grounds, youth clubs and libraries within 2 km, ranked, for the youth ministry.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Africa/Kigali"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Kigali","label":"Kigali","lat":-1.9441,"lng":30.0619}]}],["demog","People in every block of the city",{"where":"Area of interest","out":"Every hexagon (about 0.1 km\u00b2)"}],["nearby","Youth places within 2 km",{"types":["Sports complex","Youth center","Library","Park"],"where":"Each incoming place","radius":"2 km","give":"Each incoming place, with counts"}],["calc","Young people per place",{"lines":"youth = age_10_19 + age_20_29\nper_place = youth / (nearby_count + 1)"}],["sort","Best 20 first",{"by":"Another field","fname":"per_place","dir":"Highest first (Z to A)","keep":"The first 20"}],["llm","Write the note",{"scope":"The whole list","task":"Write summary","prompt":"For the youth ministry: the ten blocks that need a youth centre or sports ground most and why.","out":"report"}],["email","Email me the list",{"kind":"One email per run","subj":"Where young people need places"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]]},"gov_storm_shelters":{"name":"Storm coming: shelters and the people near them","desc":"Every six hours in storm season: the wind and rain forecast for your city, and when a storm is coming the schools and halls to open as shelters, with the people near each.","n":[["sched","Every 6 hours",{"freq":"Every hour","every":"6 hours","minute":"00","tz":"Asia/Manila"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Manila","label":"Manila","lat":14.5995,"lng":120.9842}]}],["nearby","Shelter buildings",{"types":["School","Community center","Stadium"],"where":"Area of interest","order":"Best rated first","max":"80"}],["demog","Who lives around",{"where":"Each incoming place","radius":"1 km"}],["weather","Forecast for 2 days",{"where":"Each incoming place","days":"2","what":["Temperature","Rain","Wind"]}],["sort","Best 20 first",{"by":"Another field","fname":"population","dir":"Highest first (Z to A)","keep":"The first 20"}],["llm","Write the shelter plan",{"scope":"The whole list","task":"Write summary","prompt":"For the disaster office: the strongest wind and rain coming, which shelters to open first and how many people live near each.","out":"report"}],["email","Email me the list",{"kind":"One email per run","subj":"Shelter plan"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]]},"gov_gritting_plan":{"name":"Freezing nights ahead: a gritting plan","desc":"Every afternoon in winter: the coldest of the next three nights in your city, with a gritting and snow plan by xMap AI for the roads team and the crews on call.","n":[["sched","Every morning",{"time":"14:00","tz":"America/Toronto"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Toronto","label":"Toronto","lat":43.6532,"lng":-79.3832}]}],["weather","Forecast for 3 days",{"where":"Area of interest","days":"3","what":["Temperature","Rain","Wind"]}],["sort","The coldest first",{"by":"Another field","fname":"temp_min","dir":"Lowest first (A to Z)","keep":"The first 5"}],["llm","Write the gritting plan",{"scope":"The whole list","task":"Write summary","prompt":"For the roads team: which nights will freeze, when to grit the main roads, bus routes and hospital access first, and how many crews to keep on call.","out":"report"}],["email","Email me the list",{"kind":"One email per run","subj":"Gritting plan for the next nights"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5]]},"gov_hotel_inspection_routes":{"name":"Fire safety visits to hotels, with the routes","desc":"Every Monday: the hotels and hostels in your city, shared between two inspectors in the best visiting order from the city office and back, with directions for each stop, in a visit plan by xMap AI emailed to the inspectors and mapped.","n":[["sched","Every Monday",{"freq":"Every week","weekday":"Monday","time":"07:00","tz":"Europe/Lisbon"}],["aoi","Our city",{"mode":"Cities","cities":[{"kind":"city","name":"Lisbon","label":"Lisbon","lat":38.7223,"lng":-9.1393}]}],["nearby","Hotels and hostels",{"types":["Hotel","Hostel","Guest house"],"where":"Area of interest","order":"Best rated first","max":"20"}],["route","Routes for 2 inspectors",{"reps":"Share between reps","n":"2","mode":"Car","back":true,"start":[{"kind":"place","name":"City office","label":"City office, Lisbon","lat":38.7078,"lng":-9.1366}]}],["llm","Write the visit plan",{"scope":"The whole list","task":"Write summary","prompt":"For each inspector (route): the stops in visit_order with the directions link (route_link), and a reminder to check the fire exits, alarms and extinguishers.","out":"report"}],["email","Email me the list",{"kind":"One email per run","subj":"Fire safety visits this week"}],["map","Show them on a map",{"name":"Inspection routes","color":"Category"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_public_toilets":{"name":"Where the city needs public toilets","desc":"Every year: parks, markets and transit stations in your city with how many people live around and how many public toilets are near, ranked, for the city works budget.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Asia/Kolkata"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Chennai","label":"Chennai","lat":13.0827,"lng":80.2707}]}],["nearby","Busy public places",{"types":["Park","Market","Train station","Bus station"],"where":"Area of interest","order":"Best rated first","max":"150"}],["nearby","Public toilets within 500 m",{"types":["Public bathroom"],"where":"Each incoming place","radius":"500 m","give":"Each incoming place, with counts"}],["sort","The fewest nearby first",{"by":"Another field","fname":"nearby_count","dir":"Lowest first (A to Z)","keep":"A number I choose","n":"30"}],["map","Show them on a map",{"name":"Where toilets are needed","color":"One color"}],["email","Email me the list",{"kind":"One email per run","subj":"Public toilet plan"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6]]},"gov_charging_gaps":{"name":"Public car parks with no charger nearby","desc":"Every month: the public car parks and parking garages in your city, each with the public charging stations within 1 km from Open Charge Map, the ones with the fewest first, on a map for the transport team planning new chargers.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"America/Vancouver"}],["aoi","Our city",{"mode":"Cities","cities":[{"kind":"city","name":"Vancouver","label":"Vancouver","lat":49.2827,"lng":-123.1207}]}],["nearby","Public car parks",{"types":["Parking lot","Parking garage"],"where":"Area of interest","order":"Best rated first","max":"100"}],["evcharge","Chargers within 1 km",{"where":"Each incoming place","radius":"1 km"}],["sort","The fewest chargers first",{"by":"Another field","fname":"ev_stations","dir":"Lowest first (A to Z)","keep":"A number I choose","n":"30"}],["map","Show them on a map",{"name":"Car parks to add chargers to","color":"Category"}],["email","Email me the list",{"kind":"One email per run","subj":"Car parks with the fewest chargers"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6]]},"gov_polling_stations":{"name":"Schools as polling stations and the voters around them","desc":"Before an election: schools and community centres in your city with how many adults live within 1 km of each, ranked, for the polling station plan.","n":[["sched","On the 1st of every month",{"freq":"Every month","monthday":"1","time":"08:00","tz":"Asia/Kathmandu"}],["aoi","My city",{"mode":"Cities","cities":[{"kind":"city","name":"Kathmandu","label":"Kathmandu","lat":27.7172,"lng":85.324}]}],["nearby","Schools and community centres",{"types":["School","Community center"],"where":"Area of interest","order":"Best rated first","max":"200"}],["demog","Who lives around",{"where":"Each incoming place","radius":"1 km"}],["calc","Adults around",{"lines":"adults = population - age_0_9 - age_10_19"}],["sort","Best 50 first",{"by":"Another field","fname":"adults","dir":"Highest first (Z to A)","keep":"The first 50"}],["map","Show them on a map",{"name":"Polling stations","color":"One color"}],["email","Email me the list",{"kind":"One email per run","subj":"Polling station plan"}]],"e":[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7]]}},"info":{"ambulance":{"p":"government","ind":["Public sector","Logistics"],"goals":["ops"],"promise":"Every accident in your city matched to the nearest of your ambulances, every hour.","why":"Dispatchers lose minutes working out which unit is closest. This flow does it for every incident as soon as it shows up.","uses":["An ambulance service covering a city","A roadside assistance company","A private security patrol"],"gets":["A dispatch list by email","A map of incidents and units"],"min":2},"gov_incident_exposure":{"p":"government","ind":["Public sector"],"goals":["ops"],"promise":"Road incidents and how many people live around each, every morning.","why":"Incidents in dense areas affect more people. Ranking them by people affected helps decide where to send crews first.","uses":["A traffic management center","A municipality","An emergency services planner"],"gets":["An email","A map"],"min":30},"gov_hospital_gaps":{"p":"government","ind":["Public sector","Healthcare"],"goals":["sites","data"],"promise":"Neighbourhoods with no hospital within 5 km, most populated first.","why":"Health planning needs to see where people live far from care. This flow shows the gaps block by block.","uses":["A health ministry","A hospital group planning branches","A city planning department"],"gets":["A map","An email"],"min":480},"gov_school_capacity":{"p":"government","ind":["Public sector","Education"],"goals":["data"],"promise":"Children per school in every block of the city, the most crowded first.","why":"Schools fill up where families move. This flow shows where the next school is needed.","uses":["An education department","A private school group","A city planner"],"gets":["A table in a sheet","A map"],"min":480},"gov_heat_advisory":{"p":"government","ind":["Public sector"],"goals":["ops"],"promise":"A public heat advisory drafted when it passes 45 degrees.","why":"Heat advisories save lives when they go out early. The draft is ready for communications before the heat arrives.","uses":["A civil defense team","A municipality","A health authority"],"gets":["An email with the advisory","A Slack post"],"min":30},"gov_roadworks_residents":{"p":"government","ind":["Public sector"],"goals":["ops"],"promise":"New roadworks this week and the residents affected.","why":"Residents complain when roadworks surprise them. Knowing who is affected lets the city inform them first.","uses":["A roads authority","A municipality","A utilities company"],"gets":["An email","A map"],"min":60},"gov_new_businesses":{"p":"government","ind":["Public sector"],"goals":["data"],"promise":"New businesses in the municipality by kind, every month.","why":"Economic development teams need to see where businesses open. This flow gives a monthly picture.","uses":["An economic development office","A chamber of commerce","A licensing department"],"gets":["A monthly note","A map"],"min":240},"gov_citizen_chat":{"p":"government","ind":["Public sector","Healthcare"],"goals":["chat"],"promise":"A chat that finds residents the nearest open pharmacy, clinic or hospital.","why":"Residents call hotlines to find a pharmacy at night. The chat answers instantly in their language.","uses":["A municipality website","A health authority app","A tourism board"],"gets":["Answers in the chat"],"min":3,"runs":300},"gov_coast_watch":{"p":"government","ind":["Public sector","Logistics"],"goals":["ops"],"promise":"Ships stopped off the coast that entered the area, every hour.","why":"Coast teams need to know when a vessel stops where it should not. This flow watches the area all day.","uses":["A coast guard","A port authority","An environmental agency"],"gets":["An email","A map"],"min":2},"gov_project_monitor":{"p":"government","ind":["Public sector","Real estate"],"goals":["ops"],"promise":"A monthly satellite picture of each public project, with the weather.","why":"Project offices oversee many sites. Pictures from above show progress on all of them every month.","uses":["A projects office","A housing authority","An infrastructure fund"],"gets":["An email with pictures","A map"],"min":120},"gov_flood_points":{"p":"government","ind":["Public sector"],"goals":["ops"],"promise":"Heavy rain coming at flood-prone points, to the field teams on WhatsApp.","why":"Underpasses flood in heavy rain. Field teams that are warned early close roads and clear drains in time.","uses":["A municipality","A civil defense team","A roads authority"],"gets":["A WhatsApp to field teams","An email","A map"],"min":20},"gov_city_safety_weekly":{"p":"government","ind":["Public sector"],"goals":["ops"],"promise":"A weekly city safety report: incidents, people affected, hotspots investigated, actions.","why":"Leadership needs one page, not raw data. Every Sunday the report arrives with the hotspots, who they affect and what to do next week.","uses":["A municipality leadership team","A traffic authority","A civil defense planning unit"],"gets":["A one-page report by email","A Slack post","A map of hotspots"],"min":300},"gov_cooling_centres":{"p":"government","ind":["Public sector","Health"],"goals":["sites"],"promise":"Public buildings ranked by the seniors around them, as cooling centres.","why":"Heat waves hit the old hardest. Cooling centres near them save lives.","uses":["A civil protection office","A city health department","A Red Crescent branch"],"gets":["An email with the list","A map of the results"],"min":120,"runs":1},"gov_pharmacy_night_cover":{"p":"government","ind":["Public sector","Health"],"goals":["sites"],"promise":"Blocks with many people and few pharmacies, ranked.","why":"Night pharmacies must be within reach of everyone. The gaps show where to assign duty.","uses":["A city health department","A pharmacists\u2019 association","A ministry of health"],"gets":["An email"],"min":120,"runs":1},"gov_tourism_permits":{"p":"government","ind":["Public sector","Travel"],"goals":["data"],"promise":"New hotels, guest houses and rentals for the licensing team.","why":"Unregistered places to stay escape tax and safety checks. The new ones are listed each month.","uses":["A tourism authority","A municipal licensing office","A tax office"],"gets":["A Google Sheet"],"min":120,"runs":1},"gov_school_route_safety":{"p":"government","ind":["Public sector","Education"],"goals":["ops"],"promise":"Incidents near schools each morning, for the traffic police.","why":"Children walk to school past road works and accidents. Officers go where they are needed.","uses":["A traffic police department","A school district","A road safety programme"],"gets":["A WhatsApp message"],"min":20},"gov_market_inspections":{"p":"government","ind":["Public sector","Food and drink"],"goals":["ops"],"promise":"Food businesses to inspect, the lowest-rated first, with a focus.","why":"Inspectors cannot visit everyone. Low ratings point to where problems are likely.","uses":["A food safety authority","A municipal health office","A public health inspector"],"gets":["A Google Sheet"],"min":120,"runs":1},"gov_illegal_dumping":{"p":"government","ind":["Public sector","Environment"],"goals":["ops"],"promise":"Protected sites from space each month, with a visit check.","why":"Clearing and dumping happen far from roads. Pictures from above show them early.","uses":["An environment inspectorate","A river authority","A city parks department"],"gets":["An email"],"min":90,"runs":1},"gov_youth_programmes":{"p":"government","ind":["Public sector","Sports"],"goals":["sites"],"promise":"Blocks with many young people and few places for them.","why":"Young people with nowhere to go is a problem for the whole city. The gaps are ranked.","uses":["A youth ministry","A city sports department","A youth NGO"],"gets":["An email"],"min":180,"runs":1},"gov_storm_shelters":{"p":"government","ind":["Public sector"],"goals":["ops"],"promise":"Shelters to open and the people near them when a storm comes.","why":"Shelters near many people save the most. The plan is ready before the storm.","uses":["A disaster management office","A city emergency team","A Red Cross branch"],"gets":["An email"],"min":60,"runs":120},"gov_gritting_plan":{"p":"government","ind":["Public sector","Transport"],"goals":["ops"],"promise":"A gritting plan from the coldest nights ahead.","why":"Ice on the roads causes accidents within hours. Gritting before the freeze keeps the city moving.","uses":["A city roads department","A highways contractor","A transport authority"],"gets":["An email"],"min":30,"runs":30},"gov_hotel_inspection_routes":{"p":"government","ind":["Public sector","Hospitality"],"goals":["ops"],"promise":"Hotels to visit for fire safety, shared between inspectors in the best order.","why":"Inspectors lose hours driving between visits. Routes in the best order, shared fairly, mean more hotels checked each week with the same team.","uses":["A city fire safety office","A civil protection agency","A tourism licensing office"],"gets":["An email","A map"],"min":60,"runs":4},"gov_public_toilets":{"p":"government","ind":["Public sector"],"goals":["sites"],"promise":"Busy public places with the fewest public toilets nearby.","why":"Public toilets belong where people gather. The gaps are ranked for the budget.","uses":["A city works department","A tourism board","A sanitation NGO"],"gets":["An email with the list","A map of the results"],"min":120,"runs":1},"gov_charging_gaps":{"p":"government","ind":["Public sector","Energy"],"goals":["sites"],"promise":"The public car parks with the fewest chargers nearby, on a map.","why":"Drivers will switch to electric cars when they can charge where they park. The car parks with no charger close by are where new ones help most.","uses":["A city transport team","A regional climate office","A charging operator bidding for city sites"],"gets":["A map","An email"],"min":60,"runs":1},"gov_polling_stations":{"p":"government","ind":["Public sector"],"goals":["sites"],"promise":"Schools and community centres ranked by the adults around them.","why":"Polling stations should be close to voters. The busiest areas need the most.","uses":["An election commission","A city elections office","A civic NGO"],"gets":["An email with the list","A map of the results"],"min":120,"runs":1}}}
