Open shaun0024 opened 2 years ago
That check is there to validate that if someone has both transcribe and contact lens enabled, it does not create two CCA records in Salesforce. We should add extra logic to skip that line if the TranscribeOutputS3BucketName value is empty though.
I am trying to understand how the CTI adapter integrates with Contact Lens, which I am using.
If I look at the Lambda (
sfProcessContactLens
) configuration, there is an environment variable calledTRANSCRIPTS_DESTINATION
that uses the parameterTranscribeOutputS3BucketName
. Looking at the description of the parameter it states:In my case, I had set both
PostcallRecordingImportEnabled
andPostcallTranscribeEnabled
to false and so leftTranscribeOutputS3BucketName
as an empty string since I am using Contact Lens.However, the Lambda
sfProcessContactLens
code is still trying to refer to an S3 bucket for transcription. Is this a mistake? I'm not sure why Transcribe still needs to be used when Contact Lens has already transcripted the recording.If I comment the lines 69, 72, 73 and 89 (lines which are trying the read the metadata from a Transcribe object in S3) from the
sfProcessContactLens.py
file, the code runs successfully and a Contact Lens entry is created in Salesforce.