Unable to show image response that I am getting from an API in Virtual Agent
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 07:27 AM - edited 08-12-2024 07:30 AM
Hi, I am getting a map Image response from an API by passing the lon and lat, and I want to show the image response in virtual agent chatbot, is there any way that we can directly show the image using image bot response in virtual agent flow.
here is script I am getting from RestMessage :
try {
var r = new sn_ws.RESTMessageV2('x_snc_vexcel_ima_1.Get Static Map', 'Default GET');
r.setStringParameterNoEscape('lon', '13.47437607244808');
r.setStringParameterNoEscape('lat', '52.55795596809756');
var response = r.execute();
var responseBody = response.getBody();
var httpStatus = response.getStatusCode();
}
catch(ex) {
var message = ex.message;
}
0 REPLIES 0