Technical Articles
Connecting SAP Conversational AI with SAP Business One
Introduction:
I’m a Sales and Technical SAP Business One Consultant for around 15th years, in my experience users need to find new ways to realize their daily work.
In this blog, I’ll explain how to connect an intelligent chatbot of SAP Conversational AI with SAP Business One using Service Layer (Extensibility topic).
If you need more information about SAP Business One Service Layer, please visit: https://help.sap.com/doc/6ab840ef2e8140f3af9eeb7d8fef9f06/10.0/en-US/Working_with_SAP_Business_One_Service_Layer.pdf
For example, the salesperson needs to query to SAP Business One the balance of specific Business Partners, an easy way to do this is to chat whit intelligent chatbots.
If you are an SAP Business One Consultant, maybe you have a lot of situations where chatbots will provide to users a better experience using the ERP, and simplify tasks, and way of work.
For this blog, I assume that you know how to work with intelligent chatbots of SAP Conversational AI.
The idea of this blog is to help you to do easy and quick integration between your chatbot and your ERP, in this case, SAP Conversational AI and SAP Business One.
If you want to learn more about this topic, I recommend reading this blog:https://blogs.sap.com/2019/01/21/sap-smb-executive-assistant-sample-bot-powered-by-sap-conversational-ai/
Pre-requisites:
- A public domain name, for example, https://mydomain.com
- Connection from the Internet to your SAP Business One Service Layer
- SSL certificate is mandatory
Author: Erick Gómez
Additionally, you will need:
- SAP Conversational AI account, maybe you can use the free edition
- SAP Business One “CompanyName”, UserName” and “Password”
- I recommend using Postman for testing your POST/GET/PATCH/DELETE methods
Now you are ready, hands-On:
- Create a chatbot, If you don’t know how, please go to https://open.sap.com/courses/cai1
- In the “Actions” section of skill builder, choose “Consume API Service”
Autor: Erick Gómez
Author: Erick Gómez
In the body section you must use JSON syntax, for example:
{
“CompnayName”: “YourDB”,
“UserName”: “YourUser”,
“Password”: “YourPass”
}
Please, take special attention to the response from API Service, you’ll need it after, in my next blog I’ll explain how to get, store and use this response for other “Actions”.
Conclusion:
I invite to you to test this integration between SAP Business One and SAP Conversational AI using Service Layer, if you have any related questions I’ll be happy to share the knowledge.
With this step-by-step, you now can connect your chatbot with SAP Business One easily. using low code or no code you don’t need special or advanced Developer skills.
I hope that this short guide helps you in your Intelligent Enterprise journey, and offers you and your users an more easy way to do your daily work.
Don’t forget to comment, like, and share this blog with colleagues and friends.
I promise to share more information about SAP Business One and Service Layer soon, follow me and stay tuned.
Best regards,
Erick Gómez
Hi Erik,
Thank you very much for this beautiful blog.
I am having one doubt, Can we trigger some js/python function in CAI?
For eg:
What should I do if I need to trigger a screenshot of the current screen from CAI or to detect the location via CAI?
Thank you in advance.
Regards
FItha
Hi Fitha Zainab Zakkeer nice to meet you!
I do not have that information, however, the following must be taken into account:
1) SAP CAI depends largely on the channel we use, be it Telegram, Microsoft Teams, Alexa, etc.
This means that it is important that the channel supports the functionality
2) SAP CAI has its backend, in which you can modify the code
3) SAP CAI can call an external API, for example I have used it to activate SAP Build Process Automation
Anyway, I suggest to investigate more in the SAP Community Network, I hope I have been of help 🙂
Regards,
Erick