Support

Config

{
  "name": <string>,
  "description": <string>,
  "type": "Support",
  "gameSpecificConfiguration": {
    "contextParameters": [{
      "type": <string>,
      "list": <boolean>,
      "label": <string>,
      "description": <string>,
      "initialValue": <string>
    ],
    "invocationUtterance": <MultilangVariationString>,
    "introductoryMessage": <NLG>,
    "autostart": <boolean>,
    "topics": [
      {
        "name": <string>,
        "description": <string>,
        "invocationUtterance": <MultilangVariationString>,
        "introductoryMessage": <NLG>,
        "autostart": <boolean>,
        "prompts": [
          {
            "contextParameter": <string>,
            "explanation": <NLG>,
            "question": <MultilangString>,
            "answers": [
              {
                "text": <MultilangString>,
                "callbacks": [<IntentString>, ...],
                "update": {
                  "operator": <string>,
                  "value": <string>
                }
              }
            ],
            "help": [
              {
                "trigger": <MultilangString>, // text that triggers help (will be added to answer options)
                "nlg": <NLG>
              }
            ]
          }
        ],
        "options": [
          {
            "name": <string>,
            "preconditions": [ // in case the option is available only under certain conditions
              {
                "label": <string>,
                "operator": <string>,
                "value": <string>
              }
            ],
            "steps": [
              {
                "preconditions": [ // in case the step applies only under certain conditions
                  {
                    "label": <string>,
                    "operator": <string>,
                    "value": <string>
                  }
                ],
                "explanation": <NLG>,
                "question": <MultilangString>,
                "answers": {
                  "done": <MultilangString>,
                  "fail": <MultilangString>
                },
                "help": [
                  {
                    "trigger": <MultilangString>, // text that triggers help (will be added to answer options)
                    "nlg": <NLG>
                  }
                ]
              }
            ],
            "done: {
            "name:" <String>,
            "message": <NLG>
            },
            "failWithOptions": {
              "text": <MultilangString>,
              "yes": <MultilangString>,
              "no": <MultilangString>,
              "startOver": <MultilangString>
            },
            "failWithoutOptions": {
              "name": <String>,
              "message": <NLG>
            }
          },
          "noOptionsMessage": {
            "name": <String>,
            "message": <NLG>
            }
        ]
      }
    ]
  }
}