Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (43 sloc) 4.05 KB

Content index

  1. Setting up the recipes
  2. Creating the basic bot
  3. Setup continuous integration
  4. Debugging the bot on your local environment
  5. Customizing the basic bot
  6. Test your recipes bot
  7. Adding a webchat in your site
  8. Known issues

Creating the basic bot

To create the bot using Azure Bot Service:

  1. Sign in to Azure portal
  2. Select New in the menu blade
  3. In the New blade, navigate to the Data + Analytics category, and select Bot Service.
  4. In the Bot Service blade, provide the requested information and click Create. When the deployment completes, Azure adds a notification to the Notifications group.

  • Set App name to your bot's name. The name is used as the subdomain of your deployment (for example, mydnnrecipesbot.azurewebsites.net). The name may contain alphanumeric characters and a dash (-).
  • Select the subscription to use.
  • Select the resource group and location. See the Azure documentation for information about Resource Group, and Location.
  1. Check whether the bot has been deployed.
  • To determine whether the bot has been deployed, click Notifications (see the bell icon at the top right). The notification will change from Deployments started to Deployments succeeded.
  • Click on the notification to go to the bot resource

  • Alternatively, you can click All Resources in the menu blade, and then select the bot from the list of resources
  1. Create an app ID and password by clicking Create Microsoft App ID and password.

  • When you click Create, you're taken to another page where you click Generate an app password to continue to get your password. Copy and securely store the password.
  • Click Finish and go back to Bot Framework.
  • When you come back, the app ID field is populated for you. Paste the password that you copied into the password field.

  • You should only click Manage Microsoft App ID and password if you want to get a secondary password for your bot. Note that you can manage passwords anytime in the Bot Framework portal. Click My bots , select the bot, and in the Details section, click Edit. Under Configuration, click Manage Microsoft App ID and password.
  1. Select C# as the programming language to use to develop your bot.

  1. Select the Basic template to use as the starting point for writing the Recipes bot

  1. Click Create bot to create the bot. After the Bot Service generates your bot, the Azure editor will contain your bot's source files. At this point, the bot is functional. Try it out in the chat control.

(Note that there may be a slight delay before the splash screen displays indicating that the Bot Service is generating your bot; don't click Create bot again.)

By default, the bot is published on Skype and the web chat is also enabled. For this tutorial, we will use just one of these channels, but feel free to follow the instructions provided on the Channels tab to add more channels like Facebook Messenger, Telegram, Microsoft Teams, Slack, etc.

Just to test the default Skype connected channel, click on the Skype label to add the Recipe bot you your Skype contacts. You should be able to chat with the bot in the same way you did on the web test pane.

You can find related information about the Azure Bot service as part of the Azure Bot Framework SDK documentation.