Skip to content

NoRulesJustFeels/Magnificent-Escape-Action

Repository files navigation

Magnificent Escape Action

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.

Setup Instructions

Firstly, deploy the fulfillment logic for the game on App Engine. Then create a Dialogflow agent that is configured to use the fulfillment.

Prerequisites

  1. Node.js and NPM
  2. Create a project in the Google Cloud console.
  3. Install the gcloud command line utility.

How to deploy

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

Dialogflow Action

  1. Use the Actions on Google Console to import the project you created above and click Import Project.
  2. Scroll down to the More Options section, and click on the Conversational card.
  3. 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.
  4. Click on the gear icon to see the project settings.
  5. Select "Export and Import".
  6. Select "Restore from zip". Follow the directions to restore from the DialogflowAgent.zip in this repo.
  7. On the left navigation menu click on Fulfillment.
  8. Enable the webhook option.
  9. Enter your App Engine URL for the webhook URL.
  10. Click Save.
  11. Select Integrations from the left navigation menu and open the Integration Settings menu for Actions on Google.
  12. Enable Auto-preview changes and Click Test. This will open the Actions on Google simulator.
  13. Type Talk to my test app in the simulator, or say OK Google, talk to my test app to any Actions on Google enabled device signed into your developer account.

Analytics

You can optionally add support for analytics by editing the .env and app-production.yaml files.

  1. Google Analytics.
  2. Chatbase

References & Issues

License

See LICENSE.

About

Magnificent Escape is a game for the Google Assistant.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published