sandeep naik
sandeep naik

Reputation: 23

Conversation conflicts in Microsoft Bot Framework

I am using Microsoft bot framework V4 nodejs sample 24 for a leave management bot. I have added this bot to ms teams. The problem I am facing is when multiple users are using the bot at once, the conversation data of others are being shown in the other user bot.

In the emulator, most of the time it works correctly but in teams it’s not working properly.

I have developed a chatbot for leave management. When a user types 'apply leave', it will begin an apply leave dialog where in waterfall step it will ask a couple of questions like leave type, start date, end date etc. This bot is sideloaded in teams (created using app studio manifest and pointed to a bot hosted on azure). In my organization everyone can use this bot to apply leave. Now suppose multiple people are trying to apply leave, then is some cases for some users, start date is already present which is actually given by someone else in their bot. Similarly, sometimes it shows other user provided leave type to someone else.

Upvotes: 1

Views: 235

Answers (1)

sandeep naik
sandeep naik

Reputation: 23

I solved this issue by removing all the global variables and by storing all the values in the step context as an object.

Upvotes: 0

Related Questions