Citizen services chat: nearest pharmacy or clinic
A chat that finds residents the nearest open pharmacy, clinic or hospital.
What it does
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.
In one sentence: When someone writes in its chat, let the AI agent answer, then reply to the sender.
Why it is useful
Residents call hotlines to find a pharmacy at night. The chat answers instantly in their language.
Who it is for
Government & smart cities. Municipalities, agencies and city teams planning services and keeping residents safe and informed. Every use case for government & cities
Best use cases
- A municipality website
- A health authority app
- A tourism board
What each run gives you
- Answers in the chat
The time it saves
Whenever someone writes in its chat. Doing the same work by hand takes about 3 minutes each time, so it saves about 15 hours a month (an estimate). It is easy: 3 blocks and 1 tool.
The flow, block by block
- ChatTrigger · ChatStarts the flow when someone writes in its chat: the chat window in the editor, or a chat page you can share or put on your website.
- Citizen servicesxMap 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}}.
- Services nearbyxMap 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.
- ReplyAction · ReplyAnswers whoever started the flow, on the same channel: the app or system that called its Webhook / API gets the answer back, and a message from Slack, WhatsApp, Telegram, Teams, SMS, Outlook or Discord gets a reply in the same chat, through the account of the block that received it.
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
- AI agents with tools and memory: An agent that answers questions using your blocks as tools.
- Answer on WhatsApp, Telegram or Slack: An assistant that replies in the same chat.
- A chat page for your flow: Let anyone talk to a flow on a page or on your website.
- The xMap Flows browser extension: what is around this business: On a company’s website or a place on a map, one click shows its market and the AI employees to hire for it.
- AI agent: An AI that decides which tools to use to answer or complete a task.
- How to build a WhatsApp assistant that answers about places: Customers ask on WhatsApp; an AI agent searches and replies.
- How to run your AI employees from WhatsApp: Ask, build, run and pause flows from your phone, by message, voice note or call.
More for Government & smart cities
- Weekly city safety report: A weekly city safety report: incidents, people affected, hotspots investigated, actions.
- Neighbourhoods far from a hospital: Neighbourhoods with no hospital within 5 km, most populated first.
- Children per school, block by block: Children per school in every block of the city, the most crowded first.
- Incidents and the people they affect: Road incidents and how many people live around each, every morning.
- New roadworks and the residents affected: New roadworks this week and the residents affected.
- New businesses in the municipality: New businesses in the municipality by kind, every month.