简体   繁体   中英

How can I define Slot Priority for Slot Values in an Intent in LexV2

I am trying to build my Lex Bot but receiving this error message

Details Recommended action Slot ids [NumberTwo, Number] don't define a slot priority. Update the intent to add a priority to these slots. - Slot ids [Number] don't define a slot priority. Update the intent to add a priority to these slots. - Slot ids [Answer] don't define a slot priority. Update the intent to add a priority to these slots. - Slot ids [Number] don't define a slot priority. Update the intent to add a priority to these slots. -

I am using AWS SDK for Lex with Python to create the bot.

How can I update the intent to add slot priority for my slots?

Answered here https://repost.aws/questions/QUB4WaCne6QxOntq1-R6LtlQ/how-can-i-define-slot-priority-for-slot-values-in-an-intent-in-lex-v-2

The python AWS Lex v2 SDK method I used to add slot priorities to and Intent slot were:

  1. create_intent
  2. create_slot
  3. update_intent

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM