Journey to build the Vaccine Slot Finder Tool on Paytm

byjitendra7.singhLast Updated: August 24, 2022
Journey to build the Vaccine Slot Finder Tool on Paytm

Introduction

What started as a weekend project ended up becoming one of the most popular vaccination tool for millions of people in the country! This is behind the scenes story of how the Paytm Vaccine Finder tool came to life; it’s a story of what at the surface may seem to be an easy problem, takes a large, capable team and multiple iterations to make it work!

Some stats on the tool:

The Vaccine Finder tool has helped more than 15 million users from over 750 districts and 19,000+ PIN codes in the country by sending more than 1 billion vaccine availability alerts , enabling ~3 million vaccine slot booking on the Paytm app.

In the details that follow, I have tried sharing the story of how we built this tool.

How we started

Journey to build the Vaccine Slot Finder Tool on Paytm

Background:

It’s necessary to set the context first. The tool was ideated at a time when the Government had just launched the Co-WIN portal for vaccine bookings and almost everyone in the country wanted to get their vaccine shots as quickly as they could!

With a population of over 1.3 billion this was a task of massive proportions for the country and there was already a huge demand-supply mismatch for the vaccine doses. People had to desperately keep refreshing the Co-WIN portal to check when new slots opened. The slots opened erratically, were booked in a matter of a couple of minutes and it ended up becoming a game of fastest finger first!

There were a lot of tools which sprung up to serve this need: Telegram Channels, Twitter bots, Chrome extensions and sites which claimed to book slots for you (for a small fee!)

Ideation:

This all started during a casual mid-day twitter browsing on a Wednesday (blame WFH!). On Apr 28, Dr. RS Sharma (CEO, National Health Authority) tweeted announcing the launch of Public APIs to fetch real-time slot availability and encouraged third-party applications to integrate them and help spread awareness about the vaccination drive.

Reading this tweet I discussed with my manager almost immediately that we should do something on this initiative. After all, I was also struggling to book a vaccine slot for my family and understood the need very well and could see the immediate benefit millions of people would get from such a tool.

All I was told is to gather a team and start hashing out the idea of what we want the tool to be. Yes, that’s one of the many benefits of working in Paytm, there’s never been a decision paralysis!

With the alignment set, I started pinging folks I knew who’d be willing to work over a weekend for a side project and to my amusement, everyone I pinged was interested to be a part! With the team in place we started studying the Co-WIN APIs almost immediately.

Sadly, the initial APIs were behind an authorization layer and couldn’t be used publicly. We wrote to the folks at Co-WIN and to my surprise, the Government machinery worked round the clock on it (even during the weekend) and around Saturday evening on 30th April launched a public version of the APIs. This allowed anyone to hit the API to fetch real-time data on slot availability.

We started analysing the APIs around the evening, ideated and hashed out an MVP that had a meaningful value proposition for the end-user by the late night.


Questions we had while starting the project:

Before we went ahead and started working on the project in full steam, there were a couple of WHYs we thought to answer for ourselves and the team to have the right intentions and the idea of what we wanted to build.

I. Why should we do this?

This one was probably the easiest one to answer:

  • Social Cause:

Getting people vaccinated was our best bet to overcome this pandemic! In our role as the technology leaders in the country it was our duty if I may say to help our users and fellow citizens in the best way we can to overcome this pandemic.

I am glad to share that Paytm has always been at the forefront for helping the country for social causes: be it collecting donations for Flood victims in Kerala and Bihar or contributing to PM-CARES fund or serving meals to migrant workers during lockdown. Paytm had then also launched an Oxygen Donation drive few days back (and was able to get contributions of more than INR 100Mn+) and this tool would have been a useful addition in our efforts towards fighting COVID-19

Creating this utility was our next small bit in making sure that information about the vaccination drive is widely available to users from all sections and strata of society and we are able to help them with relevant info to get them vaccinated sooner.

This motivation was useful and meaningful enough to keep us motivated to burn the midnight oil for the next many days to create a “simple” tool to help our users.

“simple” because we wanted to solve a complex problem at our end to make it simpler for the users to find and book slots.

  • Business Sense:

NONE, we thought of or wanted. We never had any discussion on if it makes any business sense for us or how we can earn money on this.

Till date, we have not added any promotions/ adverts or any have made use of any user generated data from this tool and kept this openly available to all users of our app. This was our humble offering to do a very small bit in the fight against this pandemic.


II. Why is it better than the existing solutions:

