Creating a Bot


Start course

The course starts by providing a quick overview of some of Azure’s AI services and what you're going to build.

You'll then be shown:

  • How to create a searchable knowledge base using the question answering service
  • How to create a bot and connect it to the knowledge base
  • How to create a web chat app and connect it to the bot
  • How to enable spoken input and output in the chatbot

Learning Objectives

  • Describe Azure AI services
  • Create a knowledge base using the question answering service
  • Create a bot and connect it to the knowledge base
  • Create a web chat app and connect it to the bot
  • Enable spoken input and output

Intended Audience

  • Azure AI engineers


  • Experience with Azure
  • Experience with writing code (not mandatory)


The GitHub repository for this course is at


Now that our knowledge base is ready, let’s create a bot that uses it. Click “Create a bot”. It takes us back to the Azure portal.

I’ll use the same resource group as before. Change the pricing to the free tier. And click “Next”.

We need an app service plan. You can use an existing one or create a new one, but bear in mind that if you create a new one, it’ll use the Standard pricing tier rather than the Free tier.

According to Microsoft’s documentation, the Language Resource Key field should be automatically filled in, so maybe when you try it, you’ll get lucky. But if it’s blank like mine, then you’ll need to go to the Language resource you created and get it. Open the Azure Portal in another tab, and type “language” in the search bar. Click on your Language resource, and then click "Keys and Endpoint" in the menu. Click the copy button on the first key. Then go back to the other browser tab, and fill in the Language Resource Key field.

All right, now we can click “Review + create” and “Create”. It’ll take a while to finish, so I’ll fast forward. OK, it’s done, so click “Go to resource group”. Click on the resource that says “Azure Bot” in the “Type” column. You may need to click “Refresh” before it’ll show up in the list.

If you click “Test in Web Chat”, you can try out the bot. Let’s try “run bot offline” again and see what happens. Great, it came back with the same answer as before.

Next, I’ll show you how to create a user-facing chat app, so if you’re ready, then go to the next video.

About the Author
Learning Paths

Guy launched his first training website in 1995 and he's been helping people learn IT technologies ever since. He has been a sysadmin, instructor, sales engineer, IT manager, and entrepreneur. In his most recent venture, he founded and led a cloud-based training infrastructure company that provided virtual labs for some of the largest software vendors in the world. Guy’s passion is making complex technology easy to understand. His activities outside of work have included riding an elephant and skydiving (although not at the same time).