Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Bots with Microsoft Bot Framework

You're reading from   Building Bots with Microsoft Bot Framework Creating intelligent conversational interfaces

Arrow left icon
Product type Paperback
Published in May 2017
Publisher Packt
ISBN-13 9781786463104
Length 424 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Kishore Gaddam Kishore Gaddam
Author Profile Icon Kishore Gaddam
Kishore Gaddam
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Setting up Microsoft Bot Framework Dev Environment 2. Developing Your First Bot Using the Connector and Builder SDK FREE CHAPTER 3. Developing WeatherBot Using Dialogs and LUIS 4. Natural Speech and Intent Processing Bot Using Microsoft Cognitive Services 5. Developing Bots Using LUIS Prompt Dialogs with State and Nearby Bot Using Custom APIs 6. Developing an IVR Bot for a Bank Using Advanced Microsoft Bot Framework Technologies 7. Intelligent Bots with Microsoft Bot Framework and Service Fabric 8. Developing Intelligent Facial Expression Identification Bot for IoT Using Azure and Power BI 9. Publishing a Bot to Skype, Slack, Facebook, and the GroupMe Channel

Checking your savings account balance using the bot

In this section, I will explain about how to build a FormFlow to check your savings account balance.

To check your balance, we need an account number and PIN. For that, we will add a class called Balance with two fields: AccountNumber and PIN. Next, we will define a public property for the Balance class in the Customer class, and finally we will append the Balance field to the builder object:

    [Serializable] 
class Balance
{
[Prompt("Please enter your account number")]
public string AccountNumber;
[Prompt("Please enter your pin")]
public string PIN;
};

In the Customer class, define the Savings_Balance property:

            //Savings Account Balance Template  
public Balance Savings_Balance;

Append the Savings_Balance property to the builder object before the OnCompletion method:

 ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image