This is the code powering the Google Assistant app "People in space" using Nathan Bergey's Open Notify's People in Space API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
functions
.gitignore
LICENSE
README.md
firebase.json
people-in-space.zip

README.md

People in Space for the Google Assistant

This is the code powering the Google Assistant app "People in space" which use's Nathan Bergey's Open Notify's People in Space API to determine how many people are in space. To read about a play by play of how it was built (including some embarassing mistakes) in 50min checkout this blog post.

Try it out

Say Talk to people in space to any Google Assistant device

Dialogflow setup

  1. Sign up for or sign into Dialogflow
  2. Create a Dialogflow agent
  3. Restore the zip file people-in-space.zip

Fulfillment Setup: Dialogflow Inline Editor (option 1)

  1. Enable the Cloud Function for Firebase inline editor
  2. Copy this code in functions/index.js the index.js file in the Dialogflow Cloud Function for Firebase inline editor.
  3. Copy this code in functions/package.json the package.json file in the Dialogflow Cloud Function for Firebase inline editor.
  4. Click Deploy

Fulfillment Setup: Firebase CLI (option 2)

  1. cd to the functions directory
  2. Run npm install
  3. Install the Firebase CLI by running npm install -g firebase-tools
  4. Login to your Google account with firebase login
  5. Add your project to the sample with firebase use [project ID] find your project ID here
  6. Run firebase deploy --only functions:dialogflowFirebaseFulfillment
  7. Paste the URL into your Dialogflow agent's fulfillment and click Save

License

See LICENSE.md.