{
  "$kind": "Microsoft.AdaptiveDialog",
  "$designer": {
    "id": "2luWYj",
    "name": "WhoIsPeerDialog",
    "description": ""
  },
  "autoEndDialog": true,
  "defaultResultProperty": "dialog.result",
  "triggers": [
    {
      "$kind": "Microsoft.OnBeginDialog",
      "$designer": {
        "name": "BeginDialog",
        "description": "",
        "id": "C0rITH"
      },
      "actions": [
        {
          "$kind": "Microsoft.IfCondition",
          "$designer": {
            "id": "ooNnhY"
          },
          "condition": "=not(exists($UserFound))",
          "elseActions": [
            {
              "$kind": "Microsoft.TraceActivity",
              "$designer": {
                "id": "vjgu3O"
              },
              "name": "UserAlreadyProvided",
              "value": "=$UserFound"
            },
            {
              "$kind": "Microsoft.Graph.User.GetUserProfile",
              "$designer": {
                "id": "1kYUiQ"
              },
              "resultProperty": "$UserFound",
              "token": "=user.token.token",
              "userId": "=$UserFound"
            }
          ],
          "actions": [
            {
              "$kind": "Microsoft.BeginDialog",
              "$designer": {
                "id": "lVW6uP"
              },
              "activityProcessed": true,
              "dialog": "FindPersonDialog",
              "resultProperty": "$UserFound",
              "options": {
                "nameEntity": "=$nameEntity"
              }
            }
          ]
        },
        {
          "$kind": "Microsoft.IfCondition",
          "$designer": {
            "id": "qBDQhh"
          },
          "condition": "=exists($UserFound)",
          "elseActions": [
            {
              "$kind": "Microsoft.SendActivity",
              "$designer": {
                "id": "9JCLK1"
              },
              "activity": "${SendActivity_9JCLK1()}"
            },
            {
              "$kind": "Microsoft.EndDialog",
              "$designer": {
                "id": "rnko0k"
              }
            }
          ]
        },
        {
          "$kind": "Microsoft.TraceActivity",
          "$designer": {
            "id": "rHT96x"
          },
          "name": "UserFound",
          "label": "UserFound",
          "valueType": "String",
          "value": "=dialog.UserFound"
        },
        {
          "$kind": "Microsoft.Graph.User.GetPeers",
          "$designer": {
            "id": "SBjTDm"
          },
          "resultProperty": "dialog.Result",
          "token": "=user.token.token",
          "userId": "=$UserFound.Id",
          "maxCount": 15
        },
        {
          "$kind": "Microsoft.BeginDialog",
          "$designer": {
            "id": "Ldr65P"
          },
          "activityProcessed": true,
          "dialog": "UserListDialog",
          "options": {
            "UserList": "=$Result",
            "Scenario": "Peers",
            "User": "=$UserFound",
            "AutoChooseFirst": "false"
          },
          "resultProperty": "$DetailUser"
        },
        {
          "$kind": "Microsoft.IfCondition",
          "$designer": {
            "id": "2bT4YD"
          },
          "condition": "=exists($DetailUser)",
          "actions": [
            {
              "$kind": "Microsoft.BeginDialog",
              "$designer": {
                "id": "yuDqlV"
              },
              "activityProcessed": true,
              "dialog": "WhoIsPersonDialog",
              "options": {
                "UserFound": "=$DetailUser"
              }
            }
          ],
          "elseActions": [
            {
              "$kind": "Microsoft.SendActivity",
              "$designer": {
                "id": "7uCWqD"
              },
              "activity": "${SendActivity_7uCWqD()}"
            }
          ]
        },
        {
          "$kind": "Microsoft.EndDialog",
          "$designer": {
            "id": "YtwbHP"
          }
        }
      ]
    }
  ],
  "generator": "WhoIsPeerDialog.lg",
  "recognizer": "WhoIsPeerDialog.lu.qna",
  "id": "WhoIsPeerDialog"
}
