Show rich responses in web based Dialogflow agent

余生长醉 提交于 2019-12-11 18:56:21

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/52041277/show-rich-responses-in-web-based-dialogflow-agent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!