SAP Conversational AI on TM charge calculation
Actually sap chatbot is not a new topic. There are already some blogs and demo exist. The motivation to build this prototype is that SAP has own chatbot framework(Recast.ai) now. I put the Recast.ai on top of TM charge calculation scenario which looks like matching the features of chatbot. The tool could help user figure out some common charge configuration issues which predefined.
Take the forwarding order determine forwarding agreement as example.
When forwarding order determine agreement failed, user would see the message as below.
But we don’t know why the agreement determine failed. Usually need to open multiple screen(FWA,FWO,Sales Org,Charge profile…..) and analysis the issues.
Now we can chat with the bot as below.
Now we know the target agreement don’t released for using.
SAP TM system – OData
The TM is on-premise system which can’t be accessed by internet directly. The idea here is creating CDS view and generated OData accordingly. Use HANA cloud connector open the OData to internet in SAP cloud platform.
CDS – OData publish annotation
OData – Active gateway service
HCC – Open the OData to SCP
HANA XS service
Now we need one service to consume the TM OData and provide response to SAP Recast.AI.
The Recast.ai support four languages as below.
I choose XSJS on SAP HANA Extended Application Services.
- Get the FWO and FWA ID from Recast.ai request body.
- Consume TM OData to get FWO and FWA info
- Check configuration and generate response to Recast.ai.
Create the intent to get FWO and FWA ID from native language.
Call the XSJS service in Recast.ai action by webhook
The bot connector support the users channels as below.
Example in Skype
Now the SAP Recast.ai(SAP Conversational AI) is free for registering. https://recast.ai