An AI assistant for store locator questions: the nearest branch and its hours
A chat page that answers "where is your closest branch and is it open now?" from your own branch list, with a card and directions, in any language customers write in.
Part of the guide AI employees
An AI assistant for store locator questions answers the messages your branches get all day: where is the closest one to me, is it open on Sunday, does that branch have parking or a pharmacy counter. In xMap Flows it is a chat page built from three blocks, Chat, an AI agent and Reply, with your own branch list as the agent's source of truth. The customer types an address or a neighbourhood and gets the nearest branch, its hours and a card with directions.
This article is for retailers, banks, clinics, gyms and service networks with ten or more locations, whose customer service team answers the same "where and when" questions by hand. It covers how the assistant decides, how to keep its answers right, an example, and the traps to avoid.
Why a plain store locator page is not enough
A map with pins works when someone already knows the area. It does not answer "which of your branches near the airport opens earliest" or "I am at the train station, which one can I walk to", and it cannot reply in the customer's own words. A chat assistant reads the question, finds the place they mean, works out the nearest branches and answers with the facts from your list.
How the assistant is put together
- Chat starts the flow each time someone writes. Switch Chat page on and you get a link to share and a snippet to place on your website.
- AI agent reads the message. In its instructions you say who it is: you help customers find our nearest branch and answer about opening hours and services; you answer only from our branch list.
- A My data block, linked to the agent's Tools port, holds your branches: name, address, position, opening hours by day, phone and services. The agent reads it when a question needs it.
- Set the agent's Look things up in to your company files if you also have a policy document, for example holiday opening times, so it can answer from the passage it finds.
- Reply sends the answer back to the chat.
When the customer names a place, the agent looks it up and works out which branches are closest. With place cards on, the answer shows each branch as a small card with its name, distance, address, phone and a directions link, and a small map under it.
A worked example (made up)
Take an optician chain with 38 branches across Kuala Lumpur and the towns around it. Its customer service team spends much of each morning telling people which branch is open late. The chain uploads a CSV of its branches with a column per weekday and a column for services such as eye tests and contact lens fittings.
A customer writes: Saya di Bangsar, mana cawangan paling dekat yang buka hari Ahad? (I am in Bangsar, which is the nearest branch open on Sunday?) The agent looks up Bangsar, reads the branch table, keeps the branches with Sunday hours, and answers in Malay with the two closest, their Sunday hours and a card each. The next customer writes in English about eye tests near a shopping centre, and gets the branches that list eye tests.
Because the agent keeps each visitor's conversation, a follow-up such as and the second one, does it have parking? is understood without repeating where they are.
Keeping the answers safe
- Protection settings on the agent keep it to your topics, refuse attempts to change its instructions, and take personal data out of answers. Switching the chat page on sets the basic ones for you.
- A short scope in the instructions: what it answers, and what it hands to a person (complaints, orders, medical questions). Tell it to give the customer service number for anything else.
- Test cases in the Quality panel let you save questions such as nearest branch open after 8 pm near the central station with what a right answer must say, and run them all before each change.
Mistakes to avoid
- Letting it use outside place data for your own branches. Give the agent your table as its tool for branches, so it never answers with a closed or wrong address.
- Hours written as free text. "Mon-Fri 9-6, Sat half day" is hard to read reliably. One column per day, in 24-hour time, gives clean answers.
- No answer for no match. Tell the agent what to say when no branch is near, for example the nearest one anyway with its distance, and the delivery option if you have one.
- Forgetting to update it. A new branch that is not in the table does not exist for the assistant. Add it the day it opens.
Templates to start from
The branch finder and menu chat for your website template is set up for restaurant groups and is easy to change for any network. Chat about places near anyone shows the same pattern on live places data rather than your own list, and keep my store locator fresh helps you spot listings of yours that changed, so the table behind the assistant stays right.
Each conversation is listed under the flow's Conversations, so you can see what people really ask and add what is missing. For more on assistants that answer customers, see the AI employees guide and the retail and franchise page.
Questions
Can it go on our existing website?
Yes. The chat page has a snippet you paste into your site, and it takes your organization's colour.
Does it know if a branch is open right now?
It compares the time the customer writes with the hours in your table. If your table is wrong, the answer is wrong, so keep it current.
Can customers ask on WhatsApp instead?
Yes. Start the same agent from a WhatsApp message event instead of Chat, and Reply answers in the same WhatsApp conversation.
Does it remember customers?
It keeps the recent messages of each conversation for 30 days, so follow-ups make sense. You can see and clear conversations from the flow's menu.
Templates that do this
Read next
More on ai employees and automation · Every article · Templates