Instantly share code, notes, and snippets.

What would you like to do?
module.exports = {
ACTION_FACTS_DRINKING_WATER: 'facts_drinking_water'
exports.waterLog = functions.https.onRequest((request, response) => {
//Define map of Dialogflow agent Intents
let actionMap = new Map();
actionMap.set(Actions.ACTION_FACTS_DRINKING_WATER, () => conversation.getFactForDrinkingWater());
//Handle request from Dialogflow (will be dispatched into appropriate action defined above)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment