We are using Amazon connect which uses the "Get customer input" interact block to use the Amazon Lex which internally connects to Lambda so the flow will be like
Amazon Connect -> (using Get Customer Input, It connects to Amazon Lex) Amazon Lex -> (In Amazon Lex, the intent is pointed to Amazon Lambda) Amazon Lambda
Amazon connect -> Amazon Lex -> AWS Lambda
The flow works for all the intents as expected.
but for a particular flow, We need to upload the file from lambda to S3 and return the s3 download link as a response to the lex, Since it has the operation of upload the file to S3, the AWS lambda takes 7 seconds to complete the request.
Now the Amazon Connect fails with Error in the Get Customer Input (which points to Amazon Lex),
So do I need to configure any timeout in Amazon Connect (Get Customer Input block / somewhere) which waits till the lambda process of 7 seconds gets completed?
Any help is appreciated.
Thanks,
Harry

Amazon Connect is a call center solution where it would be a bad customer experience to make them wait for prompts even more than 3 seconds. The use case of performing and upload operation seems to be an operational job where it can trigger the process through Amazon Connect and the call can move on. Once the S3 upload is done then it can notify the concerned recipients on the status.