SAP Conversational AI (WhatsApp Bot) Integration w...
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!
Welcome to my another blog, I hope blog title is self explanatory, Even if its not, after end of the blog you will get everything, Its quite sensitive topics almost everyone aware but there is some cool learning stuff also you will get in this blog. So let me tell you how its started, i was just exploring the live GIS for Coronavirus (Covid-19) update. Then started doing little reverse engineering to find an API to get all the data, it was Little tricky because i don't wanted to integrate with Static Github based csv. Finally ended up with creating an express js based application and integrated with WhatsApp through SAP Conversational AI.
For those who is not aware what is GIS (Geographic Information System), let me explain you bit.
A geographic information system (GIS) is a framework for gathering, managing, and analyzing data. Rooted in the science of geography, GIS integrates many types of data. It analyzes spatial location and organizes layers of information into visualizations using maps and 3D scenes. With this unique capability, GIS reveals deeper insights into data, such as patterns, relationships, and situations—helping users make smarter decisions
In this Blog i will show you how i did reverse engineer on Covid-19 Live Geographic Information System, then finally built rest API for finding the confirmed cases country wise and then made a Integration with SAP Conversational AI and Finally Integrating with WhatsApp. Pretty Simple isn't it.
** Earlier in my blogs i have discussed how to Integrate WhatsApp with SAP Conversational AI. So that part i am not going to cover, rather i am going to share the link of those blogs. Please refer to below blog, if you are not aware how to Integrate WhatsApp with SAP Conversational AI.
Lets get into action and our first action would be looking at the Technical Architecture.
Technical Architecture
By looking at Architecture many of you already must have drawn a picture in your mind, how this whole Integration will work, pretty straight forward, trick is to build a rest API which will accept input as a country and and give you the data you want.
Let's Break this whole Integration into smaller piece for better understanding.
Answer is pretty simple, the way we debug any UI Application by pressing F12 and see the Network log what APIs are getting called.
Actually it calls Multiple APIs to fetch different types of Data and I was looking for something where i can Pass Country as Input and get the confirmed cases.
The URL Was encoded and Pretty Complex, So i used Online URL Decoder to Decode it which i will understand
Much Clear, Lastly Postman did actual job to find the filter
Just to Play around with it, i tried with India and Japan, and voila it gives me the expected result
That's it, our main hurdle is done, we got our filter name "Country_Region"
Below is API URL to Find Confirm Cases of Coronavirus based on Country
Demo : I have recorded short Video to show you how it looks like. Watch and Enjoy.
**I hope everyone enjoyed this Blog, Please share your thought, questions as comment. I wish everyone's safety. Will see you in next Blog.
**N.B: You can use this for Integrating with any other Social Messenger Like Telegram, Facebook. In that cases Last step you don't have to perform just use standard connector of SAP Conversational AI. You can also have a look at other API if you want to build cool UI/Mobile based App.
thanks for the great article. Now I definitely want to dive into the GIS topic. I tried to find a list of other GIS dashboards, but couldn't find. Is there something like a repository/list of all public dashboards create on arcgis.com? (Googling for "inurl:www.arcgis.com/apps/" works somehow, but I think it doesn't find all dashboards hosted...)
Very nice Blog. Actually i am implementing this scenario but i am getting error on running node.js application on localhost. I am getting the following
Hello Please look at the express path, you have to mention proper path also. And i belive its a post call. you have to pass the payload also in this format {"country":"india"}
Iam facing the below issue during call Webhook API, Even all steps working fine and i created app with index.js with your sample code and deployed it to trial SCP.
I am trying to consume api directly from arcgis server using the json .but I am facing some issue.
can you share the chatbot for covid19 so I can fork it to explore .
Also, can you advise how to use arcgis Server rest element.,I need to update the intent with the name of the publish feature dataset e.g. pipeline , and then ask the user select which feature insdie the feature dataset and then select /or set the critical .like water pipeline or gas pipeline