Skip to content

Instantly share code, notes, and snippets.

View karladler's full-sized avatar

Karl Adler karladler

View GitHub Profile
@karladler
karladler / index.js
Created May 19, 2019 20:32
Dialogflow express.js backend for two intents. One fetches next event from barcamp app, the other reacts to opnions.
// See https://github.com/dialogflow/dialogflow-fulfillment-nodejs
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Text, Suggestion} = require('dialogflow-fulfillment');
const cache = require('memory-cache');
const https = require('https');
const express = require('express');
{"zipCodes":
["01067","01069","01097","01099","01108","01109","01127","01129","01139","01156","01157","01159","01169","01187","01189","01217","01219","01237","01239","01257","01259","01277","01279","01307","01309","01324","01326","01328","01445","01454","01458","01465","01468","01471","01477","01558","01561","01587","01589","01591","01594","01609","01612","01616","01619","01623","01640","01662","01665","01683","01689","01705","01723","01728","01731","01734","01737","01738","01744","01762","01768","01773","01774","01776","01778","01796","01809","01814","01816","01819","01824","01825","01829","01833","01844","01847","01848","01855","01877","01896","01900","01904","01906","01909","01917","01920","01936","01945","01968","01979","01983","01987","01990","01993","01994","01996","01998","02625","02627","02633","02681","02689","02692","02694","02699","02708","02727","02730","02733","02736","02739","02742","02747","02748","02763","02779","02782","02785","02788","02791","02794","02796","02797","02799","02826","02827","0