简体   繁体   English

在基于 Web 的 Dialogflow 代理中显示丰富的响应

[英]Show rich responses in web based Dialogflow agent

I tried to use Rich responses to show buttons, cards as responses from the webhook with dynamic content.我尝试使用 Rich responses 将按钮、卡片显示为来自具有动态内容的 webhook 的响应。

agent.add(new Card({
                        title: <RICH UI>,
                        imageUrl: '<IMAGE URL>',
                        text: '<CARD TEXT>',
                        buttonText: '<BUTTON>',
                        buttonUrl: '<BUTTON URL>'
                        })
                    );
agent.add(new Suggestion('<SUGGESTION 1>'));
agent.add(new Suggestion('<SUGGESTION 2>'));

It seems this is not supported for web-based Dialogflow agents.基于网络的 Dialogflow 代理似乎不支持此功能。

How can it be achieved like this guy is doing with his agent?怎么可能达到这家伙跟他经纪人做的那样?
I want to control the UI from webhook and not by intercepting and updating via frontend code.我想从 webhook 控制 UI,而不是通过前端代码拦截和更新。

I asked the Dialogflow support team.我问了 Dialogflow 支持团队。 Got a reply that it is currently not supported and I need to write my own UI code to handle this.得到的答复是目前不支持它,我需要编写自己的 UI 代码来处理这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM