Microsoft Bot Framework: showing a welcome message at the start of a new conversation

Recently I’ve worked on some projects related to Bot Framework and enjoyed the functionalities which permit to automate actions in response to user interactions.

It is important to provide the user with a great experience: one “nice touch” can be achieved by providing a welcome message at the beginning of a new conversation.

The first solution I tried was triggering the welcome message in the ConversationUpdate activity:

When I ran this, the message was presented twice in the Bot Framework Emulator:

After some investigation, I discovered that the ConversationUpdate activity is triggered both when the connection to the Bot is established and when a new user joins the conversation.

As explained on GitHub, the correct way to handle this case is by showing the welcome message only when a new user is added:

Using this approach the welcome message is displayed properly:

Happy coding!

Microsoft Azure Multi-Factor Authentication (MFA): useful links

Today I did some research about Azure MFA and found these links that I would like to share:

Introduction to Azure Multi-Factor authentication, overview and get started

Azure MFA Pricing details

Enable mobile app authentication with Azure Multi-Factor Authentication Server

Secure terminal Services (RDP) using Azure Multi-factor Authentication (MFA) – Part 1 and Part 2

Step-By-Step: Securing a Xamarin app with Azure AD’s Multi-factor Authentication