Step 6: Update the Intent Configuration to Add an Utterance (Console)
The OrderFlowers
bot is configured with only two utterances. This
provides limited information for Amazon Lex to build a machine learning model that
recognizes
and responds to the user's intent. Try typing "I want to order flowers" in the test
window. Amazon Lex doesn’t recognize the text, and responds with "I didn't understand
you,
what would you like to do?" You can improve the machine learning model by adding more
utterances.

Each utterance that you add provides Amazon Lex with more information about how to respond to your users. You don't need to add an exact utterance, Amazon Lex generalizes from the samples that you provide to recognize both exact matches and similar input.
To add an utterance (console)
-
Add the utterance "I want flowers" to the intent by typing it in the Sample utterances section of the intent editor, and then clicking the plus icon next to the new utterance.
-
Build your bot to pick up the change. Choose Build, and then choose Build again.
-
Test your bot to confirm that it recognized the new utterance . In the test window, type "I want to order flowers." Amazon Lex recognizes the phrase and responds with "What type of flowers would you like to order?".
Next Step