try {
if (context.session.BotUserSession.searchType==“D”){
print(getPrompt(“ENTPlayNoClaimFound3030_ini_1_en_us”));
}
} catch(e){
}
I created one entity to get the input I added prompts in content variables and I’m using JavaScript to get that input in user prompt I written that above code but while testing the bot the I’m getting this error “” this colons i checked in debug logs I didn’t found any failed script node and entities why I’m getting this error like this “” it means the input not displaying what i written in the JavaScript.
Hi @sukanyadharmarajula9,
Please use the below code snipet and confirm if this is working.
try {
if (context.session.BotUserSession.searchType === ‘D’) {
print(getPrompt(‘ENTPlayNoClaimFound3030_ini_1_en_us’));
}
} catch (e) {
}
Thank you,
Srujan Madderla
Kore.ai Community
Hi @srujan.madderla ,
I tried what u said but its not working I attached the image please review that and I
confirmed getPrompt is function is there in BOT Functions
Error message : User prompt parsing failed
{“errors”:[{“msg”:“Invalid or unexpected token”,“code”:400,“resolvedData”:{“debugLogs”:[{“botId”:…
Hi @sukanyadharmarajula9 ,
Please share the bot access to koresupport@kore.com as a developer and mention the bot name here.
We will analyse the details and revert back to you with a progressive update.
Thank you,
Srujan Madderla
Kore.ai Community Team