Creating a Bot Using Dynamics 365 Virtual Agent for Customer Service
6/21/2019 6:29 AM
You can easily create a chat Bot for your website using Dynamics 365 Virtual Agent for Customer Service. The Dynamics 365 Virtual Agent for Customer Service is a web based application that allows you to create a Bot that interacts with your customers.
It allows your non technical Subject Matter Experts (SMEs) to monitor the Bot using the built-in analytics, and to update and enhance the Bot using an online web interface.
To get started, go to: https://va.ai.dynamics.com and Sign in (using your Microsoft work or school account) to create your Dynamics 365 Virtual Agent for Customer Service Bot.
Select the Bot icon and select New bot…
(Note: If you run into any issues, see: https://docs.microsoft.com/en-us/dynamics365/ai/customer-service-virtual-agent/getting-started-create-bot)
Give the Bot a name and select Create.
Your Bot will be created.
Note: You can add multiple Bots, and navigate between them, by selecting the Bot icon, and then selecting the desired Bot.
You can chat with the Bot using the Chat window.
Enter Hello? and click the send button.
The Bot will display a response.
Working With Topics
Click on one of the responses in the Chat window and you will see:
- Topic Name – The Bot is organized by Topics. A Topic is a grouping of a single conversation path.
- Topic Trigger Phrases – A Topic is started when one of its trigger phrases has been detected.
- Bot Says – The Bot responds to a user using the Bot Says element. You can always find that element, and the Topic that it is contained in, by clicking on it in the Chat window.
You can see all available Topics for the Bot by clicking on the Topics link in the main menu bar.
You can create a new Topic by clicking on the New topic button.
The New Topic screen will display.
Fill out the form and click the Edit button.
You will be presented with a Bot Says box.
Enter a message and select the User says option.
Enter an option in the User Responses box and click the + link next to Add user response, to add additional possible response options.
Click the trashcan icon to delete any response options not needed.
A conversation path will display for each option you create.
An empty option will also be created to handle any response other then the options you indicate.
Enter a Bot Says response for each option.
For the empty option, select Go to.
You can search for any Topic and select it.
Save your Bot.
Testing and Debugging Your Bot
Note: If your Chat window ever disappears, you can always bring it back by clicking the Test your bot link.
In the Chat window, turn on Tracing and click the Start over with latest content button.
Enter one of the trigger phrases for your new Topic and you will be able to trace and debug the conversation.
Working With Variables
You can use variables to allow you Bot to capture and use conversation path data such as remembering a person’s name.
Return to your Topic.
Hover your mouse pointer between the Trigger Phrases box and the Bot Says box and click on the + button.
Select Bot says.
Enter What is your name? and hover your mouse pointer under the Bot Says box and click on the + button.
Select User says.
Click the trashcan icon next to the response option because it will not be needed.
Select Add variable.
In the popup Properties box, select Create variable.
Enter a variable name and click Done.
Close the Properties box.
Delete the Expression box that is automatically created.
You can now select any Bot Says box underneath the response, and select the variable from the variable drop down.
The variable will be inserted.
When we save the Topic, return to the Chat window, and click the Start over with latest content button, we will see the value, entered for the variable, used in the conversation.
To Deploy the Bot, select Deploy from the main menu.
Selecting the Demo website option will take you to the Deploy wizard.
Fill it out and select the Publish button.
This will take you to a page that will provide the web address to the Bot, and a window that allows you to chat with the Bot.
Selecting the Custom website option will take you to the Deploy wizard that will provide HTML code that you can use to insert the Bot into your own website.
You can click on the Analytics icon to monitor the interactions with your Bot.
More To Come
The Dynamics 365 team plans to add more channels in the future for your Bot to communicate on.
New! Dynamics 365 Virtual Agent for Customer Service is available for preview
Dynamics 365 Virtual Agent for Customer Service (Community Site)
Dynamics 365 Virtual Agent for Customer Service Documentation
Frequently asked questions