Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
sudipghosh
Active Contributor
 

Hello Everyone,

When the world is fighting with Coronavirus (Covid-19) there are many software professionals trying to add value to help the world by creating lots of innovative applications and solutions. But most of them are falling into mainly two categories 1. Tracking the Confirm Cases, Recovery and Death cases LocationWise 2. AI-Driven Covid-19 Self Assessment Application. In my last blog, I have shown you how to track coronavirus confirm cases using SAP Conversational AI-Based WhatsApp Bot. Today I am going to discuss second use cases 'How you can create AI-Driven Covid-19 Self Assessment Bot using SAP Conversational AI'.

The motivation behind this


Well, its a fact that considering the current situation everywhere, it's very difficult for everyone to go to the hospital and get tested for Covid-19 as there are many risk factors come and also it can create other mess and who really need to test they will face many problems and that why many Big Hospital is coming with such kind of AI-Driven Self-Assessment Assistant which can tell your risk level of being infected by Covid-19. I was playing with such kind of Assitant developed by Fortis and Appollo. It definitely helps people to know the risk level and avoid unnecessary traffic in the hospital and at the same time definitely, if the hospital wants they can guess or predict the number of infected people by analyzing the answers (Travel History, Been in Contact with Covid-19 Patients) given by us. So I was playing with such kind of self-assessment assistant  And thought to design a similar kind of Assitant using SAP Conversational AI.

 

Business Story




John and Kim are sales executive, recently returned from some business trip and they are really worried because they have been through Covid-19 Infected Countries, At the other side Kim (27 yrs age) is an Accountant who doesn't have any travel history, also she doesn't have any symptoms but as panic is created around her, she wanted to go the hospital and get tested for Covid-19 which could create an unnecessary mess and create a delay for those who actually need to be tested. In order to avoid this kind of situation in her locality Hospital, A implemented SAP Conversational AI-based Covid-19 Self Assessment Application which is available via Social Messaging APP like WhatsApp and Telegram. As soon as Kim gets to know about this Kim used this and got to know the risk factor of being infected for Covid-19 which not only saves an unnecessary mess also real patients who really need to test get a chance.

Covid-19 Specification/Checklist for Self-Assessment


In order to build such kind of Assistant, we need an Algorithm or Specification or Checklist which will be based. I found this Specification and Checklist defined by the Health and Human Service of the Victorian State Government. Below is how it looks like.



 

Designing the Bot


Whole Conversational AI bot is available here If you want you can fork and start using it.

 



For each check, I have built skill, for example, close contact skill will ensure that 'Have you been in close contact with any covid-19 confirm cases or not' In each skill, we have assessment flag which stores user's decision and based on the user's decision it takes next step. Below is the fixed-value entity I have created for defining the Assessment flag memory variable. Currently this memory variable only accepts Yes and No.



Below is how Close Contact Skills look like



In this case, Below is a variable that will have the user's decision.
_memory.closecontact.raw



Above is the requirement for fulfilling the skills and for better user interaction I have defined as a quick reply.  Now based on the user's Reply Particular Action will be executed. In this case, two type answers are accepted from the user, either Yes or No.



In the case of Yes, it will advise for self-quarantine as per algorithm/specification and redirect to covid19 Symptoms skill which will further advise connecting with the medical department in case any symptoms show up.



In case if someone not been in close contact with any covid-19 Confirm cases, it will redirect to further ask as per Algorithm.



You Need to maintain similar logic for all the skills except the last one. As per Algorithm or Specification, the last ask is 'Are you having a fever with any respiratory problems or not' 

The Action of these skills is as below..



 



P.S: You can add any customizations like collecting the user's name, address and store it and also based on risk level a particular action like notifying certain Authority for betterment by making API Call. In this Blog I Didn't do because I wanted to make it very simple. If you are really new to SAP Conversational AI-based Chatbot development and don't know how to make API calls from SAP CAI using WebHook and API Consume Service Please have a look at great documentation.

 

Integrating SAP CAI bot with Social Messaging App Telegram


Well if you want to expose your SAP Conversational AI-based Bot through Telegram, The Integration is very straight forward through SAP CAI based Standard Channel. Just click on Connect Tab and Select the channel and follow step by step tutorial it suggests.





 

Demo




 

Please feel free to ask any doubts if you have in a comment, I hope you liked this blog. Happy Quarantine, Stay healthy, stay safe and do this five to stop the spread of Coronavirus.

1. HANDS Wash them often



2. ELBOW Cough into it



3. FACE Don't touch it



4. SPACE Keep a safe distance



5. HOME Stay if you can


 

Thanks and Regards,

Sudip

 

N.B This Blog is mainly for Educational Purpose, Specification and Checklist for this bot is totally defined by the Health and Human Service of Victorian State Government. I am not responsible for any misuse of this, the purpose of this blog is how we can use SAP Conversational AI to build such kind of self-assessment application, Specification of such kind of application is should be approved by the health department of government for every country.
8 Comments
Labels in this area