Google action learn more button

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Thanks!
Really sad they deprecating it, but it was so much fun exploring this 🥳
Now that we have our Google Action fully functional, we can look at deploying it so that it will become active for everyone. I've never done this before, so bear with me, as Google might come back and reject the action for some reason. Deploying the ...
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

Now that we are able to fetch data from an RSS feed and show it in the Google Action, how about we add a button to learn more.
A thing to note is that depending on the device, the button might not be rendered. For instance smart home devices won't show the button, the mobile assistant on the other hand will show them.
For this article i'll be using what we build yesterday, you can find the article here.
We can actually add the button component as part of our allready existiong card and leverage the RSS data we fetched.
The card can look like this:
conv.add(
new Card({
title: jsonData.feed.entry[0].title._cdata,
text: jsonData.feed.entry[0].content._cdata,
image: new Image({
url: 'https://daily-dev-tips.com/images/logo.png',
alt: 'Daily Dev Tips logo',
}),
button: new Link({
name: 'Read more',
open: {
url: jsonData.feed.entry[0].link._attributes.href,
},
}),
})
);
Make sure your importing this new Link component like this:
const { Link } = require('@assistant/conversation');
And if we now test our action on mobile phones for instance we should see the button that will link to the specific article.
Below is a screen recording on my mobile phone showing the full flow.

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter