kitchen-assistant / api

API and back-end for DialogFlow, Google Actions, WebHooks, and Firebase.
1 stars 0 forks source link

3. (write code) Create & connect webhook, create cloud functions #20

Open JessePeplinski opened 6 years ago

JessePeplinski commented 6 years ago

Resources

Code Examples

Firebase Documentation

Webbook @JessePeplinski

Project Design / Architecture

organizing-your-firebase-cloud-functions - this is how we should eventually structure our project

│
└───functions
    │   index.js - Contains all cloud functions
    └─── exports.dialogflowFirebaseFulfillment - contains all google action logic
    └─── exports.createUserAccount - add user to db when they authenticate
    └─── exports.cleanUpUserData - When a user is deleted, set flag in the db

Write Code

Google Actions & Dialogflow

Responses to our intents and add all relevant contexts and context parameters. Will be able to test this in Dialogflow by checking "use webhook".

Routines and Reminders

Database

@JessePeplinski and @ZacharyPeck to work together to integrate.

GREAT RESOURCE HERE

Dynamic Population

Update status of items based on intents. We will need to create separate intents for add / remove / delete. This can be tested from the Firebase Console --> Database.

Resources

JessePeplinski commented 6 years ago

Deployed through API.ai's inline editor. Kept getting Error: Cannot understand what targets to deploy. Check that you specified valid targets if you used the --only or --except flag. Otherwise, check your firebase.json to ensure that your project is initialized for the desired features. when trying to deploy on my machine.