如何在Amazon Connect Contact Flow模块中获取lex属性?

问题描述

您好,我正在研究Amazon lex,并且想在Contact流 CheckAttribute 块中获取NluIntentConfidence值。

enter image description here

我曾经尝试过这样使用

enter image description here

但是IVR不会检查此值,那么,有人可以帮助我如何获得该值?

看看联系流程设计。

enter image description here

解决方法

Connect仅允许您使用在“ sessionAttributes”或插槽值内返回的键/值。从响应中可以看到,nluIntentConfidence不是会话属性,您不能在connect中使用它。

https://docs.aws.amazon.com/connect/latest/adminguide/types-of-contact-attributes.html

要在connect中获得此值,建议您在lex中使用一个代码钩子(验证或实现代码钩子)获取他的值并将其存储在lex会话中。然后,您可以在连接联系流程中使用它。如果您还没有使用过它,则可以参考以下文档

https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html https://docs.aws.amazon.com/lex/latest/dg/ex-book-trip-create-integrate.html