How To Integrate A SAP Conversational AI Chatbot With SAP GUI
How To Integrate A SAP Conversational AI Chatbot With SAP GUI
Technical Articles
Jayprakash Sharma
February 28, 2021 | 4 minute read
This blog post describes how to create a chatbot using SAP Conversational AI and integrate the
Like chatbot with SAP GUI. With this integration, users can harness the bene�ts of SAP
Conversational AI in the SAP GUI screen.
RSS Feed
I n t ro d u c t i o n
SAP Conversational AI is a bot-building platform that gives you the ability to build and deploy a
conversational agent in your application. It provides a web user interface that serves as a
platform to create, build, and test chatbots for your business and individual needs.
P ro b l e m D e s c r i p t i o n
The Bot Connector API gives you access to many messaging channels. However, bot integration
with SAP GUI cannot be done directly – it needs to be customized.
Yo u w i l l l e a r n
• How to create an FAQ chatbot.
• How to use a bot connector to do a Webchat integration.
• About the basic customization of the chat window.
• Integration of webchat in a SAP GUI screen.
P re re q u i s i t e s
• You have an SAP Conversational AI account
• You have access to an SAP development system (back end)
Implementation Guide
An FAQ bot retrieves answers to users’ questions from one or more documents (.csv �le) that
you upload. The document must include prede�ned pairs of questions and answers. This allows
your bot to map the user’s query to the best match and get an answer without interpreting the
question’s intent. For an overview of how to create an FAQ chatbot, see this short video.
H o w t o U s e We b c h a t c h a n n e l
• Switch to the Connect tab. All available channels appear under the User’s channels.
• Choose ‘+’ to create a new webchat channel.
• Con�gure details like color, button title, bot picture, user picture, and so on. If you wish, you
can restrict messages from users to 512 characters or less. For example, you may want to do
this if users tend to add a lot of details that obscure the intent of the request. Once done,
choose Create
• Add the following script to your web page to integrate the created Webchat channel.
• Link the created channel to available environments by selecting from the dropdown and then
clicking the link button.
Your Webchat channel is now ready to be integrated with SAP GUI or in fact in any web
application. But we will restrict ourselves to integrate with SAP GUI.
A BA P c o d e fo r c a l l i n g t h e c h a t b o t i n SA P G U I
• You can also create wrappers for the classes based on the customization required.
Re s u l t
After successful integration, you would be able to chat with the bot very similar to a chatbot on
any webpage. It is fast and helpful in assisting the users with their queries.
Conclu sion
This blog post should help you connect your bot with SAP GUI with customization in the chat
window. The same integration is possible with the SAP Conversational AI Web Client also.
Please feel free to contact us with any questions you may have.
Thanks for reading this blog post, hopefully, you enjoyed it.
Fo r m o re i n f o r m a t i o n a b o u t S A P C o n ve r s a t i o n a l A I :
Alert Moderator
Assigned Tags
Related Questions
Unable to see iRPA message at Chatbot's end amazon Alexa console
By Himanshu Chaubey Dec 01, 2020 By Ali Ahmad Jun 01, 2021
how to create service ticket in c4c via sap Conversational
AI chatbot?
By thej lava cv Aug 04, 2022
14 Comments
Bharat Bajaj
March 6, 2021 at 8:16 am
I never thought of this option, despite having the standard HTML class in SAP.
Like 1 | Share
Like 0 | Share
Srikanth kalakonda
April 28, 2021 at 3:30 am
Thanks Jayprakash.
I have another question on this GUI integration, we were able to successfully integrate both skilled and FAQ but the issue is
with authenaticated sceanrios. We are training some skills which needs to call gateway and update some data into ECC.
These sceanrios need to check if the user interfacting with BOT has required roles.
Currently i am using webchat integration option, what are the options to get the current loggged in user who is interacting
with BOT. Appreciate your help on this.
Like 0 | Share
Hi Srikanth,
You can use the latest authentication service, Single sign-on (SSO) for this purpose. Refer to this blog to
implement the same.
Like 0 | Share
shivani agrawal
September 28, 2021 at 11:21 am
Hello,
Can you tell me how to integrate azure based chatbot with sap GUI, I just have a html url for the chatbot, which i can
launch in browser, but want to call it within sap window, how this can be done? do I need similar message script from bot
developer? its not conversation AI bot, but azure one.
Thanks,
Shivani
Like 0 | Share
Like 0 | Share
Srinivasulu Ekambaram
November 19, 2021 at 8:02 am
Hi Jayprakash,
Good Blog. In this Blog you say we integrate CAI bot to GUI with WebChat option? Is this solution supports SSO?? If so,
can you guide us in right solution. SAP was saying SSO is possible with WebClient API not Webchat.
Like 0 | Share
Aocheng Yang
December 14, 2021 at 3:15 pm
One question, how did you make the HTML screen �ts the chat section so perfectly?
I also managed to make the chat work but only right bottom corner of the screen shows my tiny chat section and rest of
the screen is white.
Like 1 | Share
Like 1 | Share
Aocheng Yang
February 15, 2022 at 10:58 am
Like 1 | Share
Awesome!
Like 0 | Share
Sudhansu Maharana
March 8, 2022 at 2:54 pm
This is really a nice blog! Appreciated!
Would you please tell, how to integrate this CAI with SAP CRM webui Home page at right bottom corner?
Like 0 | Share
Thanks Jayprakash,
Can you please suggest something where our chatbot will be stick at right bottom and we can navigate from one tcode to
another and chatbot will also be available in each screen.
Regards
Naveen Jain
Like 0 | Share
Kalpataru Sahoo
July 25, 2022 at 2:16 pm
Is it OPEN-SOURCE
Like 0 | Share