I am developing a chatbot using Microsoft Bot Framework and i recently upgraded the framework 3.0 to 3.5. before upgrading it was working fine but now
When user sen
I believe this could be related to a change that was rolled out a few days ago; where Direct Line will send more ConversationUpdate
messages than it used to.
Check the announcement and a related issue (similar to yours, but in node.js
).
The first ConversationUpdate
is sent when the bot is added to the conversation.
After that, each additional ConversationUpdate
is sent when a new user joins the conversation.
So, I think the solution here will be to check the members added (activity.MembersAdded
)
else if (message.Type == ActivityTypes.ConversationUpdate)
{
if (message.MembersAdded.Any(o => o.Id == message.Recipient.Id))
{
// logic
}
}
You need to handle that within the main dialog using switch operations based on intent and also adding dialogs for the relevant intent.
There is a difference between introduction and greeting.