Score every neighbourhood for a new branch

Every block of your city scored for a new supermarket, the 20 best on a map.

AdvancedMonthlyAI agent

Retail & franchise expansionRetailReal estate

Use this template

What it does

Every month: who lives in every block of your city, how many supermarkets serve them, people per shop worked out, the 20 most underserved spots checked by an AI agent (anchors and roads around each) and ranked by xMap AI on a map.

In one sentence: Monthly on the 1st at 08:00, in Toronto, count who lives around, count the supermarkets and grocery stores within 1 km of each, work out new fields, sort them by people_per_shop and keep the top 20, let the AI agent answer, score and rank them with xMap AI, then show them on a map and email the list to you.

Why it is useful

Expansion teams usually compare a handful of districts by gut feel. This flow looks at every block of the city, counts people and shops, and puts the best gaps on a map.

Who it is for

Retail & franchise expansion. Expansion, real estate and network planning teams deciding where the next store or franchise goes. Every use case for retail & franchise

Best use cases

  • A supermarket chain planning the next ten stores
  • A pharmacy group mapping underserved areas
  • A convenience franchise picking sites
  • A landlord pitching units to retailers

What each run gives you

  • A map coloured by score
  • An email of the 20 best spots

The time it saves

Monthly on the 1st at 08:00. Doing the same work by hand takes about 480 minutes each time; it runs about 1 time a month, so it saves about 8 hours a month (an estimate). It is advanced: 10 blocks and 2 tools.

The flow, block by block

  1. On the 1st of every monthTrigger · ScheduleStarts the flow on a timetable.
  2. My cityWhere · Area of interestSets where the flow looks: countries, cities or specific places, or areas you draw on a map.
  3. People in every block of the cityxMap data · DemographicsWho lives in an area: the number of residents, men and women, and nine age groups, from xMap’s population grid (hexagons of about 0.1 km², about 100 countries).
  4. Supermarkets around each blockxMap data · Nearby placesPlaces around a point from xMap’s own places database (300M+ places, refreshed every month): pick the types of place (more than 5,000, such as Restaurant, Cafe, Pharmacy, Hospital or Gas station, or a whole group of them) and how far to look.
  5. People per shopLogic · Calculated fieldAdds fields worked out from the others: a number, a text or a yes/no.
  6. Best 20 firstLogic · Sort and limitPuts the items in order, and can keep only the first ones: the 10 best rated, the 20 nearest, the highest fit scores.
  7. Check each spot with the AI agentxMap AI · AI agentAn AI agent: for each incoming message it thinks, uses the blocks you link to its Tools port (data, xMap AI, lookups, your tables, other flows, apps), remembers the conversation and writes an answer in {{reply}}.
  8. Anchors around itxMap data · Nearby placesA tool the AI agent uses when it needs itPlaces around a point from xMap’s own places database (300M+ places, refreshed every month): pick the types of place (more than 5,000, such as Restaurant, Cafe, Pharmacy, Hospital or Gas station, or a whole group of them) and how far to look.
  9. Road incidents around itxMap data · Traffic incidentsA tool the AI agent uses when it needs itRoad closures, roadworks and other incidents on online maps right now, with where they are.
  10. Rank the spots with xMap AIxMap AI · xMap LLMTell the AI what to do in plain words.
  11. Show them on a mapAction · Show on a mapShows the results as points on a map, with the area of interest.
  12. Email me the listAction · EmailSends one email per run with all the items, or one email per item.

Every block can be changed after you use the template: the city, the type of place, the score, where the results go.

Use it now

Answer a few questions, enter your work email, and it runs in your own account, kept running until you pause it. Use this template.

How to set it up

More for Retail & franchise expansion