Skip to main content

Creating Chat-Bot Using Power Virtual Agents.

Chat Bot Series Part -1 

Scenario :-  Creating Simple Chat-Bot Using Power Virtual Agents.


Step 1 :- 

                Login to Power Virtual Agents using this Link with your work or school account. Even if you don't have valid license you can can  Sign up for Trial Account.

*** Your Bot will continue to work for up to 90 days even your Trial period is Expired.***

Once Sign up process is completed you will land into this page and it will ask you to enter the Name of your Chat Bot, language and Environment. You can switch to different environments. Click on Create. Once you click on Create it will take sometime and new chat bot will be created.



Step 2 :- 

                Once the Bot is Created Successfully then you will be landed into this page. Either you can click on Customize your Greeting or click on Topic and you can define your own Topic.





Topics are nothing but pre-defined templates you can use this in your Bot. By-default Microsoft will give you some lessons in topic you can check that if you are beginner.

Step 3 :- 

                If you click on Topics and select New topic then you will see this page.



Here just enter the name and description and Trigger phrases. Trigger Phrases are used to awake our bot. You can add as many trigger phrases as you can. Then click on Go to Authoring Canvas.

Step 4 :- 

                Then you will see this page. just add welcome message as " Hello ! Welcome to Chat Bot Series"


Step 5 :- 

                Click on + choose Ask a Question then enter the question you want to ask your user Here I will the ask the User Name. Choose the Identify type as User Entire Response. 



Step 6 :- 

                Click on + choose Ask Question click on identify and choose the option as Multiple Choice Question. Now we are going to ask the user to choose the topic. Click on New option then you can add your choices. For every choice it will add the condition automatically. 
                
  In Var1 it will store the user name.

  Hi (Var1) Good to see you !!! Please select the topic in which you are having queries.


    If User clicks on either Power Automate or Power Apps Var (text) stores that response. You can rename the variable those changes will be reflected everywhere.



 Step 7 :- 

                Now Click on + Ask a question. Here we will display the username then will ask the user to post query.

                Var 1 holds the User Name.
                Var 2 holds the User Response.




Step 8:- 

                Just take the user entire response and add the message card. Then Click on Save. 



Step 9:-

                Once it is Saved you can Preview it. 



                

 

Hurray  😀😀😀 !!!

Now you have successfully created the  Chat-Bot using Power Virtual Agents.

In the Next Post you will learn how to Integrate your Chat-Bot with your Website/Blog.

Stay Tuned. 👍😊😊😊 !!! 


Comments

Popular posts from this blog

Creating News Application using Flow and Power Apps ( Part -1 )

Create a Flow to fetch the latest news from Public API Step 1 :-                      Login to Power Automate using work or School account . Add a PowerApps Trigger - > add HTTP Action card. **You can find public API which are available online for free. Here is the Top Free News API's. News API, Bing News Search API, Bloomberg API etc.... In this Tutorial I am using News API to fetch the latest news. Just Login to News API and generate API Key. Once you Login to the News API there you will see news from different sources. Choose any one of the source. Once you generate the API Key , redirect to the Flow Portal in HTTP Action Card choose the method as GET and paste the URI [ if you choose any one of the source you will get url with API key included in that]. Choose Authentication mode as None. Step 2 :-                     Now Run the Flow. Copy the Output of HT...

Creating News Application using Flow and Power Apps ( Part -2 )

 Creating PowerApps Screen to view the latest  news. This is continuation of  Previous Article  . Please have look into it if you missed my previous article.  Step 1 :-                      Login to the PowerApps -> Create an app from Blank using Phone Layout.Add Header and Footer using labels -> Add a Refresh Icon from Icons menu. Set the Refresh Icon OnSelect property to this code.   ClearCollect(test12,'Flowname'.Run()); -- test12 is collection name. --Once user press Refresh icon internally it calls the Flow , get the data from Flow in JSON format and stores the data in collection . **You can either write this formula in OnSelect property/ App OnStart property.** Step 2 :-                      Add a Blank Vertical Gallery -> Inside that add another Gallery, choose the layout as Image,Title,Subtitle. Reason for adding...

Send Multiple Attachments in Single Email added from Microsoft Forms using Microsoft Flow ( Power Automate)

Recently in forms a new feature has been introduced. Now users can able to add Attachments in Microsoft Forms. Scenario :- When a new response is submitted in Forms using the Flow we are sending an email with that attachments. Mentioned below are the Steps :- Step 1 :- Here is my sample Form. Step 2:- Login to the Flow with your school or work account and create flow like this. When a new response is Submitted -> Get response Details Step 3 :- Click on New Step and add Compose. Add the file Upload as input to the Compose. Now try to run the flow and copy the output of the compose and paste it Notepad for your reference. [You can remove the compose once you copied the code] Step 4:- Add the Parse JSON action card and in the Content add the File upload from dynamic content click on Generate from Sample and past the code and click on done. It will generate the JSON Schema automatically. Step 5:- Now initialize a variable and set the type to Array. Step 6 :- Add Apply To ...