I have an Amazon Lex bot that collects information from the user. This information is then output to State.variable and Flow.variables in the Purecloud flow.
If the bot enters a failed state I would like to use the slot information it was able to collect to perform some additional actions in the flow. For example the bot hit the max number of retries to get slot information.
When the bot enters this failed state the variables in purecloud are empty and do not contain the slot information that was collected. I have confirmed that the slot values are being set correctly in Amazon Lex and are being returned in the Lex response.
Is this working as intended? Is there a way to access the slot information in Purecloud if the bot had a failure?
I confirmed with the development team that we made the decision that if PureCloud gets "failed" diaglogstate back from Lex that we follow the error path and do not carry over any of the variables that Lex did capture. I have added this as an enhancement request to the team as we are looking to add additional requested capabilities to Lex in the first half of 2020.
Thank you for the response.
I look forward to these enhancements. Having access to the entire Lex response including slot and session attributes would go a long way in improving the integration.