Amazon-lex returning clarification prompt for all

2019-08-04 18:12发布

问题:

I am trying to create a chatbot in amazon lex but no matter what input I type it returns the clarification prompt to me. I have currently configured the bot with 2 slots mnemonic and company and with 2 sample utterances in a single intent requestParameterInfo

what is the {mnemonic}​ value for {company}​

what is the {mnemonic}​ value for {company}​ for the year {date}

any suggestions why this might be happening ?

回答1:

Couple things to check:

  • Make sure your Slots have a number of good example values.
  • Make sure you have built the bot and are testing on the current version.
  • Under monitoring, check the missed utterances and add them as sample utterances.
  • Check your Lambda initialization and validation hook is not overriding or otherwise messing with the request.

If none of these are the case, it could be that the values you are providing for {mnemonic} may not be able to be identified by Lex. I've seen this issue when trying to detect yes and no as a slot, and wouldn't be surprised if other words, or non-words are not detected.



标签: amazon-lex