Dialogflow
Confirmation, Disconfirmation, Farewell Intents
confirmation and denying
closing
Visuals
Add the following intents, following the same procedure as you did for the ‘greeting’ intent. Use the intent names as specified below:
confirmation
If a user wants to agree or say ‘yes’.
no
If a user wants to disagree or say ‘no’.
farewell
If a user wants to say 'goodbye'.
Visuals
Add a closing page at the end of the program to bid farewell and thank the user.
Code Block |
---|
%%% Thank you page at the end.
page(c43, _, Html) :-
% Condition for when to show this page: there is no agenda or session anymore.
currentTopLevel(c43),
% Create the HTML page
html("<center><h1>Thank you for the interaction!</center>", Html). |
Prolog and Patterns
a50 recipe confirmation patterns in patterns.pl
...
% Intent: farewell
text(farewell, "bye").
Extend
last topic check, restart
...