-
Create a new Intent name:
addSchedule
. -
Under Training phrases type:
add schedule on 5th July for yourmessage at yourTime
and Change the parameters name:a
,b
andc
. -
Then go to Fulfillment session under intent. and
Enable webhook call for this intent
. -
Now go to Fulfillment menu undersidebar and
Enable
theInline Editor
. -
Define
intentMap.set('YourIntentName', FunctionsName)
Functions. For example in this intent I'm usingintentMap.set('addSchedule', addNewSchedule);
-
Create a function named 'addTwoNumbers'.
function addNewSchedule(agent){ var time =agent.parameters.a; var date =agent.parameters.b; var msg = agent.parameters.c; firebase.database().ref('schedules').push({ time:time, date:date, message:msg }); agent.add('Your Schedule for '+msg+' on '+ date +' at '+time +' has added successfully.'); }
-
Add
const firebase = require("firebase");
-
Add
"firebase ":"*"
in dependencies. -
Add Firebase key in
index.js
file. -
Click on Deploy Button
-
Test it.
-
Notifications
You must be signed in to change notification settings - Fork 2
Varsha-Jaiswal/AoG-Scheduler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
AoG Scheduler For Add your Schedule in Firebase Realtime Database
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published