Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Creating a Mashup using third party REST service

$
0
0

Hi Pradeep,

 

I have gone through this document.I understood the approach of calling the REST API through the ABSL code.

 

My scenario I am going to create a Custom BO with Two Text fields and one Action button to call this REST API.

 

One of the Text field is Input for the ChatBot and I will click on the Action button to get the response in the second text field.In this case I need to return the response to the second field.Does that field should be of any specific data type because the response would be of multiple lines like the screen shot below.Do I need to do some conversion to get the response text.

 

chatscreen.png

 

This is the API which am going to use to talk with that bot.

 

 

https://aiaas.pandorabots.com/talk/APP_ID/BOTNAME?user_key=USER_KEY&input=INPUT

 

When I test this API in the PandoraBot site am getting the responses like this.

 

APIcall.pngReq1.png

 

When I pass the User Key,APP_ID,Bot name and Input =Hello the bot returns the response as

 

"It's good to recover quickly from setbacks".

 

In the same manner I need to pass the inputs in custom screen and if i press the action button responses should come in another field.In the top I have explained my approach .Kindly let me know if I can do it in any other better way.

 

Thanks in advance.

 

Regards

Navin


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>