Hi Team,
We have a business use case to retrieve the Chat transcripts into the Contact Channel Analytics record in Salesforce. Currently in Line#50 in the 'sfExecuteTranscriptionStateMachine.py' Lambda function, there is filter to check for 'Recording Type' = 'Audio':
. if('Attributes' in recordObj and 'Recording' in recordObj and recordObj["Recording"]!=None and 'Location' in recordObj["Recording"] and recordObj["Recording"]["Status"]=='AVAILABLE' **and recordObj["Recording"]["Type"]=='AUDIO')**: .
If we comment out this 'Audio' filter, it considers 'CHAT' type as well and then creates a CCA record in Salesforce for a completed Chat conversation in Amazon Connect CCP.
A new Contact attribute (similar to postcallRecordingImportEnabled) can be set to 'true' (e.g. postchatTranscriptImportEnabled) in the Contact Flow. This attribute can be conditionally checked in 'sfExecuteTranscriptionStateMachine.py' before a CCA record creation.
Can we include this as a feature request please?
Best regards