{
  "Version": "2019-10-30",
  "StartAction": "847f7de8-61a1-4358-b3cd-caa9326141b4",
  "Metadata": {
    "entryPointPosition": {
      "x": -62.4,
      "y": 24.8
    },
    "ActionMetadata": {
      "847f7de8-61a1-4358-b3cd-caa9326141b4": {
        "position": {
          "x": 32.8,
          "y": 40
        }
      },
      "b95a52c2-c50d-4e74-9493-5dfa97b35a8f": {
        "position": {
          "x": 254.4,
          "y": 83.2
        }
      },
      "a47ccd5b-7683-47dc-89aa-8e75e8827ce2": {
        "position": {
          "x": 476.8,
          "y": 92
        },
        "parameters": {
          "ProfileRequestData": {
            "IdentifierValue": {
              "useDynamic": true
            }
          }
        },
        "useDynamic": {
          "IdentifierValue": true
        },
        "customerProfilesAction": "GetCustomerProfile"
      },
      "061a423c-6c89-4b78-85b7-eb9a3bd4ed11": {
        "position": {
          "x": 724,
          "y": -50.4
        },
        "parameters": {
          "ProfileRequestData": {
            "ProfileId": {
              "useDynamic": true
            }
          }
        }
      },
      "fa8f31fc-3781-49ab-bd8c-3090e053cfdf": {
        "position": {
          "x": 1173.6,
          "y": -49.6
        },
        "parameters": {
          "ProfileRequestData": {
            "ProfileId": {
              "useDynamic": true
            }
          }
        }
      },
      "5dca51b8-8852-4d36-9f6e-377898814523": {
        "position": {
          "x": 949.6,
          "y": -50.4
        },
        "conditions": [],
        "conditionMetadata": [
          {
            "id": "298f014f-dffa-4dda-98c5-9f9032928c92",
            "operator": {
              "name": "Is greater or equal",
              "value": "GreaterThanOrEqualTo",
              "shortDisplay": ">="
            },
            "value": "1000"
          }
        ]
      },
      "be816b00-594f-42c9-9b13-01024395f91b": {
        "position": {
          "x": 1391.2,
          "y": -47.2
        },
        "conditions": [],
        "conditionMetadata": [
          {
            "id": "5883886a-d8a5-4c3f-b58b-309c1424ab1e",
            "operator": {
              "name": "Is greater or equal",
              "value": "GreaterThanOrEqualTo",
              "shortDisplay": ">="
            },
            "value": "5"
          }
        ]
      },
      "d3dfd7da-4dbd-4b8f-89bd-392d98ed7f8e": {
        "position": {
          "x": 2077.6,
          "y": 89.6
        }
      },
      "142f9d81-c78d-4a9a-b9ff-ecce43b0bba2": {
        "position": {
          "x": 1608,
          "y": 137.6
        }
      },
      "8e1b4207-78b7-442b-9935-43784fb54a21": {
        "position": {
          "x": 1837.6,
          "y": 90.4
        },
        "parameters": {
          "QueueId": {
            "displayName": "Standard Queue"
          }
        },
        "queue": {
          "text": "Standard Queue"
        }
      },
      "bd1ed384-2a90-4508-aafe-ea15f751c108": {
        "position": {
          "x": 1606.4,
          "y": -44.8
        }
      },
      "5d8a731b-5176-4531-85ec-3c73f852b590": {
        "position": {
          "x": 2093.6,
          "y": 383.2
        }
      },
      "67604048-7636-431a-89ed-664e46cccea4": {
        "position": {
          "x": 1840,
          "y": -95.2
        },
        "parameters": {
          "QueueId": {
            "displayName": "Priority Queue"
          }
        },
        "queue": {
          "text": "Priority Queue"
        }
      },
      "9c7d9050-b151-4e73-a6b3-77c4c56b6a28": {
        "position": {
          "x": 2076.8,
          "y": -97.6
        }
      }
    },
    "Annotations": [],
    "name": "Amazon_Connect_Contact_Flow",
    "description": "",
    "type": "contactFlow",
    "status": "PUBLISHED",
    "hash": {}
  },
  "Actions": [
    {
      "Parameters": {
        "FlowLoggingBehavior": "Enabled"
      },
      "Identifier": "847f7de8-61a1-4358-b3cd-caa9326141b4",
      "Type": "UpdateFlowLoggingBehavior",
      "Transitions": {
        "NextAction": "b95a52c2-c50d-4e74-9493-5dfa97b35a8f"
      }
    },
    {
      "Parameters": {
        "RecordingBehavior": {
          "RecordedParticipants": [
            "Agent",
            "Customer"
          ]
        },
        "AnalyticsBehavior": {
          "Enabled": "True",
          "AnalyticsLanguage": "en-US",
          "AnalyticsRedactionBehavior": "Disabled",
          "AnalyticsRedactionResults": "RedactedAndOriginal",
          "ChannelConfiguration": {
            "Chat": {
              "AnalyticsModes": [
                "ContactLens"
              ]
            },
            "Voice": {
              "AnalyticsModes": [
                "RealTime"
              ]
            }
          },
          "SummaryConfiguration": {
            "SummaryModes": [
              "PostContact"
            ]
          }
        }
      },
      "Identifier": "b95a52c2-c50d-4e74-9493-5dfa97b35a8f",
      "Type": "UpdateContactRecordingBehavior",
      "Transitions": {
        "NextAction": "a47ccd5b-7683-47dc-89aa-8e75e8827ce2"
      }
    },
    {
      "Parameters": {
        "ProfileRequestData": {
          "IdentifierName": "_phone",
          "IdentifierValue": "$.CustomerEndpoint.Address"
        },
        "ProfileResponseData": [
          "AccountNumber",
          "FirstName",
          "LastName"
        ]
      },
      "Identifier": "a47ccd5b-7683-47dc-89aa-8e75e8827ce2",
      "Type": "GetCustomerProfile",
      "Transitions": {
        "NextAction": "061a423c-6c89-4b78-85b7-eb9a3bd4ed11",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          },
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "MultipleFoundError"
          },
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoneFoundError"
          }
        ]
      }
    },
    {
      "Parameters": {
        "ProfileRequestData": {
          "ProfileId": "$.Customer.ProfileId"
        },
        "ProfileResponseData": [
          "CalculatedAttributes._orders_total_price_sum"
        ]
      },
      "Identifier": "061a423c-6c89-4b78-85b7-eb9a3bd4ed11",
      "Type": "GetCalculatedAttributesForCustomerProfile",
      "Transitions": {
        "NextAction": "5dca51b8-8852-4d36-9f6e-377898814523",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          },
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoneFoundError"
          }
        ]
      }
    },
    {
      "Parameters": {
        "ProfileRequestData": {
          "ProfileId": "$.Customer.ProfileId"
        },
        "ProfileResponseData": [
          "CalculatedAttributes._orders_count"
        ]
      },
      "Identifier": "fa8f31fc-3781-49ab-bd8c-3090e053cfdf",
      "Type": "GetCalculatedAttributesForCustomerProfile",
      "Transitions": {
        "NextAction": "be816b00-594f-42c9-9b13-01024395f91b",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          },
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoneFoundError"
          }
        ]
      }
    },
    {
      "Parameters": {
        "ComparisonValue": "$.Customer.CalculatedAttributes._orders_total_price_sum"
      },
      "Identifier": "5dca51b8-8852-4d36-9f6e-377898814523",
      "Type": "Compare",
      "Transitions": {
        "NextAction": "142f9d81-c78d-4a9a-b9ff-ecce43b0bba2",
        "Conditions": [
          {
            "NextAction": "fa8f31fc-3781-49ab-bd8c-3090e053cfdf",
            "Condition": {
              "Operator": "NumberGreaterOrEqualTo",
              "Operands": [
                "1000"
              ]
            }
          }
        ],
        "Errors": [
          {
            "NextAction": "142f9d81-c78d-4a9a-b9ff-ecce43b0bba2",
            "ErrorType": "NoMatchingCondition"
          }
        ]
      }
    },
    {
      "Parameters": {
        "ComparisonValue": "$.Customer.CalculatedAttributes._orders_count"
      },
      "Identifier": "be816b00-594f-42c9-9b13-01024395f91b",
      "Type": "Compare",
      "Transitions": {
        "NextAction": "142f9d81-c78d-4a9a-b9ff-ecce43b0bba2",
        "Conditions": [
          {
            "NextAction": "bd1ed384-2a90-4508-aafe-ea15f751c108",
            "Condition": {
              "Operator": "NumberGreaterOrEqualTo",
              "Operands": [
                "5"
              ]
            }
          }
        ],
        "Errors": [
          {
            "NextAction": "142f9d81-c78d-4a9a-b9ff-ecce43b0bba2",
            "ErrorType": "NoMatchingCondition"
          }
        ]
      }
    },
    {
      "Parameters": {},
      "Identifier": "d3dfd7da-4dbd-4b8f-89bd-392d98ed7f8e",
      "Type": "TransferContactToQueue",
      "Transitions": {
        "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "QueueAtCapacity"
          },
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          }
        ]
      }
    },
    {
      "Parameters": {
        "Text": "Thank you for being a member. Your call has been transferred to the standard queue."
      },
      "Identifier": "142f9d81-c78d-4a9a-b9ff-ecce43b0bba2",
      "Type": "MessageParticipant",
      "Transitions": {
        "NextAction": "8e1b4207-78b7-442b-9935-43784fb54a21",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          }
        ]
      }
    },
    {
      "Parameters": {
        "QueueId": "arn:aws:connect:us-east-1:090355432087:instance/2f3f39d2-cc47-404e-ae90-a764ee8f97e1/queue/3a946e60-218b-4517-8408-9c2feb82d107"
      },
      "Identifier": "8e1b4207-78b7-442b-9935-43784fb54a21",
      "Type": "UpdateContactTargetQueue",
      "Transitions": {
        "NextAction": "d3dfd7da-4dbd-4b8f-89bd-392d98ed7f8e",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          }
        ]
      }
    },
    {
      "Parameters": {
        "Text": "Thank you for being a priority member. Your call has been transferred to the priority customer service queue."
      },
      "Identifier": "bd1ed384-2a90-4508-aafe-ea15f751c108",
      "Type": "MessageParticipant",
      "Transitions": {
        "NextAction": "67604048-7636-431a-89ed-664e46cccea4",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          }
        ]
      }
    },
    {
      "Parameters": {},
      "Identifier": "5d8a731b-5176-4531-85ec-3c73f852b590",
      "Type": "DisconnectParticipant",
      "Transitions": {}
    },
    {
      "Parameters": {
        "QueueId": "arn:aws:connect:us-east-1:090355432087:instance/2f3f39d2-cc47-404e-ae90-a764ee8f97e1/queue/5c160f8a-625a-468c-b22f-78f7f6d3d291"
      },
      "Identifier": "67604048-7636-431a-89ed-664e46cccea4",
      "Type": "UpdateContactTargetQueue",
      "Transitions": {
        "NextAction": "9c7d9050-b151-4e73-a6b3-77c4c56b6a28",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          }
        ]
      }
    },
    {
      "Parameters": {},
      "Identifier": "9c7d9050-b151-4e73-a6b3-77c4c56b6a28",
      "Type": "TransferContactToQueue",
      "Transitions": {
        "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
        "Errors": [
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "QueueAtCapacity"
          },
          {
            "NextAction": "5d8a731b-5176-4531-85ec-3c73f852b590",
            "ErrorType": "NoMatchingError"
          }
        ]
      }
    }
  ]
}