A fast charger found before the van slows down
Hannah leads a fleet of electric delivery vans for a big grocery delivery company in San Francisco.
Listen to the story:
The challenge
Her drivers run low on charge mid shift and call dispatch: where is a working fast charger near me? Dispatch looks it up on three apps while the van waits by the curb. That is twenty calls a day, and each one costs a delivery window.
How the flow works
With xMap Flows, Hannah built Spark. Spark is an AI employee: a flow of 5 blocks.
When a driver writes where they are in the team's Slack,
A driver asks in Slack (Slack event)
Spark reads the question,
Answers like dispatch (AI agent)
finds the working fast chargers closest to the van,
Fast chargers nearby (EV charging)
finds somewhere for a coffee while it charges,
Coffee while it charges (Nearby places)
and answers in the thread within seconds.
Answer in the thread (Reply)
What it solves
- Vans low on charge: solved by EV charging
- Twenty calls a day: solved by Slack event and AI agent and Reply
- Delivery windows missed: solved by EV charging and Reply
The result
At two o’clock a driver in the Mission writes that he has twelve percent left. Spark answers in eight seconds with a fast charger four blocks away and a cafe next door. Dispatch takes no charging calls now, and the vans keep their windows.
Hannah's drivers stopped calling for directions. They just ask, and go.
An illustrative scenario: the figures are modelled to show what the flow produces, not a customer's results.
The flow, block by block
- 1
A driver asks in Slack
Starts the flow when something happens in Slack: a new record, a message, a change.
- 2
Answers like dispatch
An 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
Fast chargers nearby
Public charging stations for electric vehicles from Open Charge Map, the open, worldwide register: around each incoming place with counts (stations, charge points, fast stations, the highest power, the nearest and the main operators), or the stations themselves around places, in the Area of interest or around a point, each with its operator, connectors, power, status and address.
- 4
Coffee while it charges
Places 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
Answer in the thread
Answers 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.
Templates to build it
Ready-made flows with the same blocks. Open one, change the city and the kind of place, and run it.
- Chat about places near anyoneA chat for your customers that finds places near anyone, live.
- WhatsApp assistant with live placesAn AI agent that answers your WhatsApp messages with live places.
- Branch finder and menu chat for your websiteA chat on your website that finds the customer's nearest branch, live.
- Citizen services chat: nearest pharmacy or clinicA chat that finds residents the nearest open pharmacy, clinic or hospital.
- Legal intake assistant for my websiteAn intake assistant that sorts enquiries and names the nearest office.
- Where to get documents certified: a chat for clientsA chat that finds the nearest notary, translator or courier for a client’s papers.
Industries
Learn how it works
- How to build a WhatsApp assistant that answers about placesCustomers ask on WhatsApp; an AI agent searches and replies.
- AI agentAn AI that decides which tools to use to answer or complete a task.
- Location intelligenceUsing where things are, and what is around them, to make business decisions.
- AI agents with tools and memoryAn agent that answers questions using your blocks as tools.
- Answer on WhatsApp, Telegram or SlackAn assistant that replies in the same chat.
- Compare sites side by sideTwo or three spots measured the same way, one column each, the best of every row marked and the best site and why.
More stories from Transport & mobility
- Drivers in place before the storm breaksLinh leads driver operations at one of Hanoi's biggest motorbike taxi services.
- Bikes at every dock on the hottest dayLars runs operations for a big city bike share in Copenhagen.
- A garage that is really there when a car breaks downSalim runs the fleet at one of Oman's biggest car rental companies, based in Muscat.
- Eight cabs that hear about a closure firstRahul owns eight cabs that do airport runs in Bengaluru. He drives one of them himself.
Build this flow on your own city
Run a live search on the home page without an account, or let Ask xMap build the flow from one sentence.