Bot Framework offers a straightforward deployment mechanism. It is basically composed of 2 steps: (1) deploy the API, (2) create the Bot in the bot framework website.

For this example, below are the requirements:

  1. Azure Subscription to host the bot
  2. Bot Framework Account

Steps

  1. Open your bot in Visual Studio.
  2. Right click the solution file and click Publish.

  1. Publish your bot to an Azure Web Service.

  1. Once published, take note of your bot’s messages API endpoint.

  1. Go to https://dev.botframework.com and log in using your account. Once logged in, click Create a bot.

  1. If prompted, click Register.

  1. Enter your bot’s details:
  • Display Name
    • the friendly name which will appear in the channels in which your bot is available
  • Bot Handle
    • used in the URL of your bot; cannot be changed once entered
  • Long Description
    • a description of your bot which will appear in the channels in which your bot is available

    • A new tab will open which will allow you to generate an application ID and password.
      • Enter your app name and click Save.

    • Your password will be shown in a modal. Save this value.

    • Click Finish and go back to Bot Framework
  1. Confirm that you agree to the terms, then click Register.

  1. Your bot is now registered.

  1. By default, your bot will have 2 channels: Skype and Web Chat.

  1. Update the Bot Details on your Visual Studio Solution.
    • Open the Web.config file then update the following appSettings:
      • BotId
      • MicrosoftAppId
      • MicrosoftAppPassword
    • Publish the bot again.
  2. To test that your bot works, click the Test button on the upper right part of the screen.

  1. Verify that your bot is working:

Bot Framework: 06 – Deploying Your Bot

 

In this post, you will have registered your bot in the bot framework website. On the next part of this series, we will register the bot on Facebook to cover more audience.