Citizen services chat: nearest pharmacy or clinic

A chat that finds residents the nearest open pharmacy, clinic or hospital.

EasyWhen it happensAI agent

Government & smart citiesPublic sectorHealthcare

Use this template

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

  1. 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.
  2. 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}}.
  3. 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.
  4. 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

More for Government & smart cities