Pharmaceuticals · Nairobi, Kenya · Find new customers

The forty clinics that need a visit

Amani is a medical rep for a pharmaceutical company, covering four hundred clinics and pharmacies across Nairobi.

Listen to the story:

The challenge

She can see eight a day. So which eight? She goes back to the doctors she knows, and some clinics have not seen her since March. Meanwhile the busiest clinics in Kilimani have never heard her name.

How the flow works

With xMap Flows, Amani built Badger. Badger is an AI employee: a flow of 8 blocks.

  1. Every Sunday evening,

    Every Sunday evening (Schedule)

  2. Badger looks at every clinic and pharmacy in her area,

    Clinics and pharmacies (Nearby places)

  3. matches them with her visit log,

    Her visit log (Match with my table)

  4. counts the weeks since she was last there,

    Weeks since her last visit (Calculated field)

  5. asks Jev how much each one needs a visit,

    Who needs a visit? (Jev decision)

  6. keeps the top forty,

    Forty for the week (Sort and limit)

  7. plans the shortest drive,

    The shortest drive (Route planner)

  8. and puts the week in her calendar.

    Her week, booked (Google Calendar)

What it solves

The result

This week, Badger gave her forty visits. Twelve are busy clinics she had not seen since spring, and three are big pharmacies she had never walked into. Her driving fell by a third, and within two months her orders in Westlands doubled.

Amani used to visit the clinics she remembered. Now she visits the ones that need her.

40visits planned each week
12forgotten clinics back on
2xorders in Westlands

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 Sunday evening

    Schedule

    Starts the flow on a timetable.

  2. 2

    Clinics and pharmacies

    Nearby places

    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.

  3. 3

    Her visit log

    Match with my table

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

  4. 4

    Weeks since her last visit

    Calculated field

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

  5. 5

    Who needs a visit?

    Jev decision

    Asks TypeSafe’s Jev model one typed question about each place: yes or no, pick one of your options, or a score on your levels.

  6. 6

    Forty for the week

    Sort and limit

    Puts the items in order, and can keep only the first ones: the 10 best rated, the 20 nearest, the highest fit scores.

  7. 7

    The shortest drive

    Route planner

    Puts the places that reach it in the best order to visit them in a day, from a start you pick: one route, one for each rep (by a field such as owner), or shared out between a number of reps.

  8. 8

    Her week, booked

    Google Calendar

    Get organized and stay on schedule

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.