A dialog is a group or flow of interactions that are triggered based upon consumer intent.

Dialog types

There are three types of dialogs:

  • Dialog (Standard): Standard dialogs are triggered when the bot recognizes the consumer's message via an intent match or a pattern match. For more on this, see here.
  • Fallback: The fallback dialog is triggered when the bot doesn't recognize the consumer's message. For more on this, see here.
  • Disambiguation: The disambiguation dialog is triggered when the bot recognizes the consumer's input, but it can match it to multiple intents. As a result, clarification from the consumer is needed. For more on this, see here.

Create a new dialog

  1. Open the bot.
  2. Click + DIALOG in the lower-left corner.
  3. In the dialog that appears, do the following:
    • Dialog Name: Enter a descriptive name for the dialog. Use a standard naming convention to make your dialogs more sortable and easier to find.
    • Dialog Type: Select either Dialog (for a standard dialog), Fallback Dialog, or Disambiguation Dialog.
  4. Click Save.
  5. Build out the dialog as per your requirements.

Close the dialog or conversation

Use the following operators to close the current dialog or conversation.

LP_CLOSEDIALOG

To close the current dialog, create a Text statement that contains the special string “LP_CLOSEDIALOG”.

This is a system message; even though it appears in the Preview window, it is not shown to the consumer when deployed.

If this Text statement isn't the last in the dialog, set this statement's Next Step to "End Interaction" (not "Next Interaction").

LP_CLOSEDIALOG triggers a post-conversation survey.

LP_CLOSECONVERSATION

To close the current conversation, create a Text statement that contains the special string “LP_CLOSECONVERSATION”.

This is a system message; even though it appears in the Preview window, it is not shown to the consumer when deployed.

If this Text statement isn't the last in the dialog, set this statement's Next Step to "End Interaction" (not "Next Interaction").

LP_CLOSECONVERSATION does not trigger a post-conversation survey.