Lex v2 Build - bot version - using aws cli command

0

Hi, I am working in lex v2, just want to know what is equal aws cli api method to build lex v2 bots. In old lex version we were using "aws lex-models put-bot" aws cli then we append "processBehavior": "BUILD" and that will build bot automatically , how i can able to Lex v2. Please any one share your thought, not able to find an answer for this query. Thanks Ram

2 Answers
0

Hi Don, thank you for your reply and the information you share. few more questions on automation question in LEX v2 BOT, Below is the logic we used previous LEX v1 automation,

Step 1: export bot/intents/slots - in JSON format Step 2: merge all bot/intents/slots - in single JSON Step 3: zip the JSON file Step 4: AWS lex-models start-import the zip file and used parameter --merge-strategy OVERWRITE_LATEST Step 5: AWS lex-models put-bot to update or replace the bot - BUILD the BOT step 6: AWS lex-models get-bot-alias, and find the LEX version and if no version is found create the new version Step 7: AWS lex-models put-bot-alias - update latest version.

can we achieve the same in LEX v2? can able export individual files for bots/intents/slots and merge them all in a single file? please share your thoughts Thanks Ram

answered 2 years ago
0

Hello Ram,

You can use the build bot locale api to build the bot via cli https://docs.aws.amazon.com/lexv2/latest/dg/API_BuildBotLocale.html

The simplified workflow is CreateBot -> Go to Draft -> Create bot locale -> Create Intents and Slots -> Update intents with slot priority -> Build bot locale.

Thanks!

AWS
Don
answered 2 years 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