Scenarios

The scenario is the base component to write a discussion.

What’s in it?

A scenario is composed of patterns, templates and sub scenarios.

Given this script :

? HELLO
    - Hello, i'm your devoted agent.

? BYE
    - Bye, wake me up if you need me.

Two different scenarios are defined. The first one will be activated if user says Hello, the second one if he says Bye.

Sub Scenarios

Most of the time, discussion consists in more than one interaction, for example :

  1. The agent asks a confirmation to the user to execute an operation
  2. The agent requires an information to execute an operation
  3. The agent just wants to get an input from the user

The syntax :

? HELLO
    - Hello, i'm your devoted agent. Do you want your morning coffee ?
        ? YES
            - Okay, giving the order to the machine, it will be ready in a few sec.
        ? NO
            - You're right, not so healthy.

The sub scenario is defined from line 3 to 6. It is basicaly a scenario, but indented under the HELLO scenario.