Search code examples
amazon-web-serviceschatbotamazon-lexslot

How to have Free text custom slot type on AWS lex


I need a slot type that accepts any type of input, The slot I want to point is to get review feedback from my clients.

After looking on with all possible option the only way to achieve is with training data on custom slot type that all search results provides as a solution, That is totally a nightmare with my case now.

I have provided 130+ sample data but it didn't work, 95% fails.

I also have some more slots that needs free text slot.

Do any one achieved free text, Need Help :(


Solution

  • You will definitely want to parse the input and validate it in a Lambda Function by checking the event.inputTranscript

    More details on how to do that in either of my other answers here:

    What is Amazon Lex inbuilt slot type for description or notes?

    AWS Lex + Lambda - Intercepting all of next user response regardless of context - without defining sample utterances?