如何将 json 对象从 PVA 传递给 Bot Composer

问题描述 投票:0回答:0

我有一个 PVA 主题,它正在生成一个 json 对象作为输出,我想在 Bot composer 框架中使用和访问它来创建一个自适应卡片。这里的链接数组是一个动态数组,即该数组内的项目都不能变化。

PVA 的示例输出:

{
  "output": "{"links":[{"Title":"FORM","Url":"www.google.com"}, {"Title":"Planning","Url":"www.google.com"}]}"
}

enter image description here

这是PVA主题流程。这里的bot.links就是上面提到的输出。

enter image description here enter image description here

现在,在这个 bot composer 对话框和响应中,我们试图访问来自 PVA 的 bot.links 输出作为 virtualagent.links,然后在响应中尝试从中生成自适应。

预期的输出是这样的,一个带有标题和 url 作为超链接的自适应卡片。 enter image description here

但是我无法获得预期的输出,因为它无法从 PVA 访问该输出,所以我想知道我做错了什么。

如有任何帮助或建议,我们将不胜感激。

谢谢

botframework power-virtual-agents
© www.soinside.com 2019 - 2024. All rights reserved.