This site is no longer updated.Go to new Conversational Cloud docs

YAML dictionaries


YAML dictionaries are used to store heterogeneous information within a single project. These can be bot response texts, API keys, volume settings or other settings.


The data are saved to a dictionary in the following format:

key: value

An entry can have a nested structure:

volumeControl:
  levels: 100
  step: 20

You can use variables from objects in your value:

ifUserHasRightAnswers:
  a1: "We answered correctly to {{$temp.right}} {{$temp.ru__answers}} at the current difficulty level!"

Using a dictionary

The answers.yaml dictionary with chat bot replies:

botAnswers:
    a1: "Your number: {{ $parseTree._Number }}"
    a2: Good to go! Your number: {{ $parseTree._Number }}

Use the require tag to include a dictionary:

require: answers.yaml
    var = answers

patterns:
    $Number = (1/2/3/4/5)

theme: /

    state: Number
        q!: $Number
        script:
            $session.number = $parseTree._Number;
        random:
        a: Your number: {{ $parseTree._Number }}
        a: {{answers.botAnswers.a2}}

Responses from the dictionary can be accessed as normal variables. For example, via the a tag, like you do in the script.