Show rich responses in web based Dialogflow agent

2019-08-21 10:07发布

问题:

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.



标签: dialogflow