I am not able to create contact flow because of that below error message. But when i tried to do export and import using AWS connect i was able to save it. I dont want to publish it. I just want to replicate the import functionality using boto3.
error message: {'message': 'Action with identifier 1c3f7cf2-c278-495f-bf06-12747abd0b54 has invalid resource: arn:aws:connect:us-west-2::instance//contact-flow/299cdb4c-54de-4e65-bef0-ffe40a29587d, Path: Actions[2]'}
desribe_contact_flow:
{'Arn': 'arn:aws:connect:us-west-2::instance//contact-flow/98990c59-b1da-46aa-a05f-d4c42ff0d367', 'Id': '98990c59-b1da-46aa-a05f-d4c42ff0d367', 'Name': 'Assigned Prompt Test', 'Type': 'CONTACT_FLOW', 'State': 'ACTIVE', 'Description': 'this is a contact flow with prompt block', 'Content': '{"Version":"2019-10-30","StartAction":"938223b8-9b22-445e-9918-7eb0cb3790ab","Metadata":{"entryPointPosition":{"x":40,"y":40},"ActionMetadata":{"d2a337a4-a222-43f6-9404-b182a1406f45":{"position":{"x":702.4,"y":203.2}},"938223b8-9b22-445e-9918-7eb0cb3790ab":{"position":{"x":244,"y":76.8},"parameters":{"PromptId":{"displayName":"Beep.wav"}},"promptName":"Beep.wav"},"1c3f7cf2-c278-495f-bf06-12747abd0b54":{"position":{"x":460.8,"y":335.2},"parameters":{"ContactFlowId":{"displayName":"hls-prompt2_Copy"}},"ContactFlow":{"text":"hls-prompt2_Copy"}}}},"Actions":[{"Parameters":{},"Identifier":"d2a337a4-a222-43f6-9404-b182a1406f45","Type":"DisconnectParticipant","Transitions":{}},{"Parameters":{"PromptId":"arn:aws:connect:us-west-2::instance/prompt/45543cca-b8fa-4f03-93ba-b47e7de96ae3"},"Identifier":"938223b8-9b22-445e-9918-7eb0cb3790ab","Type":"MessageParticipant","Transitions":{"NextAction":"d2a337a4-a222-43f6-9404-b182a1406f45","Errors":[{"NextAction":"1c3f7cf2-c278-495f-bf06-12747abd0b54","ErrorType":"NoMatchingError"}]}},{"Parameters":{"ContactFlowId":"arn:aws:connect:us-west-2::instance//contact-flow/299cdb4c-54de-4e65-bef0-ffe40a29587d"},"Identifier":"1c3f7cf2-c278-495f-bf06-12747abd0b54","Type":"TransferToFlow","Transitions":{"NextAction":"d2a337a4-a222-43f6-9404-b182a1406f45","Errors":[{"NextAction":"d2a337a4-a222-43f6-9404-b182a1406f45","ErrorType":"NoMatchingError"}]}}]}', 'Tags': {}}
Hi Awslewis, thank you for answering this question. However my goal is to replicate the save functionality in amazon connect UI in api using boto3. Like for instance the contact flow still has errors and not ready to be publish, I want the user to have the capability to save it. Right now, i only see create_contact_flow in boto3, this method automatically publish the contact flow. I am looking for a solution that to save. Hope it makes sense
The API actions specific to Contact Flows (DescribeContactFlow, UpdateContactFlowContent, CreateContactFlow, etc) do not currently support Saved state contact flows, however, there are plans to introduce this support in the future.