In this bot series, we will create an E-commerce bot for one of the Chocolate Store “Naami Chocos“. This bot will have the following functionalities –
- Authentication
- Add to Cart
- Payment Integration
- FAQs using QnA Maker
- Connect bot to Facebook page
In this part, we will set up our development environment.
Pre-requisites
- Visual Studio
- Bot Emulator
The above requirements links are available on the Downloads page.
Video
Clone the Reusable Template
Go to the GitHub repository and clone the code. The main advantage of using this template is that it comes configured to use the bot states.
When you have cloned the repo onto your system, go to the project explorer and delete the .git
file. Next, we need to change the name of the solution and project.
Right-click on Solution Name and rename it. We will give the solution name as NaamiChocos
.

Similarly, do it for the project name as well. Here we rename it to NaamiChocosBot
.

After we have renamed the solution and project, it is time to change all the namespace which is still pointing to ReusableStateBotTemplate
.

On your keyboard, just click Cntrl+F. The search item is ReusableStateBotTemplate
and replaces with NaamiChocosBot
. Make sure to select Match case
and Match whole word
. This replacement will be done in the entire solution. Finally, click on Replace all.

A similar dialog box pops up when all the namespace is replaced.

In the next part, we will create a welcome card for our bot.
You must be logged in to post a comment.