在基于Web的Dialogflow代理中显示丰富的响应 [英] Show rich responses in web based Dialogflow agent

查看:48
本文介绍了在基于Web的Dialogflow代理中显示丰富的响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用Rich响应来显示按钮,卡片作为来自Webhook的具有动态内容的响应.

I tried to use Rich responses to show buttons, cards as responses from the webhook with dynamic content.

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>'));

似乎基于Web的Dialogflow代理不支持此功能.

这个家伙正在与他的经纪人一样怎么实现?
我想通过webhook来控制UI,而不是通过前端代码进行拦截和更新.

It seems this is not supported for web-based Dialogflow agents.

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.

推荐答案

我问Dialogflow支持团队.得到了当前不支持的答复,我需要编写自己的UI代码来处理此问题.

I asked the Dialogflow support team. Got a reply that it is currently not supported and I need to write my own UI code to handle this.

这篇关于在基于Web的Dialogflow代理中显示丰富的响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