I have been asked this question multiple times by many friends and colleagues in the days following the launch of this tool. Couple of reasons we thought of then:

  • Reach: Paytm has a wide user base (600+ Mn users!) spread across the country and with such a tool we might be able to help a much larger base and help in a widespread awareness for vaccination among our users.
  • Technological Barrier: Not many people are tech-savvy to be able to run bots/ utilities to find and book as and when new slots come. We wanted to bridge on this technology divide and make info about new slots accessible to anyone and everyone.
  • User Trust/ Data Privacy: A lot of bots/ tools which cropped up were (for good or bad) just data gathering dumps with no surety if they would ever work or if the user data was safe! With Paytm being already trusted by millions of users and us not requiring any details from the user (they were already in the Paytm app), ours was a much safer way for them to get vaccine related information.
  • Personalised Alerts: The Telegram / Twitter bots served only for a handful of major cities (around 160 at the time of writing this article) and they were sending generalised alerts for slot availability. Our tool allowed us to go much deeper into user specific personalisation: basis PIN Code, vaccine type, dose count etc., which effectively meant every alert we sent to the user was highly relevant and instantly actionable. This became more and more useful as the vaccination drive progressed.
  • Enable users to directly book on Paytm: We had an opportunity to improve on the overall vaccine booking experience for the users and wanted to finally build an integrated slot booking on our app (thankfully we were able to do so within a few weeks of launching the tool)

III. Can we handle scale?

Short Answer : Yes.
Long Answer: Yes, but we need to make the right architectural and design decisions in order to do so.! While designing the initial architecture, we designed the system with a target of 1 million users (we were happy to be proven wrong later!)

The tech folks did most of the magic here. We wanted the system to be cheap and scalable for us to allow us to run it for the many months to come until the vaccination drive finishes and be able to handle the scale this tool can potentially have. What we used is a combination of Mongo-DB and Lambda and created essentially a Stateless system to avoid storing/ processing too much data. Over the many weeks, we did multiple iterations to improve almost each and every aspect of the tool: the alerting logic, the UX, the frequency with which we sent out alerts, the customisation options and new functionalities to the tool.

IV. How quickly can we launch this?

Ideally we wanted to launch this as quickly as we could! This was an urgent requirement for millions of our users and launching this as fast as we possibly could was the need of the hour.

We set ourselves an insane timeline of 4 days to launch the first version of this tool, since we didn’t want it to delay our day work much or risk this project getting de-prioritised.


Here’s how we actually did it

What we started with is to find a use-case for the tool which was important enough for us to build for. In Product Manager’s terminology, the user-story for it read like this:
” As a user I want the tool to help me find and book vaccine slots as easily as possible!”

I. Creating a strong value proposition for our tool

To figure out value prop, I analysed the existing options in the market to find a use-case we can excel at: the Co-WIN website, Aarogya Setu app and the Telegram and Twitter bots. We tried finding use-cases which were unserved.

Problems with Co-WIN App :

  • Searching through the portal was really painful! When we launched they didn’t even have basic filters to sort through results ( like Age/ Vaccine Type/ Fee) and showed the complete non-filtered results for the PIN Code. This was a nightmare especially when you tried playing fastest fingers first fighting for the elusive 100 slots wanted by the millions in your district. We wanted our tool to allow for easy filtering of results and to show only relevant results for the user.
  • There was no mechanism on when new slots came up and most users kept on endlessly refreshing the portal in hope of finding new slots. This was a major pain point we wanted to solve for.

Problems with the Telegram/ Twitter bots:

  • As I mentioned earlier, these tools were not personalised. These tools sent alerts for all possible slot openings for a district: most users had requirement of only alerts for a specific criterion: basis Dose count (1/2), Vaccine Type (Covishield/ Covaxin), Fee Type (Free/Paid) or sometimes even just for a specific PIN Code. We wanted to support personalised alerting
  • They only covered a handful of districts : starting with just Bangalore when we launched this tool and expanding to around 400 odd by the time of writing this article! Clearly the majority of INDIA lived outside these major districts and our aim was to serve the entire Indian populace.

Establishing our value-prop:

  • The tool should allow users to search for slot availability basis pin code or district , age group, Vaccine and Dose type.
  • To only show vaccination centres which had slots available for the user’s criteria and to allow users to filter through the search results.
  • If slots are not available, to allow users to set availability alerts. We will keep on checking when new slots open up and alert the users in real-time when slots open up for their locality. Just to give a sense of the magnitude of supply-demand deficit, for a city like Delhi we have more than 1 Million users who wanted to be alerted for the elusive 300 odd vaccine slots which opened every day. This became the “Hero feature” of our product in the days to come.

Other considerations we had in mind:

  • To keep the tool similar to Co-WIN: Since a lot of users would be juggling between Co-WIN and our tool we wanted the tool to mimic the overall user flow of Co-WIN as closely as possible so that user’s don’t feel alienated while switching from one tool to another.
  • To ensure we can easily enable booking flow in future: We wanted our tool to enable direct vaccine bookings in the future (the government had already announced their plans to open the booking APIs for public) and hence took conscious design decisions to ensure we can accommodate the booking flow quickly when needed
  • Faster to build: Since we were chasing insane timelines and this tool was largely utilitarian and was to be used by different sections of the society, we kept the overall UI/UX decisions with these aspects in mind.

