gpt4 book ai didi

amazon-web-services - AWS Connect 和 Lex - 无法引用联系人属性

转载 作者:行者123 更新时间:2023-12-04 17:30:49 25 4
gpt4 key购买 nike

作为引用,这里是有问题的流程:

“获取客户输入”(Lex)->“设置联系人属性”->“播放提示”

调用 Lex 后,我使用“将文本另存为属性”选项设置了联系人属性:

目标键值
产品类型 $.Lex.SessionAttributes.ProductType

然后,在“播放提示”中,我无法引用 set 属性。我使用“文本到语音(Ad hoc)”并尝试了以下语法:

  • $.ProductType
  • $.System.ProductType
  • $.User.ProductType
  • $.External.ProductType

  • 有趣的是,如果我在“设置联系人属性”之后添加“检查联系人属性”,它确实与“用户定义”属性“ProductType”匹配。

    我如何引用该属性?

    最佳答案

    试试 $.Attributes.ProductType

    $.Attributes 是您获取使用 Set Contact Attribute 设置的联系人属性的方法。 $.External 是获取上次 Lambda 执行返回的值。 $.Lex 用于最后一次 Lex 执行。

    关于amazon-web-services - AWS Connect 和 Lex - 无法引用联系人属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47785137/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com