I have created a custom question answer knowledge base and tested on language studio. It is working fine and sending a response on language studio, but when I deploy and create a bot, and then 'Test in Web Chat' it is not responding. On inspecting the network, I found out that it is sending an error response.
"message": "Failed to send activity: bot returned an error"
Payload Status Code: 502