II. Launching an MVP Quickly

It was essential for us to launch an MVP quickly to validate our hypothesis if the market really had a need for such a tool and gather crucial user feedback. Since the APIs were launched over a weekend, it was not possible to get a designer aligned to get the UI of the app designed.

Thankfully in Paytm we have a standard design library (shout-out to Rahul and his team!) and we used that to our advantage. I opened Figma Design PODS, combined various existing UI elements based on our needs and created a workable UI flow. Also, since our focus was to not make the flow too different from the Co-WIN’s UI, it helped in making design decisions.

This is how our first cut (without any design inputs) looked like:

Journey to build the Vaccine Slot Finder Tool on Paytm

Journey to build the Vaccine Slot Finder Tool on Paytm

Journey to build the Vaccine Slot Finder Tool on Paytm

The broad UI thankfully to my satisfaction (and my developer’s happiness) has remained the same even after the many iterations.

In case you don’t know, I am also managing the Mini Apps Product and the benefits we offer to our merchants via this platform also helped us immensely in this tool! Few I can share here were:

  • To not have to worry about the UI we shipped with during launch since we could iterate on the UI pretty easily and not worry about releases due to it being a web-based framework
  • The most important benefit was instant adoption for our tool since we could launch this in all older versions of the Paytm app with the Mini Apps SDK (which effectively meant reaching almost 70-80% of the entire user base of Paytm instantly on launch!)
  • We were able to get user details like PIN Code/ Phone Number from the Native app and auto-fill that to add user delight

One other thing which helped us was the presence of Paytm Chats. (As they say most successful things happen because of being at the right place at the right time!)

Paytm had launched Chats a couple of months ago and having the Chat system enabled us to send real-time updates to millions of users at scale. We leveraged their architecture fully to design our alerting system around it.

With all this in place, we get on to work and built the MVP in the next 2 days: allowing users to search for vaccine slots, set availability alerts and get notified in real time when slots opened up for their locality.

Broad System Design:

We created a simple Front-end page which fetched data from Co-WIN’s APIs directly and displayed it in a clean way on our app. Users could find slots, filter through availability results and set availability alerts for specific locations, when slots became available they would get an alert on their Paytm app.

To enable the alerting flow, we created a single API to allow users to subscribe to alerts and periodically fetch new data from Co-WIN APIs at our backend for those locations and alert users on Paytm Chats when any new slot opens up.

III. First Launch:

With all these decisions in place, we worked round the clock and launched this tool internally on 2nd May (in under 48 hours!). We couldn’t make the app live for the entire Paytm user base initially due to rate limitations of Co-WIN APIs. We iterated and worked our way around that for the next few days and launched the tool officially on 6th May.

The response immediately after launch was phenomenal making all our efforts worthwhile! This is how the users trend looked like day over day:

Journey to build the Vaccine Slot Finder Tool on Paytm

We were adding thousands of new users to the tool every hour and people started sharing on social media how they benefited from these alerts and were able to book slots!

These messages (and many of the personal one’s on WhatsApp) literally helped boost the entire team’s motivation to keep on iterating and making this tool as useful as we could.

IV. Major Milestones:

While we did the first launch in under 5 days, it took us almost the next 2 months to perfect the tool. With each version we were improving specific aspects of the tool, be it adding new features, improving alerting speed or accuracy, adding more customisation options and working on user feedback and suggestions.

I have tried summarising the major versions we had for the tool:

  • Version 3 – Enabled Booking Flow: We finally got approval to enable vaccine booking directly on our app and enabled the booking flow on our app on 11th June.
    https://twitter.com/Paytm/status/1404375332354887680
  • Version 4,5,6,…n: During the course of the next many weeks, we iterated multiple times to improve our tool: adding new functionalities, supporting new vaccine types and even enabling users to download their International Travel Certificate. We even launched a (now viral) social media campaign to educate users

How to book your Vaccine Slot on Paytm

OK, I know, it’s time to wrap this up (although there is so-so much more to write on this..)

Thanks for reaching this far to the end. If want to try the tool for yourself you can still do so by visiting https://m.paytm.me/vaccineslotfinder

Let me conclude by sharing that this has been the single most satisfying project I have undertaken in my professional career. The ability to impact millions of people around me and see people getting benefitted from something I build is the utmost gratification for a Product Manager.

Journey to build the Vaccine Slot Finder Tool on Paytm

I would like to thank the whole team from engineering to design to marketing who came together and went out of their way to build this tool and make it a success! Back to drawing boards.

#GetShotGo!

You May Also Like