Develop your own chatbot in Power Apps

Recently a new feature to added to Power Apps to add your Power Virtual Agent chatbot in Power Apps. In this post the step by step guide.

Enable the Chatbot component feature

In the settings of your app all you have to do is enable the Chatbot component feature and you are up and running.

Develop your own chatbot in Power Apps Microsoft Office 365 image 11

Then of course don’t forget to save your app and restart the Power Apps studio and reopen you app.

Adding the Chatbot to your app

Now you can add the chatbot control to your app:

Develop your own chatbot in Power Apps Microsoft Office 365 image 12

Once the chatbot has been added you can select your chatbots that have been create in Power Virtual Agent.

Develop your own chatbot in Power Apps Microsoft Office 365 image 13

Create your chatbot

To get started with Power virtual agent go to make.powervirtualgent.com, make.powervirtualgent.microsoft.com, https://web.powerva.microsoft.com

Don’t we all like the consistent URLs in the Power Platform?

Develop your own chatbot in Power Apps Microsoft Office 365 image 14

As we go to Chatbots -> Create we will quite quickly see that it is better to build the chatbot from within a custom solution rather than the default solution. (notice the prefix crd6e_ in the below screenshot). We can now either select the solution in the screen below or you could open the solution that you created within Power Apps and then add the bot there.

Develop your own chatbot in Power Apps Microsoft Office 365 image 15

Solutions and Power Virtual Agent

As we can see in the above screenshots, there is no solution option in the left hand menu, however we were able to select a solution as we created the bot.

If we already have created a solution and we’re working mainly within Power Apps then you might find yourself going to https://make.powerapps.com instead.

Develop your own chatbot in Power Apps Microsoft Office 365 image 16

For existing solutions we can add the chatbot as shown below. Either of the two options mentioned is fine.

Develop your own chatbot in Power Apps Microsoft Office 365 image 17

Creating the Chatbot from within a solution

So I’m adding my chatbot to the solution and I’m supplying the bot’s name

Develop your own chatbot in Power Apps Microsoft Office 365 image 18

Once you hit the create button your bot will be created and after a while you will get the following screen.

Develop your own chatbot in Power Apps Microsoft Office 365 image 19

After we have configured the chat bot we can have a conversation with the chatbot

Develop your own chatbot in Power Apps Microsoft Office 365 image 21

Have you noticed that people often don’t use please when they think that they are talking to a chatbot? Yes indeed, the chat on SharePains is not a bot!

Anyway, back to our post. I’ve now created a bot, I’ve published it and I want to add this to my app.

Adding the chatbot in Power Apps

My Order an ice-cream bot is now available and I can select it form my list of chatbots.

Develop your own chatbot in Power Apps Microsoft Office 365 image 22

And my chatbot in Power Apps is ready to help me order my ice cream within the app.

Power Virtual Agent chatbots in Power Apps

Continue Reading Pieter Veenstra’s Article on their blog

Develop your own chatbot in Power Apps

Recently a new feature to added to Power Apps to add your Power Virtual Agent chatbot in Power Apps. In this post the step by step guide. In the settings of your app all you have to do is enable the Chatbot component feature and you are up and running.

Blog Syndicated with Pieter Veenstra’s Permission

Author: Pieter Veenstra

Share This Post On
Share via
Copy link
Powered by Social Snap