Skip to content

Instantly share code, notes, and snippets.

@frogermcs frogermcs/actions.js
Last active Nov 5, 2017

What would you like to do?
module.exports = {
ACTION_UPDATE_SETTINGS: 'update_settings',
ACTION_USER_DATA: 'user_data'
exports.waterLog = functions.https.onRequest((request, response) => {
//Define map of Dialogflow agent Intents
let actionMap = new Map();
actionMap.set(Actions.ACTION_UPDATE_SETTINGS, () => conversation.actionUpdateSettings());
actionMap.set(Actions.ACTION_USER_DATA, () => conversation.actionUserData());
//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
You can’t perform that action at this time.