NodeJs의 Microsoft Bot Framework를 사용하여 하나의 채팅 봇을 개발 중입니다. 대부분의 경우 예상대로 완벽하게 작동합니다. 하지만 때로는 봇과 통신 할 때 즉시 응답을 얻지 못합니다. 두 번째 질문을 입력하면 두 가지 질문에 모두 지속적으로 응답합니다. 이 문제를 해결할 수있게 도와주세요. 서버 쪽에서 뭔가해야합니까?Microsoft Bot Framework가 예상대로 작동하지 않습니다.
dialog.matches('help',[
function (session, args, next) {builder.Prompts.choice(session, "I can help you to shop products for your lifestyle. You can buy from the following categories.", "Computer|TV|See more", { listStyle: builder.ListStyle["list"] });
},
function (session, results) {
if (results.response.entity=='TV') {
session.send("Wow. That sounds interesting one. We have many %s models. Ask me question like \"I want to buy black color Samsung LED Tv .\"", results.response.entity);
session.endDialog();
}else{
session.send("Selected category is expected soon.");
session.endDialog();
}
}]);
먼저 코드를 게시하여 이미 시도한 것을 볼 수 있습니다. – DestinatioN
질문에 몇 가지 코드 샘플을 추가했습니다. –