Tutorial: Create a FAQ bot

Create a FAQ Bot with custom question answering and Azure Bot Service with no code.

In this tutorial, you learn how to:

  • Link a question answering project/knowledge base to an Azure Bot Service
  • Deploy a Bot
  • Chat with the Bot in web chat
  • Enable the Bot in supported channels

Create and publish a knowledge base

Follow the getting started article. Once the knowledge base has been successfully deployed, you will be ready to start this article.

Create a bot

After deploying your project/knowledge base, you can create a bot from the Deploy knowledge base page:

  • You can create several bots quickly, all pointing to the same knowledge base for different regions or pricing plans for the individual bots.

  • When you make changes to the knowledge base and redeploy, you don't need to take further action with the bot. It's already configured to work with the knowledge base, and works with all future changes to the knowledge base. Every time you publish a knowledge base, all the bots connected to it are automatically updated.

  1. In Language Studio, on the question answering Deploy knowledge base page, select Create bot.

    Screenshot of UI with option to create a bot in Azure.

  2. A new browser tab opens for the Azure portal, with the Azure Bot Service's creation page. Configure the Azure bot service.

    Setting Value
    Bot handle Unique identifier for your bot. This value needs to be distinct from your App name
    Subscription Select your subscription
    Resource group Select an existing resource group or create a new one
    Location Select your desired location
    Pricing tier Choose pricing tier
    App name App service name for your bot
    SDK language C# or Node.js. Once the bot is created, you can download the code to your local development environment and continue the development process.
    QnA Auth key This key is automatically populated deployed question answering project/knowledge base
    App service plan/Location This value is automatically populated, do not change this value
  3. After the bot is created, open the Bot service resource.

  4. Under Settings, select Test in Web Chat.

    Screenshot of Azure Bot Service UI button that reads "Test web chat".

  5. At the chat prompt of Type your message, enter:

    How do I setup my surface book?

    The chat bot responds with an answer from your knowledge base.

    Screenshot of bot test chat response containing a question and bot generated answer.

Integrate the bot with channels

Select Channels in the Bot service resource that you have created. You can activate the Bot in additional supported channels.

Screenshot of integration with teams with product icons.

Clean up resources

If you're not going to continue to use this application, delete the associate question answering and bot service resources.

Next steps

Advance to the next article to learn how to customize your FAQ bot with multi-turn prompts.