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개 답변
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

답변함 2년 전
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
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