내용으로 건너뛰기

How to get out of the RETRY loop for Lex Slot Confirmation

0

I have set RETRY for my slot to 2...it goes through but if I say NO to the value it still goes back to the the beginning slot fill for the same intent. I want to branch out to another intent but I just don't see where I can detect or specify to branch when its through its alloted Retry prompts.

  • note it does the correct number of retry's but after its done it starts again..where can I tell it to go to another intent after x retry's are negative

질문됨 2년 전1.1천회 조회

2개 답변
0
수락된 답변

So I finally figured out the flow of this. Simple Bot with one intent and one slot variable. Enable confirmations and decline, null the slot variable and go to initial response. That is how that loop works.

I then added my "decline counter" lambda at Initial Response and had it direct to a new intent I added called TooManyAttempts if it hit my limit of retry's.

For what its worth, this simple flow is a classic example of how things are often way too messy, difficult and not well documented in the AWS world. IMHO

답변함 2년 전

전문가

검토됨 2년 전

0

To handle the RETRY loop in Amazon Lex when a slot confirmation fails:

  1. Use Conditional Branching: After the RETRY attempts are exhausted, you can define a condition in your Lex bot to branch out to a different intent or message. This is done using Lambda function hooks or conditional checks within your Lex bot's flow.

  2. Configure Fallback Intent: You can also configure a fallback intent that triggers when the maximum retries are reached. This allows you to direct the conversation to a different flow or provide an alternative response.

For detailed steps, refer to the Amazon Lex Slot Types Documentation and Fallback Intent Documentation.

I hope this helps! 😁

답변함 2년 전

  • sounds promising but what condition am I checking and in which section? If I knew what was invoked in that intent after the retries were exhausted I might be closer.

  • Alternatively, how do I trigger the fallback after retries exhausted? I am just not seeing where I hook anything in the retry loop to catch the last one and branch somewhere. Its probably there but not jumping out at me...p.s. V2 bot

  • Clarification..this is after the CONFIRMATION LOOP has been answered NO, not just a failed data type entry...that DOES fallback correctly. What I am looking for is to have 2 retry/Confirmation combinations and if the answer is always NO then redirect to Fallback or?

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

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

관련 콘텐츠