aws-samples / multi-channel-customer-engagement

MIT No Attribution
7 stars 13 forks source link

Error en el customer ID #10

Closed ensamblador closed 3 years ago

ensamblador commented 3 years ago

Hi the Lambda function that saves the transcription to s3 SaveTranscriptionToS3 is using

    interaction = {
        'customerId': '1023456789',
        'interactionId': event["jobName"],
        'interactionDateTime': datetime.now().isoformat(),
        'interactionType': 'Call Transcript',
        'transcribeJobId': event["jobName"],
        'transcript': transcript_obj["results"]["transcripts"][0]["transcript"]
    }

And the function that extract comprehend NLP features uses 'customerId': '123456789', (whithout 0)

fixed by changing 'customerId': '1023456789' => 'customerId': '123456789' on SaveTranscriptionToS3 function

andres-lindo commented 3 years ago

Resolved