-
Notifications
You must be signed in to change notification settings - Fork 209
Conversations
For conversation to really flow you need to have more then one exchange. We use a % command to recall the previous thing said and continue to build off of that.
+ *
- What is your favorite color?
+ *1
% What is your favorite color?
- <cap> is mine too.
So let's walk though this example. Some input comes into the system and the open wildcard matches and replies with What is your favorite color?
When the next input comes into the system, it tries to match it with all the possible patterns, and at the same time looks for any previous responses, i.e.. statements starting with a %
. In this case, their is a previous response, i.e.. % What is your favorite color?
line.
It check the user history for try and match the previous response, and if it matches, That particular gambit is selected. In this case it is *1
meaning one word. The bot then replies with <cap> is mine too
. replacing that one word with <cap>
.
Note that, in the current version, the line with previous reply match i.e.. the %
command will come after, and not before, the matching gambit with +
command