Webhook channel giving incorrect response after language switch

Hi Team,

We have multilingual bot with 2 languages enabled. Initially launches in default language(english). we have setup language switch logic to per message. If user gives message in different language(i.e non English). Bot gives standard prompt, asking user to switch to new language. If user say’s yes, Then bot produces 2nd standard response “Now you are conversing in updated language”. Then it goes to fallback. Here in fallback we have a message node.

Therefore, technically after user allows language switch. Webhook should give 2 list of messages in response. 1.“Now you are conversing in new language”. 2. Message node from fallback.

However webhook is only giving 1st response not the other one.

Here is payload we used for our webhook.

payload = {
“message”: {
“type”: “text”,
“val”: msg,
“attachments”: “”

},
“from”: {
“id”: userWhatsAppNumber,
“userInfo”: {
“firstName”: firstName,
“lastName”: lastName,
“email”: “”

}

},
“to”: {
“id”: “”,
“groupInfo”: {
“id”: “”,
“name”: “”

}

},
“mergeIdentity”: “false”

}

However, In chat history we say bot sent message from fall back. We also found same message in onBotMessage botKit event.

Note: we user V2 version synchronous webhook. Also we tried mergeIdentity with different combinations like false, “false”, true, “true” in postman.

we haven’t used Session key in our payload at all. Our botbuilder version is v 9.2.3

Hello @klaxmibharath1c ,

Thank you for reaching out to Kore.ai Community
Could you please refer to the below documentation and verify the payloads ?

Thank you,
Srujan Madderla
Kore.ai Community Team

Hi Srujan,

As mentioned we are using 9.2.3 bot builder version, in which Synchronous doesn’t have pooling checkbox. Also above shared payload is working for whole flow. but not working only for language switch.