Register a bot on your Microsoft Azure account

In this article, we will cover the necessary steps for registering a bot to Microsoft Azure. In Microsoft Azure, you can integrate your bot to Skype, Skype for Business, Slack, Microsoft Teams, Cortana, Kik, GroupMe, Twilio, Telegram & LINE. There are four steps to go through in the registering of a bot in Microsoft Azure, which we explain in greater detail below: 

How to register a bot in Bot Channels Registration

To register your bot to your Microsoft Azure account, go to the right sidebar menu, press Bot Settings and go to Channels. In Channels, choose the Azure option, then click "Copy URL". This link is the connecting link between your Azure account and the Codemonkey Platform.

Next, you should go to your Azure account and use your developer account. In the search bar, search for "Bot Channels Registration" and click on the displayed option.

Search_for_Bot_channels_registration.jpg

This will take you to a page where you can register your bot. Under Bot Channels Registration, you will need to provide the following information:

  • The bot name: The bot name should be easily recognizable for you and your team
  • Subscription: This relates to the type of subscription you have to Microsoft Azure products
  • Resource group: You should add one of your resource groups or create a new resource group
  • Location: Choose the location that is closest to you
  • Pricing tier: Choose the one that represents your company the best
  • Messaging endpoint: Paste the URL you copied from Channels in the Codemonkey Platform
  • Application insights: It's optional whether or not you want to activate this, and it is also possible to activate at a later point

image_of_registration_page_data.jpg

How to create a Microsoft App ID

At the bottom of the Bot Channels registration page, you should click "Auto create App ID and password", then a menu will open. In this menu, click "Create new".

How_to_auto_create_App_ID_and_password.jpg

Here, you should click "Create App ID in the App Registration Portal", which will open a new tab.

microsoft_id.png

On this page, you either obtain the Microsoft App ID when you click on an existing App or when you register a new App (Click on New registrations) and obtain the Microsoft App ID once it's done registering. This is the Microsoft App ID to be used in the above registration. Copy it to your desktop. 

app_registration.png

After you have obtained your Microsoft App ID on the App page, click on the Certificates & secrets option located on the left menu under the Manage title. This is where you would obtain the password we would use to connect our bot to Azure.

created_Appp.png

Under Client secrets, click on New client secret, insert your description and your desired expiry period, then click "Add", after which the Client secret key will be created. Copy this key to your desktop.

c_secret.png

Insert the obtained Microsoft App ID and Client secret as your password as shown below:

inserting_Microsoft_App_Id_and_password.jpg

Then you should click the "OK" button. The menus will automatically close, and you should click the "Create" button. 

Click_create.jpg

It will take some time until the channel is ready. Once it is ready, you will be re-directed to the front page. After this, you can access that service by searching for Bot Services, where the new service will be listed.

Search_for_Bot_services.jpg

Click on it—the view will be similar to the following: 

Bot_Services_bot_layout.jpg

How to add the bot to a channel

To add the bot to a channel, please click "Channels". Here you will see an overview of the different channels the bot can be integrated on.

click_on_channels.jpg

By default, the web chat channel is already set up, and it can be tested from the bot emulator available under “Test in Web Chat” in the menu at the left side panel. The same bot can be added to several channels. Please see this overview of how to integrate the bots on the available channels.

How to connect to the Codemonkey Platform

In the last step of the process, we start where we began: in the Codemonkey Platform. Under the Azure Channel in Bot Settings, you should insert the Microsoft Application ID and password we generated in the How to create a Microsoft App ID step, then press "Connect".

enterazurekeys.png

Then your bot is good to go!

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Please sign in to leave a comment.