Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

  1. confirmation

    1. If a user wants to agree or say ‘yes’.

  2. no

    1. If a user wants to disagree or say ‘no’.

  3. farewell

    1. 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

...