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.