View index.js
'use strict';
const {
} = require('actions-on-google');
const pug = require('pug');
* Uses Pug.js
* Requires a Dialogflow custom payload like:
View app.js
'use strict';
const {
} = 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));
View index.js
// See
// for Dialogflow fulfillment library docs, samples, and to report issues
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
const {Card, Suggestion} = require('dialogflow-fulfillment');
const rp = require('request-promise');
View index.js
"name": "my-tvguide-agent",
"description": "Build the TV Guide agent for Google Assistant with Dialogflow",
"version": "1.0.0",
"license": "Apache-2.0",
"author": "Lee Boonstra",
"engines": {
"node": "^6.11.5"
"dependencies": {
View gist:92b86161c40278b33590baa575b17830
Follow Procedure Produced Errors:
Download (2018-03-13) unzip, and burn to SD card with
Select a working WIFI network.
To open a terminal you can use: CTRL + ALT + T
git clone AIY-projects-python
sudo apt-get install python-virtualenv
View my_assistant.service
//follow these steps in order to make the raspberry pi reboot in headless mode
1. Open my_assistant.service file in an editor:
sudo nano /lib/systemd/system/my_assistant.service
2. Copy contents of my_assistant.service in editor
3. Make your service script executable:
sudo chmod 644 /lib/systemd/system/my_assistant.service
View .js
'use strict';
process.env.DEBUG = 'actions-on-google:*';
const request = require('request');
const Assistant = require('actions-on-google').ApiAiAssistant;
var CHANNELS = new Map([
["Nederland 1", 1],
["Nederland 2", 2],
View videointelligence.js
kind: 'storage#object',
resourceState: 'exists',
id: 'leeboonstra-videoapi/mov_bbb.mp4/1490796080783211',
selfLink: '',
name: 'mov_bbb.mp4',
bucket: 'leeboonstra-videoapi',
generation: '1490796080783211',
metageneration: '1',


Windows 10 and Windows 8

  • In Search, search for and then select: System (Control Panel)
  • Click the Advanced system settings link.
  • Click Environment Variables.
  • In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.
  • In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK. Close all remaining windows by clicking OK.
View bigQuery.js
//require the google-cloud npm package
//setup the API keyfile, so your local environment can
//talk to the Google Cloud Platform
const gcloud = require('google-cloud')({
projectId: process.env.GCLOUD_PROJECT,
keyFilename: process.env.GCLOUD_KEY_FILE
//We will make use of the bigquery() API
const bq = gcloud.bigquery();