[Music]
thank you
[Music]
all right
thank you
first of all welcome
[Music]
um my name is Jennifer Pierce I uh
M I don't even really know what to call
myself
I manage a development team that's
responsible for implementing
um
new Solutions combining Automation and
AIML so that's what we do I work for one
of the largest fintech companies on the
globe and uh we build stuff that's
needed based on whatever the request is
and the data available
so one of the things I wanted to
introduce to you today and I think it's
things a thing that has a tremendous
amount of
importance in the security space I'm not
a security person you guys are so you
know I'm counting on you throughout this
discussion to jump in and tell me if if
that's accurate or not is really the the
growing Persistence of virtual
assistants and just about everything
that we use now the the notion of a
chatbot that's not new
it's it's not
um we've used them in fact if I go back
in time to the early 90s walking into TV
Lenny's American
in the back corner there's the computer
section right and they were still
selling 46s at the time and when you
opened it up a little virtual rendering
of Jean-Luc Picard would talk to you
I mean it was basically like the totally
mind-blowing version of Clippy
and so you know I mean these these are
not new Concepts however
within the last several years we've
combined that new that concept really
with you know the notion of AIML and
being able to save and use
[Music]
come on Betsy
save and use that data for persistent
purposes
so I I'm going to be quite honest I find
chat Bots and virtual assistants
monumentally annoying
whenever I go to a site or or connect to
a business through an IDR and you know
the first thing you do is either walk
you through this this comprehensive
press one for this but of course they
always happen to preface it but you know
on our website you can find the answers
to all your problems well I went there
why do you think I'm calling you
so you know you get the idea that you
know we slowly but surely added these
things into our Estates and our
environments to the point where now they
are in fact a security question
because the world is using them and I'm
going to stand over here because my old
eyes can't read it and these are too far
away
but I'm just going to point out a few
things that you know we need to to
you know pay attention to
you know if anything the number of
businesses the number of applications
that we rely on that use Virtual
assistants has increased exponentially
in the last five years
to the point where just about
trying to think of one that doesn't
you know if you go to to any uh Fortune
500 companies virtual interface websites
kind of a you know not a appropriate way
to describe what these things do you're
going to interact with some form of
virtual assistant
you know it's going to pop up in the
bottom right corner hello I'm whatever
can I help you and you know you close it
because you don't want to talk to that
thing and then it pops up again
close it you know it's it's and I I know
I'm hitting a nerve because there's like
afternoon yeah
so point being it is growing in terms of
utilization in our environment
to the fact that now our average
consumers prefer it
74 of users and consumers for these
companies would rather talk to the bot
before they have to talk to a person
I think
because I don't
you know I've learned actually Mike
getzman who runs this show taught me a
very long time ago that when he called
him it says press one for this press do
just keep hitting zero eventually it
then gives up and sends you to a person
okay but my oldness aside the reality is
is that a large portion of people prefer
that
they prefer it for the quick answers
that they don't have to look up
they prefer oftentimes for the ability
to get their problem resolved without
having to re-explain it 10 times as the
company transitions you from Department
to department so there are legitimate
reasons why you may want to look at a
bot in your solution or your business
if I go down and I look at some of the
other statistics
significant return on investment
if time allows at the end of this I will
show you
well first of all how many people come
to conferences because you like the swag
I do it's cool right in my opinion when
you walk out of any one of these talks
you should have some mental swag to go
with including the ability to implement
what I talked about tomorrow in your
business
so if time allows at the end I'll show
you how to very quickly Implement an
AIML driven chat bot in your
organization in probably about 15
minutes
now that doesn't mean that it won't take
time to customize it to whatever it is
you do but as far as getting it built
and built for free
that's the easy part
Okay so
what's that
so more and more people continue to use
these products as we expand into our
different environments social media I
don't even really have to talk about it
I mean if you look at our top social
media platforms they all have some form
of messaging system including the
ability to interact with the platform
through it
so from consumer a usage and a social
media perspective
okay they're a very clear reality
taking it a bit further if you look at
the service space
again it comes down to you know the
ability to reduce costs in your
environment
in essence by reducing the number of
people that need to be able to respond
to questions
I mean how many of you today have within
your organization a segment that uses a
bot to answer simple questions for users
anybody use it
okay
hopefully if I ask you the same question
next year
you'll all be able to say oh we do now
okay if you look a step further I
feel like inside of like six
months was it
oh no that's all right it's my own fault
for putting so much text on a slide
which usually I don't do
um probably one of the most powerful
pieces is in the voice section one step
down that says 43 percent of users
between the ages of 16 and 64 are using
voice command
peripherals in their environment
I get
the age 14 side of it
I'm a little shocked at the 64 sideways
so I'll give you a one example one of
the pieces in my company is a a Voice
driven interactive UI for current
company statistics where you can sit
down talk to it and say how is this
particular application doing today and
it will give you the answer
and I remember when it was first demo to
me I looked at it I thought who's going
to do that
in front of their computer and and talk
to it to get the answer when I could
type it while I'm typing 12 other things
probably faster and I won't have to
rephrase it so that it understands it
apparently again I'm old
because there is a large and growing
population that will use it to the point
that eventually it will be one of the
preferred mechanisms for interacting
with others interacting with service
providers and providing service to
customers
if you take another step further
[Music]
oh that's my favorite one
73 of Health Care Providers say that
they can better serve and diagnose
ailments using AIML including using it
through interactive Bots that doctors
nurses and other practitioners can use
that too you know kind of amazing that
AIML is going to drive the way they
prescribe medication and determine when
where and how you'll use it
so ultimately
when you look at all of these statistics
the the general overall answer is that
utilization of intelligent Bots is
increasing it's increasing in both
frequency velocity as well as its user
base whereas
the age of the user used to be the
determining factor and the types of
Technologies they use this is one that
seems to transcend that because we all
talk
and we all interact with others now
here's the key Gap and the key Gap is is
where all of these different functions
struggle and it's where the function
that I'm going to show you later doesn't
and it's the simple fact that most of
these still today are very rule driven
models
you ask this therefore I give you this
answer
you ask this I don't know what you asked
therefore I ask you to repeat it
and if I have to ask you to repeat it
more than three times I'm going to say
I'm sorry I don't understand let me get
you to a person
okay these are pretty simple if then
algorithms that you know most of us can
develop
[Music]
so as most of our companies grow in
global popularity
we have to deal with the fact that not
everyone asks the same question in the
same way
tent is the same
and I'll give you an example
and in one of my implementations of a
bot
I had a relatively simple set of
algorithms that allowed a person to
check the performance metrics of their
environment from system to system
component to you know interactivity with
other systems Etc you know through the
bot in other words how's the performance
of my system
and when I showcase this to the team you
know I typed in okay how's the
performance of system abc123 XYZ you
know some random system and it went back
in and it attached to multiple different
systems it aggregated the data in the
back end and it came back with a
response and a grade and you know
ultimately how it didn't derived that
grade okay
the cool part was all the algorithms at
the back end not so much the interface
in my opinion but you know the reality
is is that I programmed it to understand
what the word performance means
when somebody asks for performance do
this
[Music]
you know my team was like well yeah
that's kind of nice okay cool
you know then I went back and I typed in
OMG
my app is crazy slow with about 12 A's
in it WTF
[Music]
and they all laugh because they figure
out screw him around
it came back with a 98 certainty that
this was a performance based question
and therefore took it down the
performance path
so being able to isolate the intent
based on Sample data of the inputs is is
a critical piece that takes you from
can I help you find where the status of
your shipment is
to actually being able to understand
your intent understand your problem and
ultimately guide you through a solution
from end to end
okay that's the difference
some companies do it that's why those
numbers go up
and but not everyone does and so I'm
going to show you one possible solution
to that problem
[Music]
but in order to do that
we we need to kind of talk about the
security implications of this
you know my question is you know if any
of you are on development teams you live
in the world of develop because you
should not because you can
how many of you ever bought a tool
that's got like 87 features you use four
okay because nobody asked you that other
garbage that you put in there I mean
yeah I get it you can do it but why
why would you do it
so as we look at this we have to think
to ourselves all right is it from a
security perspective wise
to expand the use of these types of
solutions because there's certain
inherent implications that people expect
those 16 to 64s when you add a bot to
your user experience
you know number one
did do people really like are they all
that questioning of what data they pump
into a body
your assumption is is that the bot is
benevolent it is a machine
the machine does not wish you ill will
so therefore tell me your mother's
maiden name
would you hesitate
[Music]
okay
so you know it comes back then the the
Assumption then is also you know the
body's dumb
you know that's the general assumption
okay it's not thinking
it's just simply ingesting data
comparing it to whatever data source it
has and if it has some sort of match
giving it a match
okay the assumption is the Box don't
that that when you're done
everything you pumped into it including
WTF at the end of my statement
is now gone
November is the the assumption that you
know
it's it's
[Music]
unfamiliar with unstructured inputs
you know I just gave you an example
okay you if you're really a pissed off
system admin
and you go to my bot
and you type what I describe and
actually get an answer
I mean it probably knocked him out of
his chair
because he didn't really expect an
answer he's just really mad
and and this is one of the ways he's
expressing that anger
you know just like me hitting the zero
button every time I get on one of those
automated calls
[Music]
the assumption is the bot doesn't know
what you're doing
well
[Music]
with AIML and other additions to it it
certainly can
you know and then and then there's
always you know the the you think of
social engineering as being one of the
tenements of information security
you know and we always think of it from
the perspective of
going up to the administrative assistant
going hi I'm here from I.T I'm here he
just called me he's really mad but he's
gone do you know his password
[Music]
you know the assistant's like oh I'm not
sure okay but if I gotta go down it's
gonna take me another 10 minutes to come
back and I'm sure he's gonna be really
upset at that point
well okay
you know our assumption is is that you
know you need a person to do that
well what if the bot asks you all the
right questions
I need help with password recovery
okay what's your username here it is
okay
um in order to verify who you are I'm
going to ask you a series of security
questions
that's what the guy on the phone would
do
only the guy in the phone's memory isn't
all that great
because he's old like me in 10 minutes
he doesn't even know what he's doing
here okay the bot nose and the bot can
retain it for years and years and years
and years
so there are serious and specific
security implications when we talk about
adding additional virtual assistants
particularly complex virtual assistants
to your environment
so at the end of the day when I show you
how to build one in 10 minutes and you
think to yourself but maybe maybe you
think I don't care or maybe you think
this is cool
[Music]
you now have have done two things
you've created an input mechanism and a
long-term storage mechanism for
structured and unstructured user data
based on how you taught your Bot to lead
the discussion
and you have also now become the crowd
owner and fully responsible
for having that data in your possession
sounds kind of like in the state of
Wisconsin if they find a lock pick set
in your car unless you can demonstrate a
legitimate reason to have it
um you know you have the potential of of
drawing charges
[Music]
so you've now collected passwords and
security information for half your staff
and you're retaining it for long ranges
of time
you better be able to explain why it's
appropriate that you have that
so if we take it a step further
there's certain key Concepts
that if you're going to go down this
path or if you're going to be the
security person on the other end of this
path trying to ensure that people are
not creating data sets of critical data
without any sort of governance
there's six key or eight key Concepts
that you have to understand
okay and if you know these already then
great but I'm going to share a little
bit about each just so we're all on the
same page
at the very root of of a modern virtual
assistant
and if you talk to people who develop
these and you say the word chat bot they
get this I want to punch you in the face
look you know you haven't seen that
thing
you know and it's mainly because they've
evolved so far beyond the rule-driven
type of utility that we're accustomed to
okay and and the reason they've done
that is is something called natural
language understanding and I want to
make sure there's a clear delineation
between natural language processing and
natural language understanding natural
language processing
is the the algorithm and set of
algorithms that allow you to take an
input tokenize that input clean it from
whatever irrelevant terminology that is
needed and then use that to analyze the
intents and and the other you know
requirements that you need okay the
natural language processing it's it's in
the word processing you said this
sentence and I tore it apart into its
only its most important pieces and I
compared it to other data sets to try
and determine if it's relevant or
important
natural language understanding
is taking that a step further
by giving you the ability to use that
natural language processing in
conjunction
with multiple other models that are
available to you
so I'll give you two examples if you're
going to take text-based endpoint or
voice based input the solution I'll show
you later can do both that doesn't care
if you're going to take this type of
input
you're going to get things that the
average NLP solution doesn't understand
okay my name is John plotice
okay I I love my last name because no
one has it
is real easy like in college you know
they go down the list Bob Smith Mike
Jones John
and I just raised my hand go yeah that's
me
okay but share it with a bot it's going
to remove it as gibberish
I mean right it's not a known word
unless you're Latvian then it's another
word okay it's it's it's irrelevant
however for our purposes it happens to
be very relevant because I'm going to
correlate that with the username and and
ultimately drive it to resolution
but an NLP alone won't do that the
merger of NLP was Spacey Spacey being
another solution that helps you
extrapolate names is going to do that
dates are another prime example if
you're in the UK
you format your dates in one way if
you're in the U.S you format them
another way if you're an absolute Unix
nerd
you format formulate your dates in that
giant eunuch string and then try and
think about that great day in 1970 as
you try and bring it back to a normal
date
okay so dates are another one doubling
is another model you add to natural
language processing specifically
designed to parse dates so
when you think about it NLP and NLP
alone isn't sufficient to do a whole lot
in fact the last time I gave a speech
here I used NLP to analyze Trump's
speeches
and and identify
um intent and sentiment across various
different Trump speeches
it was great it came back with a result
the result even got kind of a chuckle
but to what end it really didn't give me
anything that I could use
in another effort so so always think
about that natural language
understanding versus natural language
processing very different intense and
intent processing
to something that nlu is used
specifically for the ability to take
whatever you put in
and determine what the likelihood of
what you just said is to a certain
intent
okay the most simple ones are happier
sad
just use your happier set
if if the user starts off with hey how
you doing
it's probably happening
if it starts off with damn it
it's probably not
okay so the intelligent method to use
intense to draw your user down a
different path you as a developer have
to be able to number one understand
relevant intense for your particular use
case
and give the model enough training data
to be able to understand it when other
people use it
I have a guy that works for me he's a
PhD in statistics he's my data science
manager
and and every time I say the word
artificial intelligence he gets this
kind of nervous tick
because it's all math
and if there's nothing particularly
artificial or intelligent about it it's
just your ability to attack any new
problem with the right sequence of
mathematical steps
so
think about that entities and Slots
these are particularly relevant to the
solution I'll show you in a little bit
intense entities and slots
are in essence the intelligent
mechanism's way of extracting relevant
data from what you said even if you had
no intent of giving them that data
when I say I want you to extract the
mother's maiden name
you know I could just ask you what's
your mother's maiden name or you know I
could ask you in a different way you
know uh was your mother married
no what was your name you know I mean
you could think of a dozen ways to get
that data out without asking it directly
custom actions are the power behind all
of it because you know you can collect
all this data but what do you do with it
again the solution I'm going to show you
it's called rasa
rasa is an open source uh virtual
assistant solution I selected it for
this particular discussion because
number one it is open source it's
readily available they have extensive
documentation it's actively being
developed and if you go online they've
taken every key process and they've
built video tutorials around them so as
far as you having to try and figure out
how it works they've gone out of their
way to make it easy including a UI for
um
just uh um conversation driven design
the idea being is that you may ask it
one way you may ask it another way you
may ask in a way I've never even heard
of you may ask it seven different ways
each time you visit
and using conversation driven design
that Aggregates at all on the back end
and it uses that to learn so when that
conversation is done today the buck got
a tiny bit smarter
and the next five times it gets a little
bit smarter after that
so custom actions is a python back end
that allows you to take the data input
your entities
as variables and then feed that into
whatever type of action you want
it may be the username and password go
into an authentication script and come
back with the user's profile
you know I mean take your pick
stories
every every bot solution that you have
has behind it the notion of a story
because again to my data scientist
nervous twitch the machine's not that
smart
it's it can only know what it knows and
so you as a human have to start to give
it stories to look at so that it can
understand what to do with them
rules are a bit more strict than stories
in the fact that a story can change as
the conversation changes you may have
started talking about a performance
issue but then well if my performance is
in the tank and I need more CPU then it
becomes a capacity starting
then it becomes a security story as you
try to provide parameters to A system
that are in violation of corporate
policy
see all of these different paths can go
down depending on the story that you
give it rules are different
rules are stagnant they're static you
cannot deviate from them without
changing the entire intent
policies and models are really where the
secret sauce is the solution I'll show
you has a tensorflow back end that
allows it to process real-time and large
amounts of data with a relatively small
footprint and what it does is that every
time it learns a new input it relearns
and rebuilds its model
all right
so One Last Thing Before I actually show
it to you and I like to break this into
two pieces because some people like to
to hear the talk and some people like to
do the Hands-On piece and see how it
works
um so I usually pause after the talk and
then answer any questions and then we
can go into the Hands-On piece
and I see that we are still in good
shape so again rasa is only one and I
have no particular affiliation or
interest in rasa more than any other one
however I did select it here because of
its availability to anyone who wants to
use it because it is entirely open
source
it has a well-defined but customizable
structure
based on yaml in the back end and simple
yaml syntax you can create and expand
your Bot on the fly or Over time however
you choose to do and I'll show you what
that looks like in a minute
again strong online community
every one of my developers has three
screens
they have two screens for development
and then one screen just to do research
because how many times throughout the
day do you have to Google something
you know I mean it's just a reality the
days of having a you know a c developer
who knows C in and out and can answer
any question that's just gone you know
now
I have been seasoned developers that
even before
the line of code they go Google it
anyway make sure they're doing it right
right so you know huge online community
they're rasa docs and video tutorials
are quite extensive and then everything
under it is open source as well
so if your company is like many
companies looking for more
cost-effective and supportable solutions
open source is one of the areas that
they like to move for two reasons first
of all everyone assumes open source is
free that's just not true okay there's
portions of it are free this is free you
can develop it all you want if you want
any sort of Enterprise support of course
you know that's where they make their
money
um so that's one part and then the
second part is its maintainability
okay if I get hit by a truck tomorrow I
like to see if I win the lottery you
know basically if I get hit by a truck I
get hit by a truck tomorrow there is
absolutely no reason development cannot
continue with dozens of other users that
can be brought in to support it
they do have a UI if you choose
again you know just because I'm old you
know I prefer to work on the command
line but you know there are people that
prefer the UI
um and everything's based on
conversation driven design that's in
fact a huge point for the company as a
whole
doing it once is an instant failure
because the minute you train your model
in 10 minutes of toll
okay it's it cannot stand the test of
time without extensive maintenance so
your utility needs to learn
okay cannot rely on you to tell it what
to look for if it does
well it kind of didn't really solve your
problem because you need just as many
people to maintain it as you would to
answer the phone
and then of course it supports key
Integrations out of the box
so if you want to have your UI built
into your company's slacking environment
that's a real simple right on the box
built-in or you want to integrated with
teams where you can call up the botlet
you can call up any peer okay all of
these pieces are in place and capable
um relatively simple and it does support
those key models that I was describing
before
okay
so I am going to change menus and I'm
going to go around here because
[Music]
all right
[Music]
so I'm going to walk through a few key
pieces so if you really do have an
interest in implementing this
then I'm going to share with you how
it's done so that you can walk out of
here tomorrow sit at a table and build
your own
okay so rasa if you go to rasa.org and
you want to get started
rasa is a very simple I mean it's all
python-based so you're going to start by
creating a virtual environment you're
going to go ahead and pip install rasa
and it's going to install all the
updated dependencies for you
following that it's a simple rasa init
command and that will create everything
that you see right here in front of you
in a well-structured easy to understand
format
I'm going to kind of walk you through
some of the key files that you need to
understand in order to be able to to
create a solution quickly and the
solution I'm going to show you today I
did while I was drinking my coffee this
morning because you know I thought hey
probably be good to have what I know
works
so
I think it took me all of 15 minutes
to create a recover my password bot
okay now it doesn't mean it's perfect
doesn't mean it's got any custom actions
but in terms of the discussion
I can walk you through that simple
dialogue right here you know relatively
quickly so when you when you initiate
your rasa bot
[Music]
it's going to pre-load certain critical
files that you will manipulate as you
begin to build the solution
okay so at the root of it
is it's data and I'll talk about that in
a minute
its domain
and it's config now there are others and
I'll tell you that a vast majority of
people you know you can get up and
functional without manipulating the
others
the center of the Bots world is the
domain and that's what you see here
the domain is everything it knows
and if it's not in the domain it doesn't
know it
the domain includes a whole group of
intents that you've created and I'll
show you where those are in just a
second the default intents include you
know are you happy are you sad Etc
usually I just strip those things out
but you'll notice that on the bottom
I've got two that are not password
recovery and Recovery info
are too intense that you had to create
in order to make this password recovery
component work
under that is your data now these are
your slots your slots are stored in
memory and this is that retention that
we talked about earlier your ability to
be able to ask your end user questions
that again they may not even know why
you're asking but again the Bots aren't
bad so you might as well tell it
you know
what's your favorite restaurant what
city was your dad born in
these are all things that share but you
know it's not like the bot's gonna go
tell anyone right
so you've got all these components that
you're going to add and you're going to
store them in slots slots is that piece
of memory that that particular bit of
information is going to be stored until
you choose to put it elsewhere
the ones that I've selected or I put in
is Mother's maid name uh your favorite
restaurant and your username and and
there is no limit
to the number
and they are persistent throughout the
duration of the session with the user so
if the person comes back it you will
never have to ask them their username
again
okay it will maintain it
below that
if you choose you can create forms I
created one just to make it simple
and what forms do is they intelligently
keep asking you until the slot is full
so for instance you know if you
magically evade the mother's maiden name
it will not let you proceed until that
slot is full
and then there's all your responses your
responses can come in the form of
freeform text you can have responses as
images links you can send them out to a
video you can route them to a different
location your response is really up to
you
okay but it has the ability to take all
of those pieces
and output this in the form of an
intelligent conversation with the end
user which it's also tracking and
learning in the backing
so that's your domain if you don't leave
any with any other bit of information
yet you really want to give this a shot
your domain is going to be everything
your Bot knows
okay
how does your Bot use it is the other
question and that comes in the form of
data and actions
your data is broken out into three
pieces your natural language
understanding as we described your
stories and your rules
so if you look at the sample data that I
gave them again to my data science
manager's credit and his nervous twitch
okay no matter how intelligent you think
the machine is it's not
okay you have to give it something to
model huh
so in this case I've given it some
samples to build its model
okay so if somebody says I need my
password reset the bot doesn't know what
that means until you give it enough data
points to discover
through its natural language processing
that the combination of these tokens
equals I want my password reset
[Music]
so I've given it some samples I think I
forgot my password I forgot my password
can you help me recover my password
forgot password password recovery and
a good collection a Minimum Collection
of samples is two
if you wanted to do anything it needs at
least two that's not going to be very
intelligent
an optimal example or set which we've
discovered is usually around a hundred
now sometimes there isn't 100 ways to
ask a question
and you know then that is what it is but
that's where the the learning piece of
this comes in because I may not know the
87th way to ask to pass the reset my
password it could be something along the
lines of my damn password don't work
again
put it in there
it will begin to learn and then as other
people continue to use it it's
identified the tokens and it starts to
learn it without you putting in it
and then there's the whole recovery
information side okay
my bot doesn't know
Bill underscore Smith
that's that's gibberish
it it would discard it even though
Spacey is plugged into this bot
Spacey doesn't know what Bill underscore
Smith is
because I've added the underscore yeah
[Music]
oh being loaded yeah yeah I'll actually
get to that in a second so we'll look at
that in the config piece
um but you'll notice that I've
designated samples for username mother's
maiden name and and my favorite
restaurant is not McDonald's but I was
too lazy to type anything longer
okay so I've given it enough to be able
to say all right if I type in I love
McDonald's it knows what I'm talking
about
now to your question
the default models
are in your config
and right now I'm just using the default
models themselves now one of the
interesting things about uh rasa
themselves is they use a diet
architecture
which is how they're able to merge the
multiple models and and allow you to
pick and choose almost like the salad
bar so if you don't do anything the
models loaded are on the top you've got
your white space tokenizer red regex
featurizer you know you've got your
various vectoring features Etc all of
which then become processed through the
diet classifier and they even have you
know fallback intelligence if it really
doesn't understand what you're talking
about
just to finish that out credentials you
know if you need to to load credentials
for it if you need to attach it to
something you can do it there as well as
activate your endpoints
the second most powerful part of it
so you got your natural language
understanding I gave it enough to try
and figure out what somebody might tell
it
and then I've taken it a step further
and I've said hey
when somebody asks for that
oh
I did it in rules excuse me when
somebody asks for that here's what I
want you to do with it because it'll
retain the data and go thank you
mother's maiden name is Jones okay
thanks
but if you want to actually do anything
with it you have to give it a storyline
so you can see this one right here
activate password form so I created a
form that's going to make you tell me
all the information I want otherwise I
won't talk to you and then I will retain
that information in my slots
so once I've done all this
just give me one second
[Music]
ah
I'm used to old-fashioned keyboard
[Music]
next thing I'm going to do is I'm going
to train my model
[Music]
and what it's going to do is going to
take any new features new input new Etc
and I'm going to force it to learn it
and so it's going to go through and it's
going to build out multiple different
models and it's going to retain it
in the models folder
and this is its its training data
so it's taken it it's learned it and
it's built its model so now anything you
throw choose to throw at it it's going
to compare it to that existing model
takes just a second
most of it is just sticking to what I
already taught it
okay and you'll notice that it saved my
model and if you go into the models
folder
that's the most recent one which you can
see at the very bottom
now you'll notice there's multiple
and there's multiple because it's
referencing prior models just as much as
it's reference in current models to make
sure that as it continues to learn it's
it's using what it's learned and in
essence validating it against prior
learnings
so let's see if it works
if you were to use rasa X
you could do all this through a UI
but I'm not so I'm doing it through the
command line and what I've just
initiated is What's called the
interactive mode
so it's going to walk me through my
discussion but it's also going to tell
me if it's collecting the right
information and you'll be able to see
the slots fill up as we talk to them and
it's going to be a short discussion
what it does whenever you go in
interactive it does a retrain on the
model so we'll give it another second
it's a differential training so it's not
doing it all it's just checking for
anything that's changed since the last
time I was recorded
[Music]
all right
so you can see the input at the very
bottom of the screen it's probably kind
of hard to see I apologize
and I'm gonna start with hey
and it's going to tell me well I think
your intent is to greet
yeah I think he's right
okay so and then it's going to say well
whenever somebody greets me I'm not rude
I'm going to greet them back
and you can see right up here it said
all right
hey how are you
and then it's going to listen
and I would say I think I forgot
my password
and it's going to say the intent is
password recovery which is absolutely
correct in fact you'll notice up here
it's 100 positive that it's password
recovery if I had said something along
the lines of my darn password doesn't
work
it would have got it just the same but
it would have been like 97 98 positive
okay but because I spit into it exactly
the phrase in my training data it came
back with 100 going yep that's it
I know
all right so it's going to kick off the
password form and it's going to say you
can see right here can you tell me your
username
sure my username
[Music]
is Bill
Jenkins
[Music]
and you'll notice at the bottom it said
all right now mind you to the average
user they're not seeing any of this this
is just a development but you can see
it's correctly said okay Bill Jenkins is
your username and I'm going to store
that information
so Bill that's great
so I got one of my slots can you to
confirm your identity can you tell me
your mother's maiden name
sure
maiden name was Smith
[Music]
nope it did not like Smith
here
baby the name was
just cheat and say um
say one I had already put in there
her maiden name was because I don't have
Spacey running directly
they're maiden name was Janice Jones all
right we're gonna cheat
okay you'll notice that in this case
because I didn't give it enough data to
because I only gave it two it's not too
smart but it did pick out Janice Jones
and it's just like okay
let's keep that now you'll notice the
slots
so mother's maiden name Janice Jones
user doesn't know I'm storing that I can
do anything I want with it
Okay Mother's mate or uh Bill Jenkins is
the username
so it has one more question for me one
more question
interestingly office says that what's
your favorite restaurant
and I'm going to say MacDonald
[Music]
just for that one
all right
so it's completed all those
and it's going to utter my response
which says thanks for the info Bill
Jenkins so let me get this right your
mother's maiden name is Janice Jones
your favorite restaurants McDonald's
that information should come in handy
have a nice day
okay so point being
the more you give it to train on the
better it gets
and it allows you to store that
information and use that information in
any way you can fathom and again you'll
have to decide if that's an appropriate
direction for you and your company from
a security perspective or not all right
these guys are telling me that I'm done
sorry I talked more than I should have
any last minute questions before they
kicked me out
appreciate you all sitting through that
I hope you learned something and think
about using bots in your organization in
the future have a great day
right here
[Music]