Pharmacy · Marrakesh, Morocco · Alerts & monitoring

Full shelves before the heatwave

Hassan owns a pharmacy in Gueliz, the new town of Marrakesh.

Listen to the story:

The challenge

When a heatwave hits, everyone wants the same things at once: rehydration salts, sun cream, cooling gel. His wholesaler needs three days. Last July he ran out on day two of forty-five degrees, and sent forty customers across the street.

How the flow works

With xMap Flows, Hassan built Steward. Steward is an AI employee: a flow of 6 blocks.

  1. Every evening at nine,

    Every evening at 9 (Schedule)

  2. Steward reads the week's forecast for Marrakesh,

    The week ahead (Weather forecast)

  3. looks for days above forty-two degrees,

    Days over 42 degrees (Filter)

  4. checks his stock list for what is running low,

    What is on the shelf (Match with my table)

  5. works out how much he will need,

    How much to order (Calculated field)

  6. and emails the order to his wholesaler.

    Order to the wholesaler (Gmail)

What it solves

The result

On Sunday night, Steward saw forty-four degrees coming on Thursday. The order went out four days early: six hundred sachets of rehydration salts, two hundred tubes of sun cream. When the heat came, his shelves were full and the queue was at his door.

Hassan no longer reacts to the heat. He is ready for it.

4 daysof warning before the heat
600sachets ordered in time
0customers sent next door

An illustrative scenario: the figures are modelled to show what the flow produces, not a customer's results.

The flow, block by block

  1. 1

    Every evening at 9

    Schedule

    Starts the flow on a timetable.

  2. 2

    The week ahead

    Weather forecast

    The weather forecast (Open-Meteo, from national weather services) for up to 16 days: temperature, rain, wind and UV.

  3. 3

    Days over 42 degrees

    Filter

    Keeps only the items that match a rule.

  4. 4

    What is on the shelf

    Match with my table

    Looks each incoming item up in one of your tables or saved lists (My data), for example your customers.

  5. 5

    How much to order

    Calculated field

    Adds fields worked out from the others: a number, a text or a yes/no.

  6. 6

    Order to the wholesaler

    Gmail

    Email service by Google

Templates to build it

Ready-made flows with the same blocks. Open one, change the city and the kind of place, and run it.

Industries

Learn how it works

More stories from Healthcare

All 137 stories →

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.