removing contexts on a LevV2 bot from unsiupported locale (or adding support for contexts there)

0

First time I’m building out a somewhat smart lex bot, totally self taught. I've built out intents, some picking up contexts from other intents.

Through testing I learned that slots for things like city have different available options based on locale, so I’ve copied my EN_US setup to EN_AU and found that the slots got fixed. (Hooray!!)

Just tried to update an intent in AU and am getting an error saying contexts are not supported in that locale, I assume they got copied across from EN_US. But the UI doesn't display in that locale contexts so I cant actually see how to clear them out. Any thoughts? Is this a bug?

And any idea why they are not supported?

1 Answer
0
Accepted Answer

Hi, yes the inputcontext is only available in en_US https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html among other things. So it doesn't show on other locales.

For now, I think the only way is to edit directly the model locale. Follow this in order

  1. In Amazon Lex console, Got to your bots and export that one.
  2. Unzip and edit in BotLocales/en_AU/{intentName}/intent.json
  3. Make sure that "inputContexts": null, "outputContexts": null,
  4. Save it, zip it
  5. Go to your bots and import this edited one.

Let us know!

AWS
Kike
answered a year ago
profile pictureAWS
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions