Build a Chat Bot Interface Custom Widget in SAP An...
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!
In this tutorial, we'll learn how we can create a simple chatbot dialog in SAC Analytic app with a custom widget.
Chatbot Custom Control
I implemented the chatbot custom control with SAPUI5 components based on this blog.
What I need to do is to create an XML view with controller MyController and custom control fd.ui.Headline and implement that code in the custom widget WebComponent.
XMLView: myXmlView
Custom Control: fd.ui.Headline
Controller: MyController
In this controller, I performed the Ajax request to SAP Conversational AI endpoint. You can create that endpoint by following my blog here.
And finally create an SAC Analytic App, insert that custom widget and you are ready to go.