{"Version":"2019-10-30","StartAction":"Check Channel","Metadata":{"entryPointPosition":{"x":-240.8,"y":120.8},"ActionMetadata":{"Check Channel":{"position":{"x":-120.8,"y":120},"isFriendlyName":true,"conditions":[],"conditionMetadata":[{"id":"690106e2-8534-4f19-a412-54fd77de24f6","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"VOICE"},{"id":"aada7258-a861-4661-be93-7fa5a60ea2ff","operator":{"name":"Equals","value":"Equals","shortDisplay":"="},"value":"TASK"}]},"serviceType - Medication Refill":{"position":{"x":132,"y":341.6},"isFriendlyName":true,"dynamicParams":[]},"serviceType - Medication Question":{"position":{"x":124.8,"y":120.8},"isFriendlyName":true,"dynamicParams":[]},"1c83af16-1d95-4e6d-86b0-0476c158169b":{"position":{"x":840.8,"y":120}},"serviceType - General Inquiry":{"position":{"x":120.8,"y":558.4},"isFriendlyName":true,"dynamicParams":[]},"Set pharmacy queue":{"position":{"x":360,"y":120.8},"isFriendlyName":true,"parameters":{"QueueId":{"displayName":"BasicQueue"}},"queue":{"text":"BasicQueue"}},"Transfer to pharmacy queue":{"position":{"x":599.2,"y":121.6},"isFriendlyName":true}},"Annotations":[],"name":"Medication Refill And Question","description":"Flow routing voice call to pharmacy for medication question, routing task to pharmacy for medication refill.","type":"contactFlow","status":"published","hash":{}},"Actions":[{"Parameters":{"ComparisonValue":"$.Channel"},"Identifier":"Check Channel","Type":"Compare","Transitions":{"NextAction":"serviceType - General Inquiry","Conditions":[{"NextAction":"serviceType - Medication Question","Condition":{"Operator":"Equals","Operands":["VOICE"]}},{"NextAction":"serviceType - Medication Refill","Condition":{"Operator":"Equals","Operands":["TASK"]}}],"Errors":[{"NextAction":"serviceType - General Inquiry","ErrorType":"NoMatchingCondition"}]}},{"Parameters":{"Attributes":{"serviceType":"MEDICATION_REFILL"},"TargetContact":"Current"},"Identifier":"serviceType - Medication Refill","Type":"UpdateContactAttributes","Transitions":{"NextAction":"Set pharmacy queue","Errors":[{"NextAction":"Set pharmacy queue","ErrorType":"NoMatchingError"}]}},{"Parameters":{"Attributes":{"serviceType":"MEDICATION_QUESTION"},"TargetContact":"Current"},"Identifier":"serviceType - Medication Question","Type":"UpdateContactAttributes","Transitions":{"NextAction":"Set pharmacy queue","Errors":[{"NextAction":"Set pharmacy queue","ErrorType":"NoMatchingError"}]}},{"Parameters":{},"Identifier":"1c83af16-1d95-4e6d-86b0-0476c158169b","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{"Attributes":{"serviceType":"GENERAL_INQUIRY"},"TargetContact":"Current"},"Identifier":"serviceType - General Inquiry","Type":"UpdateContactAttributes","Transitions":{"NextAction":"Transfer to pharmacy queue","Errors":[{"NextAction":"Transfer to pharmacy queue","ErrorType":"NoMatchingError"}]}},{"Parameters":{"QueueId":"arn:aws:connect:us-east-1:472722051970:instance/ed598d7b-c5c2-40ed-bee9-edabc378a770/queue/eecea1d8-6d0c-4616-810e-45efdd112e5b"},"Identifier":"Set pharmacy queue","Type":"UpdateContactTargetQueue","Transitions":{"NextAction":"Transfer to pharmacy queue","Errors":[{"NextAction":"Transfer to pharmacy queue","ErrorType":"NoMatchingError"}]}},{"Parameters":{},"Identifier":"Transfer to pharmacy queue","Type":"TransferContactToQueue","Transitions":{"NextAction":"1c83af16-1d95-4e6d-86b0-0476c158169b","Errors":[{"NextAction":"1c83af16-1d95-4e6d-86b0-0476c158169b","ErrorType":"QueueAtCapacity"},{"NextAction":"1c83af16-1d95-4e6d-86b0-0476c158169b","ErrorType":"NoMatchingError"}]}}]}