Skip to Content
Technical Articles
Author's profile photo ANAND KRISHNA JANKALA

Challenge Submission: Indian Online Shopping Assistant Bot

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?

Background:

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.

Solution:

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.

Note:

  • 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

 

Assigned Tags

      47 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Hi There,

      'Indian Online Shopping Assistant' Bot is working fine in Telegram. Please play around with it and leave your comments here. If you like the bot or this article, kindly share it with your friends and show your love and support πŸ™‚

      Note: please enter 'Hi' if you don't get any follow up message for your query.

      For Example:

      Expected

      Β 

      Actual Output:

      Follow-up message is not appearing in Telegram for some urls. So, please enter Hi in the input bar to go back to home screen. Except this glitch remaining functionality is working fine πŸ™‚

      Β 

      Thanks,

      Anand.

      Author's profile photo Test Test
      Test Test

      Very Good Sir. Really Sooper. Very Briefly Explained

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you πŸ™‚

      Author's profile photo ajai adi
      ajai adi

      good one and very useful information for AI learners. Looking for more use cases.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Sir. I will explore it and let you know πŸ™‚

      Author's profile photo HarikaSri Vyasam
      HarikaSri Vyasam

      Nice blog and very helpful . Thank you!

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Harika πŸ™‚

      Author's profile photo Avinash Kalamkar
      Avinash Kalamkar

      great work Anand, Looking forward for more updates on this!

       

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Avinash πŸ™‚

      Author's profile photo pavan akkinapally
      pavan akkinapally

      Good one Anand.

      Pavan

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you so much Pavan πŸ™‚

      Author's profile photo Hemalatha Meesala
      Hemalatha Meesala

      Nice blog Anand. Very helpful.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Hema πŸ™‚

      Author's profile photo Srinivas Sistu
      Srinivas Sistu

      Nice blog Anand...

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Srini πŸ™‚

      Author's profile photo Harikrishna Bellamkonda
      Harikrishna Bellamkonda

      This is a very useful blog for those who want to know about AI and I do not even know what AI is.

      Anand you did Great work and thank you providing us this thread because you prepared step by step with screen shots so easy to learn it.

      I am looking forward for more use cases in SAP CAI like this from you.Β 

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      SAP CAI provides a very good tutorials for us to learn from scratch and they are pretty much simple in understanding those. I will help you always if you have any doubts bro πŸ™‚

      Author's profile photo Paul PINARD
      Paul PINARD

      Thank you for sharing this great blog on the SAP Community. Good luck with the challenge!

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you very much for your comments Paul. It made my Day πŸ™‚

      Author's profile photo sandhya Mandepudi
      sandhya Mandepudi

      Good Work Anand

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Sandhya πŸ™‚

      Author's profile photo Bharadwaj Kamatam
      Bharadwaj Kamatam

      Good work Anand..

      Keep posting the good stuff like this. This is very much interesting to learn.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Bharadwaj πŸ™‚ and it's very interesting to build bots too πŸ˜‰

      Author's profile photo Sri Lakshmi Kolluru
      Sri Lakshmi Kolluru

      Good one Anand!! Keep up the good work.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Lakshmi πŸ™‚

      Author's profile photo Kashi Rao Yakatila
      Kashi Rao Yakatila

      Good one Anand. Inspire to explore more within SAP.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you dude πŸ™‚ Regularly, Lot of new things are rolling out from SAP. Keep watching SAP space πŸ™‚

      Author's profile photo Arun Reddy
      Arun Reddy

      Superb Work Anand. Nice and Simple Chatbot. Keep it up and Continue exploring new thing.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Arun πŸ™‚

      Author's profile photo Khaja Hussain
      Khaja Hussain

      Good topic Anand, Learned something new today:)

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you dude πŸ™‚

      Author's profile photo rashmi bhavani shankar
      rashmi bhavani shankar

      Proud of your hard work and dedication, Anand. Keep up with your contribution to SAP community

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Rashmi πŸ™‚ . I am looking forward to contribute more to SAP world .

      Author's profile photo Nick Holm
      Nick Holm

      Nice project Anand, well done.

      Author's profile photo ANAND KRISHNA JANKALA
      ANAND KRISHNA JANKALA
      Blog Post Author

      Thank you Nick πŸ™‚

      Author's profile photo emaxbatch86 emaxbatch86
      emaxbatch86 emaxbatch86

      Hi Anand,

      Excellent work.

      Thank you

      Sridhar

      Author's profile photo Anand Jankala
      Anand Jankala

      Thank you Sridhar πŸ™‚

      Author's profile photo Arunodaya Biswas
      Arunodaya Biswas

      Nice Application

      Author's profile photo Anand Jankala
      Anand Jankala

      Thank you Arun πŸ™‚

      Author's profile photo jasmine mohammad
      jasmine mohammad

      Its really Amazing Anand. Keep it up

      Author's profile photo Anand Jankala
      Anand Jankala

      Thank you Jasmine πŸ™‚

      Author's profile photo Gowri Malyala
      Gowri Malyala

      Good Work Anand. Nice to see the bot functionality. Thanks

      Author's profile photo Anand Jankala
      Anand Jankala

      Thank you Gowri πŸ™‚

      Author's profile photo Aniruddha Chatterjee
      Aniruddha Chatterjee

      This is really a very interesting piece of work, Anand. Great job done!

      Author's profile photo Anand Jankala
      Anand Jankala

      Thank you Bhayya πŸ™‚

      Author's profile photo Aniruddha Chatterjee
      Aniruddha Chatterjee

      You are very much welcome! πŸ™‚

      Author's profile photo Navya Sri
      Navya Sri

      It was more infromative and i was motivated