{
  "modules": [
    {
      "id": "4f47f34d-6205-4952-9ae8-1a3226f48e00",
      "type": "SetLoggingBehavior",
      "branches": [
        {
          "condition": "Success",
          "transition": "dee5dbdb-b98f-41c2-873e-80f8676bcbc8"
        }
      ],
      "parameters": [
        {
          "name": "LoggingBehavior",
          "value": "Enable"
        }
      ],
      "metadata": {
        "position": {
          "x": 46,
          "y": 164
        }
      }
    },
    {
      "id": "dee5dbdb-b98f-41c2-873e-80f8676bcbc8",
      "type": "SetRecordingBehavior",
      "branches": [
        {
          "condition": "Success",
          "transition": "8d321c5e-adc5-4cd2-aea3-cdcef2c42f24"
        }
      ],
      "parameters": [
        {
          "name": "RecordingBehaviorOption",
          "value": "Enable"
        },
        {
          "name": "RecordingParticipantOption",
          "value": "Both"
        }
      ],
      "metadata": {
        "position": {
          "x": 50,
          "y": 332
        }
      }
    },
    {
      "id": "3cef690a-2743-4cef-81d7-0e3534f9a42a",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "I am sorry, this area is currently closed. I will now transfer you to the main menu to see if there is another option to suit your enquiry.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 1565,
          "y": 348
        },
        "useDynamic": false
      }
    },
    {
      "id": "da3d3620-3ac7-4522-ba7b-0fba355a4bd0",
      "type": "Disconnect",
      "branches": [],
      "parameters": [],
      "metadata": {
        "position": {
          "x": 3271,
          "y": 1307
        }
      }
    },
    {
      "id": "d8f2a0aa-3c64-4632-aa02-0e8562f92642",
      "type": "Transfer",
      "branches": [
        {
          "condition": "AtCapacity",
          "transition": "ccb45978-de5c-4a29-8dc3-40921b07aea5"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [],
      "metadata": {
        "position": {
          "x": 2797,
          "y": 571
        },
        "useDynamic": false,
        "queue": null
      },
      "target": "Queue"
    },
    {
      "id": "8a0f2549-d3a3-4e04-b166-f4640385ccc0",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "da3d3620-3ac7-4522-ba7b-0fba355a4bd0"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "I am sorry, we are currently experiencing technical difficulties. Please try calling again later.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 3027,
          "y": 1215
        },
        "useDynamic": false
      }
    },
    {
      "id": "a284e38a-087f-4fd7-a66e-26aa8c2f8861",
      "type": "SetQueue",
      "branches": [
        {
          "condition": "Success",
          "transition": "fbde4592-756c-431b-8541-b19484cc8409"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [
        {
          "name": "Queue",
          "value": "",
          "namespace": null,
          "resourceName": "Repairs"
        }
      ],
      "metadata": {
        "position": {
          "x": 2238,
          "y": 900
        },
        "useDynamic": false,
        "queue": {
          "id": "",
          "text": "Repairs"
        }
      }
    },
    {
      "id": "dc286cb7-8836-4c72-bba7-919ce990ad5c",
      "type": "SetQueue",
      "branches": [
        {
          "condition": "Success",
          "transition": "fbde4592-756c-431b-8541-b19484cc8409"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [
        {
          "name": "Queue",
          "value": "",
          "namespace": null,
          "resourceName": "Spare_Parts"
        }
      ],
      "metadata": {
        "position": {
          "x": 2222,
          "y": 1109
        },
        "useDynamic": false,
        "queue": {
          "id": "",
          "text": "Spare_Parts"
        }
      }
    },
    {
      "id": "fa850cff-04ab-4c29-aa7f-eec37ec945f4",
      "type": "SetQueue",
      "branches": [
        {
          "condition": "Success",
          "transition": "fbde4592-756c-431b-8541-b19484cc8409"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [
        {
          "name": "Queue",
          "value": "",
          "namespace": null,
          "resourceName": "Installations"
        }
      ],
      "metadata": {
        "position": {
          "x": 2201,
          "y": 1333
        },
        "useDynamic": false,
        "queue": {
          "id": "",
          "text": "Installations"
        }
      }
    },
    {
      "id": "6abb6805-62ea-491a-8ee1-6ac65b11fb62",
      "type": "SetQueue",
      "branches": [
        {
          "condition": "Success",
          "transition": "fbde4592-756c-431b-8541-b19484cc8409"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [
        {
          "name": "Queue",
          "value": "",
          "namespace": null,
          "resourceName": "Service"
        }
      ],
      "metadata": {
        "position": {
          "x": 2181,
          "y": 1543
        },
        "useDynamic": false,
        "queue": {
          "id": "",
          "text": "Service"
        }
      }
    },
    {
      "id": "c91c3803-5c33-4e44-8ad0-a67ff9cb5d97",
      "type": "SetQueue",
      "branches": [
        {
          "condition": "Success",
          "transition": "fbde4592-756c-431b-8541-b19484cc8409"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [
        {
          "name": "Queue",
          "value": "",
          "namespace": null,
          "resourceName": "Sales"
        }
      ],
      "metadata": {
        "position": {
          "x": 2256,
          "y": 705
        },
        "useDynamic": false,
        "queue": {
          "id": "",
          "text": "Sales"
        }
      }
    },
    {
      "id": "fbde4592-756c-431b-8541-b19484cc8409",
      "type": "SetEventHook",
      "branches": [
        {
          "condition": "Success",
          "transition": "d8f2a0aa-3c64-4632-aa02-0e8562f92642"
        },
        {
          "condition": "Error",
          "transition": "8a0f2549-d3a3-4e04-b166-f4640385ccc0"
        }
      ],
      "parameters": [
        {
          "name": "Type",
          "value": "AgentWhisper"
        },
        {
          "name": "ContactFlowId",
          "value": "",
          "resourceName": "newCallerAgentWhisper"
        }
      ],
      "metadata": {
        "position": {
          "x": 2564,
          "y": 578
        },
        "contactFlow": {
          "id": "",
          "text": "newCallerAgentWhisper"
        },
        "customerOrAgent": false,
        "useDynamic": false
      }
    },
    {
      "id": "81571516-6ac2-485b-8f52-15a561c8daa8",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "Welcome to Appliances for all. Thanks for calling.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 591,
          "y": 673
        },
        "useDynamic": false
      }
    },
    {
      "id": "39451929-80ee-4093-9b47-e7bb02b45f64",
      "type": "CheckAttribute",
      "branches": [
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "true",
          "transition": "6d0c1341-17da-4f16-97a8-88d09968ed9f"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "false",
          "transition": "81571516-6ac2-485b-8f52-15a561c8daa8"
        },
        {
          "condition": "NoMatch",
          "transition": "81571516-6ac2-485b-8f52-15a561c8daa8"
        }
      ],
      "parameters": [
        {
          "name": "Attribute",
          "value": "repeatCaller"
        },
        {
          "name": "Namespace",
          "value": "User Defined"
        }
      ],
      "metadata": {
        "position": {
          "x": 316,
          "y": 549
        },
        "conditionMetadata": [
          {
            "id": "d7a6db55-5e26-458b-91e2-f570cf6dcd5e",
            "operator": {
              "name": "Equals",
              "value": "Equals",
              "shortDisplay": "="
            },
            "value": "true"
          },
          {
            "id": "5c33863e-a5cd-47ec-92ed-b9004c5e2b85",
            "operator": {
              "name": "Equals",
              "value": "Equals",
              "shortDisplay": "="
            },
            "value": "false"
          }
        ]
      }
    },
    {
      "id": "72ca25be-c188-4d1b-9395-467a45d3d1fd",
      "type": "SetQueue",
      "branches": [
        {
          "condition": "Success",
          "transition": "1b2aa4bb-49a0-4711-82d8-a696012c6b5d"
        },
        {
          "condition": "Error",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        }
      ],
      "parameters": [
        {
          "name": "Queue",
          "value": "customerQueueARN",
          "namespace": "User Defined",
          "resourceName": null
        }
      ],
      "metadata": {
        "position": {
          "x": 1194,
          "y": 374
        },
        "useDynamic": true,
        "queue": "customerQueueARN"
      }
    },
    {
      "id": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127",
      "type": "GetUserInput",
      "branches": [
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "1",
          "transition": "c91c3803-5c33-4e44-8ad0-a67ff9cb5d97"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "2",
          "transition": "a284e38a-087f-4fd7-a66e-26aa8c2f8861"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "3",
          "transition": "dc286cb7-8836-4c72-bba7-919ce990ad5c"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "4",
          "transition": "fa850cff-04ab-4c29-aa7f-eec37ec945f4"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "5",
          "transition": "6abb6805-62ea-491a-8ee1-6ac65b11fb62"
        },
        {
          "condition": "Timeout",
          "transition": "6abb6805-62ea-491a-8ee1-6ac65b11fb62"
        },
        {
          "condition": "NoMatch",
          "transition": "6abb6805-62ea-491a-8ee1-6ac65b11fb62"
        },
        {
          "condition": "Error",
          "transition": "6abb6805-62ea-491a-8ee1-6ac65b11fb62"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "To speak to one of our Sales team, please press 1.\nFor repair bookings please press 2.\nFor spare parts, please press 3.\nFor in home installations, please press 4.\nFor all other enquiries, please press 5.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        },
        {
          "name": "Timeout",
          "value": "5"
        },
        {
          "name": "MaxDigits",
          "value": "1"
        }
      ],
      "metadata": {
        "position": {
          "x": 1920,
          "y": 697
        },
        "conditionMetadata": [
          {
            "id": "0f237033-fe58-4b4c-98e8-5507e552c2e6",
            "value": "1"
          },
          {
            "id": "a3eb0f83-1441-4ffd-b5a6-21b6e0958fe2",
            "value": "2"
          },
          {
            "id": "e671280a-7e30-4a92-996b-3490cc21663d",
            "value": "3"
          },
          {
            "id": "b0282eed-ee8a-490c-bc38-8f15260f760c",
            "value": "4"
          },
          {
            "id": "994082a6-2b5d-4c0f-a412-f82fbcbd6c70",
            "value": "5"
          }
        ],
        "useDynamic": false
      },
      "target": "Digits"
    },
    {
      "id": "6d0c1341-17da-4f16-97a8-88d09968ed9f",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "0ae0b405-9365-4c7a-98d9-61e62de4aa1a"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "Welcome back to Appliances for all. We can see that you have recently been in contact with us.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 578,
          "y": 117
        },
        "useDynamic": false
      }
    },
    {
      "id": "0ae0b405-9365-4c7a-98d9-61e62de4aa1a",
      "type": "GetUserInput",
      "branches": [
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "yesPrevious",
          "transition": "72ca25be-c188-4d1b-9395-467a45d3d1fd"
        },
        {
          "condition": "Evaluate",
          "conditionType": "Equals",
          "conditionValue": "noPrevious",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        },
        {
          "condition": "NoMatch",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        },
        {
          "condition": "Error",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "Are you calling about the same inquiry as your last call?",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        },
        {
          "name": "BotName",
          "value": "***SelectBotHere***"
        },
        {
          "name": "BotAlias",
          "value": "$LATEST"
        },
        {
          "name": "BotRegion",
          "value": "**** Update to region where bot is installed"
        }
      ],
      "metadata": {
        "position": {
          "x": 860,
          "y": 326
        },
        "conditionMetadata": [
          {
            "id": "067d5152-2786-47cd-a630-4c61045b6c96",
            "value": "yesPrevious"
          },
          {
            "id": "7fb4b58f-b513-4928-aee7-639fa50bbd1c",
            "value": "noPrevious"
          }
        ],
        "useDynamic": false,
        "dynamicMetadata": {}
      },
      "target": "Lex"
    },
    {
      "id": "7197aac3-dec1-4970-9878-9dc861843f1a",
      "type": "Transfer",
      "branches": [
        {
          "condition": "AtCapacity",
          "transition": "ccb45978-de5c-4a29-8dc3-40921b07aea5"
        },
        {
          "condition": "Error",
          "transition": "ccb45978-de5c-4a29-8dc3-40921b07aea5"
        }
      ],
      "parameters": [],
      "metadata": {
        "position": {
          "x": 2686,
          "y": 153
        },
        "useDynamic": false,
        "queue": null
      },
      "target": "Queue"
    },
    {
      "id": "f522d042-2de4-43d9-aa1c-347e6b32ecb8",
      "type": "UpdateRoutingPriority",
      "branches": [
        {
          "condition": "Success",
          "transition": "7197aac3-dec1-4970-9878-9dc861843f1a"
        }
      ],
      "parameters": [
        {
          "name": "AbsolutePosition",
          "value": 1
        }
      ],
      "metadata": {
        "position": {
          "x": 2416,
          "y": 158
        },
        "adjustUnit": null
      }
    },
    {
      "id": "d0d8d857-06ed-4593-aa86-6878bcc711ec",
      "type": "SetEventHook",
      "branches": [
        {
          "condition": "Success",
          "transition": "f522d042-2de4-43d9-aa1c-347e6b32ecb8"
        },
        {
          "condition": "Error",
          "transition": "f522d042-2de4-43d9-aa1c-347e6b32ecb8"
        }
      ],
      "parameters": [
        {
          "name": "Type",
          "value": "AgentWhisper"
        },
        {
          "name": "ContactFlowId",
          "value": "",
          "resourceName": "returningCallerAgentWhisper"
        }
      ],
      "metadata": {
        "position": {
          "x": 2126,
          "y": 162
        },
        "contactFlow": {
          "id": "",
          "text": "returningCallerAgentWhisper"
        },
        "customerOrAgent": false,
        "useDynamic": false
      }
    },
    {
      "id": "ccb45978-de5c-4a29-8dc3-40921b07aea5",
      "type": "PlayPrompt",
      "branches": [
        {
          "condition": "Success",
          "transition": "f3b9b0bf-2b4f-491a-aa47-65ffdbac0127"
        }
      ],
      "parameters": [
        {
          "name": "Text",
          "value": "I am sorry, I am currently unable to transfer you to this queue. I will now put you through to the main menu to see if another option may be suitable for your enquiry.",
          "namespace": null
        },
        {
          "name": "TextToSpeechType",
          "value": "text"
        }
      ],
      "metadata": {
        "position": {
          "x": 2107,
          "y": 385
        },
        "useDynamic": false
      }
    },
    {
      "id": "1b2aa4bb-49a0-4711-82d8-a696012c6b5d",
      "type": "CheckHoursOfOperation",
      "branches": [
        {
          "condition": "True",
          "transition": "d2eaf39c-09a8-49e0-b77b-d3105c8f8f74"
        },
        {
          "condition": "False",
          "transition": "3cef690a-2743-4cef-81d7-0e3534f9a42a"
        },
        {
          "condition": "Error",
          "transition": "ccb45978-de5c-4a29-8dc3-40921b07aea5"
        }
      ],
      "parameters": [],
      "metadata": {
        "position": {
          "x": 1546,
          "y": 88
        }
      }
    },
    {
      "id": "d2eaf39c-09a8-49e0-b77b-d3105c8f8f74",
      "type": "CheckStaffing",
      "branches": [
        {
          "condition": "True",
          "transition": "d0d8d857-06ed-4593-aa86-6878bcc711ec"
        },
        {
          "condition": "False",
          "transition": "ccb45978-de5c-4a29-8dc3-40921b07aea5"
        },
        {
          "condition": "Error",
          "transition": "ccb45978-de5c-4a29-8dc3-40921b07aea5"
        }
      ],
      "parameters": [
        {
          "name": "Status",
          "value": "Available"
        },
        {
          "name": "Queue",
          "value": "customerQueueARN",
          "namespace": "User Defined",
          "resourceName": null
        }
      ],
      "metadata": {
        "position": {
          "x": 1855,
          "y": 112
        },
        "useDynamic": true,
        "queue": "customerQueueARN"
      }
    },
    {
      "id": "42177587-801d-4929-a984-d33bcd6bfb9e",
      "type": "SetAttributes",
      "branches": [
        {
          "condition": "Success",
          "transition": "39451929-80ee-4093-9b47-e7bb02b45f64"
        },
        {
          "condition": "Error",
          "transition": "39451929-80ee-4093-9b47-e7bb02b45f64"
        }
      ],
      "parameters": [
        {
          "name": "Attribute",
          "value": "repeatCaller",
          "key": "repeatCaller",
          "namespace": "External"
        },
        {
          "name": "Attribute",
          "value": "customerQueueName",
          "key": "customerQueueName",
          "namespace": "External"
        },
        {
          "name": "Attribute",
          "value": "customerQueueARN",
          "key": "customerQueueARN",
          "namespace": "External"
        },
        {
          "name": "Attribute",
          "value": "agentName",
          "key": "agentName",
          "namespace": "External"
        },
        {
          "name": "Attribute",
          "value": "agentARN",
          "key": "agentARN",
          "namespace": "External"
        }
      ],
      "metadata": {
        "position": {
          "x": 312,
          "y": 338
        }
      }
    },
    {
      "id": "8d321c5e-adc5-4cd2-aea3-cdcef2c42f24",
      "type": "SetVoice",
      "branches": [
        {
          "condition": "Success",
          "transition": "265fc424-6f38-4d01-a275-f2b97fa2cd9d"
        }
      ],
      "parameters": [
        {
          "name": "GlobalVoice",
          "value": "Amy"
        },
        {
          "name": "GlobalEngine",
          "value": "Standard"
        }
      ],
      "metadata": {
        "position": {
          "x": 52,
          "y": 505
        }
      }
    },
    {
      "id": "265fc424-6f38-4d01-a275-f2b97fa2cd9d",
      "type": "InvokeExternalResource",
      "branches": [
        {
          "condition": "Success",
          "transition": "42177587-801d-4929-a984-d33bcd6bfb9e"
        },
        {
          "condition": "Error",
          "transition": "42177587-801d-4929-a984-d33bcd6bfb9e"
        }
      ],
      "parameters": [
        {
          "name": "FunctionArn",
          "value": "**** Change to searchCustomerCalls lambda",
          "namespace": null
        },
        {
          "name": "TimeLimit",
          "value": "3"
        },
        {
          "name": "Parameter",
          "key": "acPhoneNumber",
          "value": "Customer Number",
          "namespace": "System"
        }
      ],
      "metadata": {
        "position": {
          "x": 300,
          "y": 124
        },
        "dynamicMetadata": {
          "acPhoneNumber": true
        },
        "useDynamic": false
      },
      "target": "Lambda"
    }
  ],
  "version": "1",
  "type": "contactFlow",
  "start": "4f47f34d-6205-4952-9ae8-1a3226f48e00",
  "metadata": {
    "entryPointPosition": {
      "x": 42,
      "y": 15
    },
    "snapToGrid": false,
    "name": "repeatCallerFlow",
    "description": null,
    "type": "contactFlow",
    "status": "published",
    "hash": "cd3551f1f1268cc038d49ac4cbab6e154241b1b25677e3ed76b044971889222f"
  }
}
