Versions Compared

Key

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

Dialogflow

Confirmation, Disconfirmation, Farewell Intents

...

  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) :-

Prolog and Patterns

a50recipeConfirm: Confirming a Recipe in patterns.pl

...

% Pattern C4.3: Closing Farewell (Agent)
% Example:
% A: goodbye
% U: bye
% Instruction:
% 1. Introduce an intent ‘farewell' for saying goodbye by adding this intent to your Dialogflow
% agent (for user recognition) and the response.pl file (for agent text generation).
% 2. Add a pattern here where the agent initiates (i.e. starts) saying goodbye and then the user is
% allowed to say goodbye.
% 3. Add the c43 pattern you introduced to the agent’s agenda.

Extend

Introduce a last topic check to your farewell pattern to see if the user wants anything else or wishes to find another recipe. If they do restart the entire conversation. Note: this can be done using [agent, restart] which resets the agent agenda to the initial agenda at the start of session.

...