A wild idea appeared

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.
Feel free to sponsor me, not sure I got that right?
Chris Bongers Hehehe :D
We've got this tool that we'd like to promote, and/or having you becoming affiliated with - We provide 25% commission to people, giving affiliate links, allowing us to track signups and give kickback ... :)
Yesterday we created our very first Google action by using the visual builder. Today we'll recreate the same thing but use the cloud function variant. This way, we are ready to build our kind of manipulations and data fetching later. Alright, let's g...
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...

I got this crazy idea a while ago that it would be super cool to have a custom Google Action that I could load onto my Google home device.
My idea is to be able to ask it for the latest dev tip, and it will prompt back the latest article I've written.
At first, it seemed impossible, but I decided to give it a go. In the following few articles, I'll dive into this quest, and hopefully, we'll be able to create it.
For this article in specific, we'll get started with the rough setup and gather the pieces we'll need.
The first thing you'll need is a Google Action developer account. You can simply follow the steps on the page.
Once logged in, you can create your first action on the webpage. You can pick and of the existing samples to get started.
Once you have created one, you'll be able to get into the visual editor of Google Actions.
For now, we'll be using that. If you go to the Settings tab, you'll be able to choose the display name. This will be the name of your application.
In my case, I went with "Daily Dev Tip".

Then we can move on to the main invocation, which will be the action that happens when users interact with our app. In my case, I dummy-mocked what I wanted to happen.
In the Invoke tab, I added the following YAML to mock the actions that should happen.
candidates:
- first_simple:
variants:
- speech: Here is the latest dev tip
content:
card:
title: Some article
text: Summary
image:
URL: 'https://developers.google.com/assistant/assistant_96.png'
alt: Article description
This will result in Google first saying: "Here is the latest dev tip", and showing the rich article card.
This will look something like this:

That is already perfect but, of course, still super static. We'll need to figure out how to query our endpoint to get the latest article.
More on that in the following articles. If you are keen to learn with me, don't forget to subscribe to my newsletter not to miss any articles.
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter