Quickstart guide for building bots with GPT

Microsoft has made bot building even simpler with AI-powered capabilities in Power Virtual Agents. Whether you're new to conversational AI or a seasoned developer, our intelligence platform is with you and your team every step of the way.

This quickstart guide introduces you to the minimal steps necessary to get started quickly in creating and boosting a chatbot with expanded natural language understanding (NLU) capabilities. Using the intelligent authoring of AI-powered bots, you can now create a new topic or edit an existing one by describing what you want to happen or have your bot generate conversational responses even if there isn't a matching topic.

Prerequisites

Caution

Your bot must be created in the US region.

Other regions, and languages other than English, aren't supported.

Important

If you create a bot that has Boost conversations enabled, you'll need your admin to enable bot publishing for the capability.

How bot conversations work

Power Virtual Agent bots use a customized NLU model and AI capabilities to understand what a user types and respond with the most appropriate bot topic. A bot topic is a sequence of nodes that logically flow from one step to the other. See Create and edit topics for details on how bot topics work.

For example, you might create a bot for your customers to ask common questions about your business, thus reducing your support overhead by deflecting support calls. In the bot, you could create a topic that includes details about your store opening hours and call it Store hours.

When a customer asks a question such as "When do you open?" or "What are your opening hours?", the bot uses NLU to understand the intent behind the question (in this case, that the customer wants to know about hours of operation), and matches that intent to the most appropriate bot topic (which would be the Store hours topic).

The bot then follows the conversation flow that you've defined in the Store hours topic, which might be a series of questions that use if/else arguments, or logic gates, to ask the customer which store location they're interested in. The final output of the topic might be to then display the hours and contact information for that location.

However, you may not be able to anticipate all the types of questions your customers ask. To help mitigate this, Power Virtual Agents incorporates a powerful new AI-powered capability that uses the latest advancements in NLU models. When you have Boost conversations enabled in your bot, and linked to a publicly available, Bing-indexed website, your bot can provide automatically generated, conversationally friendly, plain language responses without depending upon the bot builder to create topics for every eventuality.

Also, with Power Virtual Agents new Copilot feature, your chatbot uses AI, powered by the Azure OpenAI GPT model (which is also used in Bing), to create bot topics based upon a simple description of what you want to achieve. You can also modify and update any topic in your bot in the same manner, by describing the changes you want to make.

Ready to get started? The first step is to create your bot.

Create a boosted bot

  1. Go to the Power Virtual Agents home page.

  2. In the side navigation menu, select Create. You can also select Create a bot on the Home page or New chatbot from the Chatbots page.

    Screenshot of the Power Virtual Agents home page.

  3. Enter a name for your bot, and add the website you'd like your bot to fall back to if it can't find an appropriate bot topic, and select Create.

    Screenshot of the Boost your conversation option.

Note

This initial bot creation only prompts you for one fallback website. You can add other data sources, including internal resources such as Sharepoint or OneDrive, and external facing websites. For more information about including additional data sources, refer to Use Copilot to edit a topic.

For any user-sent message that can't be matched to an existing topic, your bot looks for an answer on the website you've specified, and turns the answer into a simple message that it sends to the user.

See the Boost conversations topic for more details on the capability, including instructions for enabling boosted conversations in bots you've already created.

Create a new topic using Copilot

  1. With your bot open, select Topics. On the Topics page, select + New topic and then Create with Copilot.

    Screenshot of the Power Virtual Agents navigation pane with Topics and the New topics button highlighted.

    Note

    If you don't see the Copilot option, you may need to enable Intelligent authoring support:

    1. Select the Settings icon on the top menu and then General settings. Screenshot of the Power Virtual Agents menu with the Settings icon open.

    2. Set the switch under Intelligent authoring support to On.

  2. In the Create it with Copilot window that appears, enter a name for your topic in the Name your topic field.

  3. In the Create a topic to... field, describe the topic you want to create in simple, plain English. You can include questions you want the bot to ask, messages it should show, and details of the specific behavior you want the bot to take.

    Screenshot of the Describe it to build it pop-up window.

    You can select any of the examples to automatically insert them into the Create a topic to... field. Select View more examples to generate new suggestions.

  4. Select Create.

Once your topic is created, your bot is ready for testing.

You can explore ways to extend and enhance your boosted bot and topic in Create (and edit) with Copilot.

Test your bot's boosted conversational reach

Once you create a bot, you can immediately test the bot and try out different phrases for your bot to reply to. The Test bot pane shows how a bot conversation plays out at every step and you can fine-tune a topic directly within the Power Virtual Agents portal:

  1. With a topic open for editing, select Test bot above the authoring canvas. You can also select Test your bot from the side navigation menu.

    Screenshot of Test bot option.

  2. At the Type your message prompt, ask the bot about the return policy of the organization whose website you linked to. For example, you could type What is your return policy?.

    The bot retrieves information from the website and returns a response. The response provides a link to where it found that information and allows you to provide feedback.

  3. (Optional) Try asking the bot about something you know is not on the website you specified, such as Why is the sky blue. Because the bot can't find a relevant bot topic or a relevant answer on the specified website, it replies with a system fallback topic that indicates it can't understand the question, and asks you to rephrase the question.

    Screenshot of Test bot pane with the message that the bot doesn't understand.

Note

After you test your bot, you can select the reset icon at the top of the Test bot pane to clear previous conversations. Resetting makes it easier to follow the flow of the current topic without getting confused by previous conversations.

Screenshot of Test bot pane reset button that looks like a an arrow in a circle shap. You can return to the authoring canvas at any time to revise the conversation path. The Test bot pane automatically refreshes when you select Save.

Add features to further develop your bot

It's easy to take your bot's conversations up a notch by giving your bot a voice of its own. You can add images and video clips, as well as adaptive cards, entities, and variable expressions. See the Key concepts - Enhanced authoring for more details, or continue your bot-building journey by checking out the rest of the Power Virtual Agents documentation.