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!
Showing results for 
Search instead for 
Did you mean: 
This blog post is part of the SAP Conversational AI Tutorial Challenge 2021 and I would like to share my use case "Indian Online Shopping Assistant Bot" with you. Using this bot, I will assist online users to get them know how much cashback amount will they receive when they purchase products in online through this bot.

What is the use case about?


Myself, I am Anand, SAP Fiori Developer. Due to my own interest in AI, I have explored SAP CAI and created a few bots. Today, I would like to share a use case where I have used this AI technology to fulfill one of my own requirement.

While learning CAI by going through the tutorials provided by team, I've found it interesting and exciting. During this process, I have got acquainted with Telegram bots and cloud foundry. While learning React.Js, I have come across robots.txt file and learned about web scraping concept. After knowing that it is legal to do scraping of any website over internet, I would like to use all these concepts( SAP CAI + Node Js + Cloud Foundry + Telegram ) to create a bot which will help online shopping users to check additional cashback amount they may get while place an order.

Use Case: - Shopping Assistant

Customers want to check how much cashback amount that they might get receive if they place an order using this bot.


Indian Online Shopping Assistant bot helps users to identify the suprise cashback amount that they may receive if they place an order through this bot. By this way, customers know in advance how much amount that they are going to get as a cashback and they don't want to loose that.

Step-by-Step Guide:

  1. Using my P-ID , I have logged into SAP CAI and created a bot named 'Nestham'.

  2. Greetings, OnlineShopping and Fallback are the three skill sets that I have used majorly to interact with users.

  3. Backend logic is written in NodeJs and deployed the project in cloud foundry.

  4. As a webhook, I have consumed this logic during runtime to fetch the data based on user's input.

  5. I have added person as requirement in Greetings skillset to know about user name but this will not be required if you integrate this bot with Facebook or Telegram becaue it has access to read the username based on user's login information.

  6. When User choose(Amazon) one of the button to proceed below screen will appear.

  7. When user click on Yes button then it will request for url to proceed

  8. Online shopping skill got triggered and it gives a call to below webhook

  9. Response from API will be displayed on screen

  10. If user click on Yes, Restart button will be appeared to go back to home else it will prompt for a new url

  11. After done with thorough test testing, I have connected this bot with WebChat, Telegram and Facebook Messenger

  12. WebChat link:  IndianOnlineShopping

  13.  Click on SAP chatbot integrated at the bottom of the page to assist you with the shopping.

  14. In Telegram, bot is live and it is available with 'Indian Online Shopping Assistant' name

  15. However, I am a bit disappointed about the output after it has gone live on Telegram. UI looks weird when compared to chat preview in CAI, some messages got truncated  😞

  16. In facebook messenger, bot is available with the name 'Indian Online Shopping Assistant'. you can find with this name

  17. Though UI looks rich , webhooks are not functioning properly. May be I have not properly configured the webhook in my app  😞

  18. I would like to introduce you another bot which I have developed and working fine in Telegram is 'Amazon Cashback Calculator' bot . I have used Telegram UI and created this as a native bot.

  19. I would like to highlight a point before closing this tutorial, always keep in mind that UI design of a Bot depends on the platform you are going to deploy it. Because, some of the features shown in Chat Preview(simulation) option won't work when they have gone live.


  • I have taken a Non-SAP use case but using SAP CAI concept, I have designed this bot 🙂 . I hope you would like it.

  • I request CAI team to look into these UI compatibility issues of bots when integrating with telegram

Labels in this area