The BasicCard is a nice way to display UI elements to the user. It can provide an image and button, were the user can click the button. The click event will then open the URL that has been assigned to the button.
The Google Assistant supports Deep Linking, so using the BasicCard element allows you to trigger those links in devices that support it, for example, your phone.
Summary of content
- Adding the BasicCard and Button classes
- Creating a new BasicCard
- Adding the button to the BasicCard
- Adding the image to the BasicCard
- Testing the new BasicCard element