Reputation: 3262
I checked there is a way to import and export the connect json in the Amazon Connect via UI.
It is working as expected. Is there a API (AWS SDK) available for importing? We want to automate this process! Could someone tell the way for achieving this?
Anyhelp is appreciated.
Thanks,
Harry
Upvotes: 2
Views: 2286
Reputation: 101
You can also use this library I made: https://github.com/sethkor/connect-backup
It uses the newly released AWS Connect API, you can find details here: https://docs.aws.amazon.com/connect/latest/APIReference/Welcome.html
It allows you to backup and restore contact flows plus some other AWS Connect components,
To back everything it can backup, including contact-flows type:
connect-backup --profile your-aws-profile backup --instance your-connect-instance-id --file path-to-write-backup
There are options to also write to S3.
It also comes with a Lambda and a AWS SAM template to set up periodic backup too.
Upvotes: 0
Reputation: 4135
As of September 17, 2020, AWS now has an API for programmatically creating and managing contact flows: https://aws.amazon.com/blogs/contact-center/programmatically-manage-contact-flows-with-new-amazon-connect-apis/
There isn’t much documentation yet. https://github.com/aws-samples/ac-contactflowapi exists but most of the API functionality is buried inside JavaScript.
https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateContactFlow.html probably describes it best. The content attribute is JSON serialized to a string and embedded again in the JSON attributes. I’m not yet certain where to find documentation for the JSON itself but you can build it interactively by using AWS Connect as shown in the above question.
Upvotes: 1
Reputation: 3180
Disclaimer : I am not with Amazon Connect product team.
Looking through the AWS CLI and boto3 docs, there is no API currently (i.e as of 03rd June, 2020) to support import and export of Amazon Connect - contact flow programmatically.
most likely because this feature is still in beta status as per Amazon Connect - Administrator guide
Upvotes: 1