about session attributes and authentication of user

0

Actually i am not clear yet. In my scenario I have created an authentication intent . for other intent like transaction related intent if the user directly hit those transaction related intent it should ask first authentication like username , mobile and email. also i want that if the authentication happened for one time then it should not ask for other intent .

swarup
질문됨 일 년 전235회 조회
1개 답변
0
  1. You can use a session attribute to see if the customer is authenticated already or not.
  2. Use conditional branching to branch the conversation based on if the customer is authenticated. (https://docs.aws.amazon.com/lexv2/latest/dg/paths-branching.html)
  3. If the customer is not authenticated. Save the name of the current intent in an attribute (so you know where to go back to later).
  4. You can switch to the authentication intent (https://docs.aws.amazon.com/lexv2/latest/dg/paths-nextstep.html)
  5. When the user is authenticated. Update the attribute you use for authentication (Now that it is set to true, other intents won't have to transfer to the authentication intent). 6.. When the user has been authenticated, look at the attribute where you saved the intent name you came from and switch back to it.
profile pictureAWS
답변함 일 년 전

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

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

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

관련 콘텐츠