Skip to Content
0
Jun 13, 2018 at 12:50 PM

SAP Chatbot

278 Views

hi,

here I have developed SAP chatbot to get List of PO Numbers.

SAP Chatbot Creation Steps.

1. I have written REST operation code in SAP HANA development workbench as shown bellow.

XSJS file code show bellow.

xshttpdest file code shown below

afterwards i have opened API.ai and i have created new Agent - PO.

and INTENT - POAVAIL to get List of PO numbers show bellow.

then i have given xsjs URL into fulfillment as shown bellow.

then after if i run the chatbot i'm getting output successfully as shown bellow.

then i'm trying to get Item details of Perticular PO number.

To do this , i have created one more INTENT-PODETAIL.

and i have created Parameter to get User entered Value number.

show bellow.

and if i run this i'm getting user entered value in Parameter Value field shown bellow.

but here i'm getting output as List of PO's only because i did't call the PO ITEM Service.

in order to call the PO ITEM SERVER i need to pass this Parameter value into XSJS file,

but here i'm unable to pass this value into XSJS please help me to sort out this problem.

how to get this value in XSJS file.

Attachments

chatbot.png (9.7 kB)
xsjs.png (50.2 kB)
xshttpdest.png (8.1 kB)
xsjs.png (78.6 kB)
dialogflow.png (31.6 kB)
dialogpo.png (56.0 kB)
dialogpoitem.png (58.5 kB)