This sample shows how to create an app for the Google Assistant using the Actions SDK, Actions on Google's Java client library, and Google Cloud's App Engine.
- From the Actions on Google Console, add a new project (this will become your Project ID) > Create Project.
- Scroll down and click Actions SDK.
- Install the gactions CLI if you haven't already.
When a new project is created using the Actions Console, it also creates a Google Cloud project in the background.
- Download & install the Google Cloud SDK
- Configure the gcloud CLI and set your Google Cloud project to the name of your Actions on Google Project ID, which you can find from the Actions on Google console under Settings ⚙
gcloud init
gcloud auth application-default login
gcloud components install app-engine-java
gcloud components update
- Deploy to App Engine using Gradle:
gradle appengineDeploy
OR- From within IntelliJ, open the Gradle tray and run the appEngineDeploy task.
- Modify the
action.json
file included in the project, replacing the placeholder fulfillment URL with the URL to your fulfillment. - Run the command, adding in your project_id
gactions update --action_package action.json --project <YOUR_PROJECT_ID>
.
- In the Actions on Google console, select the project that you have created for this sample.
- On the left navigation menu under TEST, click on Simulator.
- Type
Talk to my test app
in the simulator, or sayOK Google, talk to my test app
to Google Assistant on a mobile device associated with your Action's account.
- Questions? Go to StackOverflow, Actions on Google G+ Developer Community, or Support.
- For bugs, please report an issue on Github.
- For Actions on Google documentation.
- For specifics about Gradle & the App Engine Plugin
- For details on deploying Java apps with App Engine
Please read and follow the steps in the CONTRIBUTING.md.
See LICENSE.
Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service.