Using TIBCO Cloud™ Integration-Develop(FLOGO)/TIBCO Flogo® Enterprise to send customized Email/SMS alerts for Co-Win Portal Vaccine Appointment Slots Availability
For the folks who are staying in India and are waiting to get inoculated for COVID-19 Vaccine know how much difficult it is to get the Vaccine Slot Appointment given the shortage of Vaccine Vials vs the enormous population of India, now that majority of the population (18+) is eligible for vaccination since 1st May 2021. It is similar to IRCTC Tatkal booking which used to get over within 1 min of ticket booking window opening time esp during Diwali times.
Now there are various apps/sites which send alerts for COVID-19 Vaccine Slot Appointment Availablity but the limitation with these alerts is that you can not filter information based on your needs. For eg. If I want alerts for available vaccine appointment slots for 18+ for only Dose 1 on a particular date. Also I want these alerts in realtime like every 1 min as even if there is a delay of 1 minute in getting this information, the slots are booked. These kind of filters can’t be added to external sites.
Thats where TIBCO Cloud Integration-Develop(FLOGO) application comes to the rescue. With FLOGO, you can filter results based on District, Age, Dose, Vaccine , etc and also set the polling frequency according to your choice for eg: Every 1 min, 5 mins, 10 mins, 30 mins, 1 hour, etc it will look for available slots and send you email as well as SMS.
Lets look at how this is implemented.
As shown above, there are 5 flows and 1 subflow in the app to get List of States, List of Districts by State ID, Appointment Availability by PIN Code, Appointment Availability by District ID and Appointment Availability by District ID, Min Age Limit, Dose. Thers is also a subflow to send Email and SMS configured as application property. Also you can see Appointment Availability by District flow and Appointment Availability by District by Age Dose Vaccine flow are triggered by ReceiveHTTPMessage and Timer trigger which is set to repeating for time interval of 1 min. User can change the time interval as per his need.
Implementation of Flow — Appointment Availability by District by Age Dose Vaccine
As seen above, Co-Win Public Appointment Availability API’s are called to fetch the vaccine appointment Availability. Then this data is filtered using array.forEach filtering and json.path filtering in Mapper Activity to filter records based on min_age_limit, available_capacity_dose1, available_capacity_dose2 based on different branching conditions and it returns records only if available_capacity>0
It will call the subflow to send email and SMS using TIBCO Flogo® Connector for Twilio as shown below.
The sample artifacts and steps on how to run the sample are located here