Magnificent Escape is a game for the Google Assistant. The game is implemented as an Action and hosted on App Engine. The games' Natural Language Understanding is implemented with Dialogflow.
You can read more about the design of the Action on Medium.
Play the game on any Google Assistant device.
Firstly, deploy the fulfillment logic for the game on App Engine. Then create a Dialogflow agent that is configured to use the fulfillment.
- Node.js and NPM
- We recommend installing using nvm for Linux/Mac and nvm-windows for Windows
- Create a project in the Google Cloud console.
- Install the gcloud command line utility.
The game is implemented in Node.js.
On your local machine, in the directory you downloaded the project source code, run npm install
.
Edit the .env
and app-production.yaml
files to use your own project ID.
To deploy the app to App Engine, use the gcloud command line utility:
gcloud config set project YOUR_PROJECT_ID
gcloud app deploy app-production.yaml
Now the app is hosted on a URL like: https://YOUR_PROJECT_ID.appspot.com
- Use the Actions on Google Console to import the project you created above and click Import Project.
- Scroll down to the More Options section, and click on the Conversational card.
- From the left navigation menu under Build > Actions > Add Your First Action > Play game > GET STARTED IN DIALOGFLOW (this will bring you to the Dialogflow console) > Select language and time zone > CREATE.
- Click on the gear icon to see the project settings.
- Select "Export and Import".
- Select "Restore from zip". Follow the directions to restore from the DialogflowAgent.zip in this repo.
- On the left navigation menu click on Fulfillment.
- Enable the webhook option.
- Enter your App Engine URL for the webhook URL.
- Click Save.
- Select Integrations from the left navigation menu and open the Integration Settings menu for Actions on Google.
- Enable Auto-preview changes and Click Test. This will open the Actions on Google simulator.
- Type
Talk to my test app
in the simulator, or sayOK Google, talk to my test app
to any Actions on Google enabled device signed into your developer account.
You can optionally add support for analytics by editing the .env
and app-production.yaml
files.
- Questions? Go to StackOverflow, Assistant Developer Community on Reddit or Support.
- Actions on Google Documentation
- Actions on Google Codelabs
See LICENSE.