Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
frogermcs committed Oct 25, 2017
0 parents commit dd21fa3
Show file tree
Hide file tree
Showing 30 changed files with 1,324 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "water-log-5e42b"
}
}
58 changes: 58 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
Binary file added Dialogflow/WaterLog.zip
Binary file not shown.
36 changes: 36 additions & 0 deletions Dialogflow/WaterLog/agent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"description": "Daily water logger",
"language": "en",
"googleAssistant": {
"googleAssistantCompatible": true,
"project": "water-log-5e42b",
"welcomeIntentSignInRequired": false,
"startIntents": [],
"systemIntents": [],
"endIntentIds": [
"9d87e786-f42c-40bb-a711-7c8a9df612bb"
],
"oAuthLinking": {
"required": false,
"grantType": "AUTH_CODE_GRANT"
},
"voiceType": "MALE_1",
"capabilities": [],
"protocolVersion": "V2"
},
"defaultTimezone": "Europe/Madrid",
"webhook": {
"url": "https://us-central1-water-log-5e42b.cloudfunctions.net/waterLog",
"headers": {
"": ""
},
"available": true,
"useForDomains": false,
"cloudFunctionsEnabled": false,
"cloudFunctionsInitialized": false
},
"isPrivate": true,
"customClassifierMode": "use.after",
"mlMinConfidence": 0.3,
"supportedLanguages": []
}
41 changes: 41 additions & 0 deletions Dialogflow/WaterLog/intents/Default Fallback Intent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"id": "321bd139-faa9-4369-bb94-235695171a98",
"name": "Default Fallback Intent",
"auto": true,
"contexts": [],
"responses": [
{
"resetContexts": false,
"action": "input.unknown",
"affectedContexts": [],
"parameters": [],
"messages": [
{
"type": 0,
"lang": "en",
"speech": [
"I didn\u0027t get that. Can you say it again?",
"I missed what you said. Say it again?",
"Sorry, could you say that again?",
"Sorry, can you say that again?",
"Can you say that again?",
"Sorry, I didn\u0027t get that.",
"Sorry, what was that?",
"One more time?",
"What was that?",
"Say that again?",
"I didn\u0027t get that.",
"I missed that."
]
}
],
"defaultResponsePlatforms": {},
"speech": []
}
],
"priority": 500000,
"webhookUsed": false,
"webhookForSlotFilling": false,
"fallbackIntent": true,
"events": []
}
36 changes: 36 additions & 0 deletions Dialogflow/WaterLog/intents/Default Welcome Intent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"id": "883cceb6-2005-4b04-adeb-7febd81f1a24",
"name": "Default Welcome Intent",
"auto": true,
"contexts": [],
"responses": [
{
"resetContexts": false,
"action": "input.welcome",
"affectedContexts": [],
"parameters": [],
"messages": [
{
"type": 0,
"lang": "en",
"speech": []
}
],
"defaultResponsePlatforms": {},
"speech": []
}
],
"priority": 500000,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1508308657,
"fallbackIntent": false,
"events": [
{
"name": "WELCOME"
},
{
"name": "GOOGLE_ASSISTANT_WELCOME"
}
]
}
29 changes: 29 additions & 0 deletions Dialogflow/WaterLog/intents/get_logged_water.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"id": "5cbc8cea-6ae1-48b7-a7be-95b8f2d76cdc",
"name": "get_logged_water",
"auto": true,
"contexts": [],
"responses": [
{
"resetContexts": false,
"action": "get_logged_water",
"affectedContexts": [],
"parameters": [],
"messages": [
{
"type": 0,
"lang": "en",
"speech": []
}
],
"defaultResponsePlatforms": {},
"speech": []
}
],
"priority": 500000,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1508433491,
"fallbackIntent": false,
"events": []
}
77 changes: 77 additions & 0 deletions Dialogflow/WaterLog/intents/get_logged_water_usersays_en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"id": "f3fd2a0a-173d-4b24-bfa0-c2ce76c5caad",
"data": [
{
"text": "How much did I drink?",
"userDefined": false
}
],
"isTemplate": false,
"count": 0,
"updated": 0
},
{
"id": "c0b103f2-dbba-46bc-8c0a-3284165149fd",
"data": [
{
"text": "How much water have I drunk ",
"userDefined": false
},
{
"text": "today",
"meta": "@sys.ignore",
"userDefined": false
},
{
"text": "?",
"userDefined": false
}
],
"isTemplate": false,
"count": 0,
"updated": 0
},
{
"id": "d0b592c3-b46a-4836-86ff-1d80abc7535b",
"data": [
{
"text": "How much water did I drink ",
"userDefined": false
},
{
"text": "today",
"meta": "@sys.ignore",
"userDefined": false
},
{
"text": "?",
"userDefined": false
}
],
"isTemplate": false,
"count": 0,
"updated": 0
},
{
"id": "b2f8c850-5c3e-4229-9644-33c11352f84b",
"data": [
{
"text": "Did I drink any water ",
"userDefined": false
},
{
"text": "today",
"meta": "@sys.ignore",
"userDefined": false
},
{
"text": "?",
"userDefined": false
}
],
"isTemplate": false,
"count": 0,
"updated": 0
}
]
48 changes: 48 additions & 0 deletions Dialogflow/WaterLog/intents/log_water.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"id": "9d87e786-f42c-40bb-a711-7c8a9df612bb",
"name": "log_water",
"auto": true,
"contexts": [],
"responses": [
{
"resetContexts": false,
"action": "log_water",
"affectedContexts": [],
"parameters": [
{
"id": "a5f59c31-e560-4c57-8686-c21d48ba0bd4",
"required": true,
"dataType": "@sys.unit-volume",
"name": "water_volume",
"value": "$water_volume",
"prompts": [
{
"lang": "en",
"value": "How much of water did you drink so far?"
},
{
"lang": "en",
"value": "How much of water should I log?"
}
],
"isList": false
}
],
"messages": [
{
"type": 0,
"lang": "en",
"speech": []
}
],
"defaultResponsePlatforms": {},
"speech": []
}
],
"priority": 500000,
"webhookUsed": true,
"webhookForSlotFilling": false,
"lastUpdate": 1508442034,
"fallbackIntent": false,
"events": []
}
Loading

0 comments on commit dd21fa3

Please sign in to comment.