Hi,
I am having webchat.js intergrated with copilot studio using direct line API.
I used the below snippet to send message back to the bot.
But the copilot studio is sending and showing the message, but adding an extra message after this.
Any way to avoid this extra message coming. Attaching the screen shot below (last one is the extra message, but i dont need that one). How to prevent that behaviour ??
Kindly share your thoughts on this issue
//
if (userresponse === "disLiked") {
// Send a message back to the bot
store.dispatch({
type: 'WEB_CHAT/SEND_MESSAGE',
// type: 'DIRECT_LINE/POST_ACTIVITY',
payload: {
text: apologyMessage,
}
});
return;
}
//