{
  "$kind": "ELMA.Assistant.Bot",
  "version": "2.4.0",
  "name": "Тестирование",
  "scenarios": [
    {
      "$kind": "ELMA.Assistant.DefaultScenario",
      "triggerGroup": {
        "$kind": "ELMA.Assistant.DefaultTriggerGroup",
        "triggers": [
          {
            "$kind": "ELMA.Assistant.StartTrigger",
            "outputBindingId": "BND_wLm8qk8k8p",
            "id": "TRR_v9_X1ggiwr",
            "$designer": null
          }
        ],
        "name": null,
        "id": "TRG001000",
        "$designer": null
      },
      "actionGroups": [
        {
          "$kind": "ELMA.Assistant.DefaultActionGroup",
          "actions": [
            {
              "$kind": "ELMA.Assistant.TextInput",
              "messages": [
                {
                  "$kind": "ELMA.Assistant.Message",
                  "content": "Здравствуйте! Как вас зовут?",
                  "attachments": [],
                  "id": "MSG_g4IMs4OInp",
                  "$designer": null
                }
              ],
              "variableId": "VAR_UGVm5qy3Tf",
              "validators": [],
              "required": true,
              "cancellable": false,
              "unrecognizedPromptMessages": [],
              "defaultValueResponseMessages": [],
              "customValidationErrorMessages": [],
              "maxTurnCount": 3,
              "defaultValue": null,
              "canShowHelp": false,
              "helpMessages": [],
              "canTransferToOperator": false,
              "alwaysPrompt": true,
              "id": "ACT_jg2yDp7f6G",
              "$designer": null
            }
          ],
          "inputBindingIds": [
            "BND_wLm8qk8k8p"
          ],
          "outputBindingId": "BND_cYABu3yBKq",
          "name": "",
          "id": "ACG_H42eSCvTnK",
          "$designer": {
            "id": "ACG_H42eSCvTnK",
            "name": "",
            "description": null,
            "positionX": 424.0,
            "positionY": 70.0
          }
        },
        {
          "$kind": "ELMA.Assistant.DefaultActionGroup",
          "actions": [
            {
              "$kind": "ELMA.Assistant.TextOutput",
              "messages": [
                {
                  "$kind": "ELMA.Assistant.Message",
                  "content": "Рад знакомству, {VAR_UGVm5qy3Tf}!",
                  "attachments": [],
                  "id": "MSG_hFkW7aH1tu",
                  "$designer": null
                }
              ],
              "id": "ACT_d8_YiqS6Tc",
              "$designer": null
            }
          ],
          "inputBindingIds": [
            "BND_cYABu3yBKq"
          ],
          "outputBindingId": null,
          "name": "",
          "id": "ACG_Qel9ZHh8An",
          "$designer": {
            "id": "ACG_Qel9ZHh8An",
            "name": "",
            "description": null,
            "positionX": 798.0,
            "positionY": 70.0
          }
        }
      ],
      "intents": [],
      "bindings": [
        {
          "$kind": "ELMA.Assistant.Binding",
          "sourceEntityId": "TRR_v9_X1ggiwr",
          "targetEntityId": "ACG_H42eSCvTnK",
          "id": "BND_wLm8qk8k8p",
          "$designer": null
        },
        {
          "$kind": "ELMA.Assistant.Binding",
          "sourceEntityId": "ACG_H42eSCvTnK",
          "targetEntityId": "ACG_Qel9ZHh8An",
          "id": "BND_cYABu3yBKq",
          "$designer": null
        }
      ],
      "version": "1.1.0",
      "name": "Старт бота",
      "enabled": true,
      "interruption": "Disabled",
      "cancellation": "Disabled",
      "variables": [],
      "id": "SCN_pFS_rLPliy",
      "$designer": null
    }
  ],
  "variables": [
    {
      "$kind": "ELMA.Assistant.Variable",
      "name": "Имя",
      "code": "imya",
      "type": "String",
      "scope": "Bot",
      "owner": "User",
      "validators": [],
      "id": "VAR_UGVm5qy3Tf",
      "$designer": null
    }
  ],
  "settings": {
    "$kind": "ELMA.Assistant.BotSettings",
    "script": {
      "content": "// Примеры работы с событиями бота\n// 1. Событие распознанного интента\n// onIntentRecognized(\"pokupka_prodazha__chasy_raboty_magazinov\", async (botEvent) => {\n//   код интента\n//   console.log(botEvent.intentKey);\n//   результаты распознавания\n//   console.log(botEvent.recognizerResult);\n//   ввод пользователя\n//   console.log(botEvent.userInputText);\n//});\n\n// 2. Событие начала работы элемента ввода данных\n// onInputDialogBegin(\"store_name\", async (botEvent) => {\n//   тип распознавателя\n//   console.log(botEvent.recognizerKind);\n//   сообщение бота\n//   context.output.result.promptText = \"Введите название магазина\";\n//   сообщение при нераспознанном вводе\n//   context.output.result.unrecognizedPromptText = \"Не удалось распознать название магазина\";\n//   подсказки бота\n//   context.output.result.suggestedActions = [\"Мебель\", \"Одежда\", \"Обувь\"];\n// });\n\n// 3. Событие прерывания ввода\n// onInputDialogBeforeInterruption(\"store_name\", async (botEvent) => {\n//   ввод пользователя\n//   console.log(botEvent.userInputText);\n//   распознанное значение\n//   console.log(botEvent.recognizedValue);\n//   тип распознавателя\n//   console.log(botEvent.recognizerKind);\n//   нужно ли разрешать прерывать работу элемента\n//   context.output.result.allowInterruptions = false;\n// });\n\n// 4. Событие распознавания ввода пользователя\n// onInputDialogValueRecognized(\"store_name\", async (botEvent) => {\n//   ввод пользователя\n//   console.log(botEvent.userInputText);\n//   распознанное значение\n//   console.log(botEvent.recognizedValue);\n//   тип распознавателя\n//   console.log(botEvent.recognizerKind);\n//   объект диалоговой активности пользователя\n//   console.log(botEvent.activity);\n//   распознано ли значение\n//   context.output.result.recognized = true;\n//   распознанное значение\n//   context.output.result.outputValue = \"Магазин Мебель\";\n// });\n",
      "executionTimeout": 15,
      "retryCount": 5,
      "retryDelay": 1
    },
    "integrations": [],
    "localization": {
      "locale": "ru-ru"
    },
    "smtp": {
      "host": "",
      "name": "",
      "username": "",
      "password": "",
      "port": 465,
      "useSsl": true
    },
    "recognition": {
      "intentThreshold": 0.6,
      "nlp": {
        "useCustomTrainingModel": false,
        "customTrainingModel": null
      },
      "kb": {
        "enabled": null,
        "threshold": 0.8,
        "searchParentsOnlyIfNoContext": null
      },
      "resultSelectionPriority": "Score"
    },
    "conversationClosing": {
      "closingEnabled": false,
      "closingTimeoutSeconds": null,
      "closingMessage": null
    },
    "id": "SET_up7raqT6yC",
    "$designer": null
  },
  "id": "BOT_NKJrbedVsS",
  "$designer": null
}