0

I am using amazon lex in my connect flow. It takes an audio input and detects the intent accordingly. I want to do some form of preprocessing of the transcripted text before detecting the intent for it (because the preprocessing might change some words in the original text, and hence, change the resulted intent). So, ideally I would like to be able to capture the text before the intent gets detected. This means that using lambdas within an intent (codehook or fulfillment) is not exactly what I need to do. I need to (1) capture the transcripted text (2) perform preprocessing on it (3) send the preprocessed text to lex and let it do its magic.

I can see a similar preprocessing layer explained in this link but it assumes that the text is not audio based (the link is a tutorial for integration with twilio). So, what is the best way to do that?

Sarah
  • 1,361
  • 2
  • 14
  • 20

1 Answers1

0

To my understanding, this is not possible in Amazon Connect. They don't provide any capability to put your own code "between" the flow of connect audio -> transcription -> lex intent recognition.

Amazon doesn't let you do this for Alexa development either, which has a similar model. You never get access to the exact text of what the user said, just the Intent that was recognized and any slot inputs.

jspru
  • 1,018
  • 8
  • 16