Creation of Joule skill using API
Share

1. Add destination(mostly via basis team)

2.Add Action 

Choose an API Source ( Depending on API )

PM_iiits_0-1782584108395.png

 

In my case my API was added into my System using /n/iwfnd/maint_serivce , So I have selected Odata  Destination , if it’s RAP API use the second one.

Now select the destination(Destination is just the system you have integrated)

PM_iiits_3-1782584364288.png

PM_iiits_4-1782584379186.png

PM_iiits_5-1782584464792.png

PM_iiits_1-1782584142572.png

Enter the resource path ( from /sap/opu****  in case of maint_service or RAP )

PM_iiits_2-1782584178463.png

then next and select/add all the entity which you wanted to use as action and PUBLISH/RELEASE 

You can test the action there as well.

Now let’s go to Create joule skill.

Go to lobby and Click on create button select joule agent and skill , Provide any contextual name 

PM_iiits_6-1782584473390.png

This type of Interface will be visible to you , Click on create again select joule skill , Give any name along with description 

PM_iiits_7-1782584651909.png

This type of interface will be displayed to you , now click on ADD(+) Button

PM_iiits_8-1782584772066.png

Then select Call Action and again click on Browse all Action 

search your action add it.  If your action is dependent on parameters such(Let’s say your api provides response based on certain values ypu passed

Tap here , In Parameters you can add your input skills.

PM_iiits_9-1782585002981.png

PM_iiits_10-1782585152213.png

Now Tap on your action and go to input parameters 

PM_iiits_13-1782585253708.png

Map it accordingly all the mandatory fields 

PM_iiits_12-1782585238068.png

Only this will be enough to call API

But as we wanted to display our result in chatbot itself 

Go To END and add output skills , Map it accordingly again but with result ( Because we need to display result )

PM_iiits_14-1782585416773.png

Now save and Test (Destination System),

You will be able to see result( Let me share you some sample result )

PM_iiits_15-1782586159704.png

You can see , Chat results only values select and mapped in output skills where as when you tapped on api call at right you will be able to see complete result.

 

FAQ- Prabhatm580@gmail.com

 

 

 

 

 

 

 

 

 

 

 

 1. Add destination(mostly via basis team)2.Add Action Choose an API Source ( Depending on API ) In my case my API was added into my System using /n/iwfnd/maint_serivce , So I have selected Odata  Destination , if it’s RAP API use the second one.Now select the destination(Destination is just the system you have integrated)Enter the resource path ( from /sap/opu****  in case of maint_service or RAP )then next and select/add all the entity which you wanted to use as action and PUBLISH/RELEASE You can test the action there as well.Now let’s go to Create joule skill.Go to lobby and Click on create button select joule agent and skill , Provide any contextual name This type of Interface will be visible to you , Click on create again select joule skill , Give any name along with description This type of interface will be displayed to you , now click on ADD(+) ButtonThen select Call Action and again click on Browse all Action search your action add it.  If your action is dependent on parameters such(Let’s say your api provides response based on certain values ypu passedTap here , In Parameters you can add your input skills.Now Tap on your action and go to input parameters Map it accordingly all the mandatory fields Only this will be enough to call APIBut as we wanted to display our result in chatbot itself Go To END and add output skills , Map it accordingly again but with result ( Because we need to display result )Now save and Test (Destination System),You will be able to see result( Let me share you some sample result )You can see , Chat results only values select and mapped in output skills where as when you tapped on api call at right you will be able to see complete result. FAQ- Prabhatm580@gmail.com           Read More Technology Blog Posts by SAP articles 

#SAPCHANNEL

By ali

Leave a Reply