This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>RecordRTC over Socket.io</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<script src="https://www.WebRTC-Experiment.com/RecordRTC.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('@google-cloud/functions-framework'); | |
// Here's where you set the entry point, it gets the request from Dialogflow CX | |
// and it holds the response which will be sent back to Dialogflow | |
functions.http('orderState', (req, res) => { | |
let msg; | |
let results = {}; | |
//let item; | |
//Let's log whatever we receive from Dialogflow CX to understand things better |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { | |
dialogflow | |
} = require('actions-on-google'); //version 2.1.1 | |
const assistantHandler = (conv) => { | |
console.log('Dialogflow Request headers: ' + JSON.stringify(conv.headers)); | |
console.log('Dialogflow Request body: ' + JSON.stringify(conv.body)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const functions = require('firebase-functions'); | |
const { | |
dialogflow, | |
Suggestions, | |
Image, | |
BasicCard, | |
MediaObject, | |
List, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const { | |
dialogflow | |
} = require('actions-on-google'); | |
const pug = require('pug'); | |
/* | |
* Uses Pug.js https://pugjs.org/language/plain-text.html | |
* Requires a Dialogflow custom payload like: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config() //load environemnt vars | |
const projectId = process.env.GCLOUD_PROJECT; //your project name | |
const uuidv1 = require('uuid/v1'); | |
const sessionId = uuidv1(); | |
const languageCode = 'en-US'; | |
const server = require('http').createServer((request, response) => { | |
response.writeHead(200, {"Content-Type": "text/html"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const functions = require('firebase-functions'); | |
const { WebhookClient, Card, Suggestion } = require('dialogflow-fulfillment'); | |
process.env.DEBUG = 'dialogflow:debug'; // enables lib debugging statements | |
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { | |
const agent = new WebhookClient({ request, response }); | |
console.log('Dialogflow Request headers: ' + JSON.stringify(request.headers)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//run webdriver: | |
java -jar selenium-server-standalone-2.53.0.jar | |
//run test archiver | |
//this requires a TestArchiveStorage folder with a storage.json file | |
//from ST Studio interface, you will have to add a browser to the pool | |
cd ~/bin/Sencha/TestArchiveStorage | |
stc server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dockerfile | |
README.md | |
node_modules | |
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hangouts": { | |
"header": { | |
"title": "Pizza Bot Customer Support", | |
"subtitle": "pizzabot@example.com", | |
"imageUrl": "https://goo.gl/aeDtrS" | |
}, | |
"sections": [ | |
{ |
NewerOlder