Home United States USA — software Google Action With Node.js

Google Action With Node.js

324
0
SHARE

In this tutorial, you will learn how to create a Google Action using Google actions CLI and NodeJS. Read on to find out how to do this yourself!
Join the DZone community and get the full member experience. Google Actions can be developed using Firebase Cloud functions or a REST API endpoint. Firebase Cloud Function function is Googles’s implementation of serverless functions available in Firebase. Google recommends using Firebase Cloud Function functions for Google Action development. In this post, we will implement a Google Action for Google Assistant by using Node.js, yarn, and Firebase Cloud Functions. This Google Action is basically a Hello World example. This post contains materials from different resources that can be seen in the Resources section. Here, you have the technologies used in this project: The Google Actions Command Line Interface (Google actions CLI) is a tool for you to manage your Google Actions and related resources, such as Firebase Cloud functions. Google actions CLI allows you to manage Google Actions programmatically from the command line. We will use this powerful tool to create, build, deploy and manage our Hello World Google Action. Let’s start! For creating the Google Action, we will use de Google actions CLI previously configured. First of all, we have to execute this command: This command has to be executed on an empty directory. Once you have your Google Action code initialized, you have to go to the Google Action Console and create a new project: Once you have created your Google Action project on the console, you have to get the project ID and put that value in the property projectId file sdk/settings/settings.

Continue reading...