Category Archives: Google Dialogflow

Google Dialogflow Chatbot & Realtime Database Tutorial: Read & Write Data

I published a tutorial video on how to read from and write to the Firebase Realtime Database using snapshots and transactions. This blog post contains the code examples from the video: Here is the index.js for the first step which is just reading from the database using a snapshot: const functions = require(‘firebase-functions’); const {WebhookClient} […]

Google Dialogflow Chatbot & Slack Tutorial: Trigger a Slack Notification from a Firebase Webhook

In this blog post I’m going to share the code from my video tutorial on how to trigger a Slack message from a Dialogflow chatbot: Here is the index.js: // See https://github.com/dialogflow/dialogflow-fulfillment-nodejs // for Dialogflow fulfillment library docs, samples, and to report issues ‘use strict’; const functions = require(‘firebase-functions’); const {WebhookClient} = require(‘dialogflow-fulfillment’); const requestLib = require(‘request’); […]