Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
eisenzopf authored Apr 5, 2017
1 parent 2976262 commit e0edde0
Showing 1 changed file with 46 additions and 13 deletions.
59 changes: 46 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ Without getting too detailed, the way a Google Home device works is that it
captures your voice intent on the Google Action Platform and translates this to
text.



![](../../../../../Google Drive/Discourse.ai/Articles/conversation-api.png)


![alt tag](./conversation-api.png)

1. The Google Action Platform attempts to match the Intent to an Action in the
directory and then to an Action endpoint. As a developer, when you’re ready
Expand Down Expand Up @@ -104,8 +100,45 @@ creating a new directory for our code:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mkdir three-doors
cd three-doors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Clone three-doors from GitHub
=============================

Now you can clone the code for this tutorial from GitHub:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
git clone https://github.com/eisenzopf/google-action-three-doors.git
cd google-action-three-doors
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The key source code files are:

\-action.json

\-index.js

\-json/

package.json



Install Node.js packages
========================

Next run:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm install
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This should install all of the Node.js package dependencies that you need for
the project.



Setting up your Google Action Skill
Expand Down Expand Up @@ -155,7 +188,7 @@ the `gcloud` will be ready to go.



**2. **Now we will create a new Google Action project using the `gcloud` CLI
**2.** Now we will create a new Google Action project using the `gcloud` CLI
from a terminal window from within your project directory. Run:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -170,7 +203,7 @@ alpha command and may change. You can alternatively create a new project in the



**3. **To confirm the project was created, run:
**3.** To confirm the project was created, run:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcloud projects list
Expand All @@ -181,7 +214,7 @@ project that was created when you ran `cloud init` command.



**4. **Change current project to the created project by running:
**4.** Change current project to the created project by running:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcloud config set project three-doors-xxxx
Expand All @@ -205,15 +238,15 @@ You should be able to see the newly created bucket by running the command



**6. **Set billing for the project. Make sure that a billing account is
**6.** Set billing for the project. Make sure that a billing account is
associated with the project by visiting

`https://console.developers.google.com/project/three-doors-xxxx/settings` where
xxxx is the 4 numbers you chose when creating the project.



**7. **Lastly, we need to add the Google Action API to the project. This can be
**7.** Lastly, we need to add the Google Action API to the project. This can be
done from the Google Cloud Platform Console at
<https://console.cloud.google.com>.

Expand Down Expand Up @@ -257,7 +290,7 @@ your **Google Action** application.



**1. **First point your browser to
**1.** First point your browser to
<https://developers.google.com/actions/tools/gactions-cli> and download the
gactions command-line tool.

Expand All @@ -276,15 +309,15 @@ gactions command-line tool.


**2. **Next change permissions for gactions to executable:
**2.** Next change permissions for gactions to executable:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chmod +x gactions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



**3. **Within your project directory, initialize the tool inside a terminal
**3.** Within your project directory, initialize the tool inside a terminal
window:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit e0edde0

Please sign in to comment.