Closed rectalogic closed 2 years ago
Hi, thanks for reporting this. batch_detect_sentiment
doesn't return an overall sentiment and sentiment score. I think the better option is to use StartSentimentDetectionJob
to handle the job asynchronously. We are working on addressing this and will have the fix soon.
Hello, we are closing this ticket as we have not been able to replicate and we have not had similar issues reported. However, if this is still an issue, please feel free to reopen this issue or create a new one. Thank you!
The comprehend sentiment analysis lambda fails for a 28min phone call because the
detect_sentiment
API being uses is limited to 5000 chars.This https://github.com/amazon-connect/amazon-connect-salesforce-lambda/blob/bee2ccc1d92bc259615ce7e9d823e2f78a4f247e/sam-app/lambda_functions/sfComprehendUtil.py#L87 needs to split into multiple 5000 char documents and use the
batch_detect_sentiment
API like this: https://stackoverflow.com/questions/58344105/how-do-you-filter-documents-by-size-before-sending-to-aws-comprehend-via-boto3Or at the very least handle the
TextSizeLimitExceededException
exception - currently this prevents the transcript itself from getting into the salesforce CCA record.