1 個回答
- 最新
- 最多得票
- 最多評論
0
- You can use a session attribute to see if the customer is authenticated already or not.
- 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)
- 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).
- You can switch to the authentication intent (https://docs.aws.amazon.com/lexv2/latest/dg/paths-nextstep.html)
- 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.
已回答 1 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前