-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No appointment created! #6
Comments
Can you post your code? |
Make sure to have the most recent updated versions installed:
|
PFA. index.js /**
'use strict'; const functions = require('firebase-functions'); // Enter your calendar ID below and service account JSON below, see https://github.com/dialogflow/bike-shop/blob/master/README.md#calendar-setup // Set up Google Calendar Service account credentials const calendar = google.calendar('v3'); const timeZone = 'Asia/Colombo'; exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { function hours (agent) { function makeAppointment (agent) {
} let intentMap = new Map(); function currentlyOpen () { return day >= 1 && function createCalendarEvent (dateTimeStart, dateTimeEnd) { package.json |
Always showing this result... I'm sorry, there are no slots available for Invalid Date, would you like to check another day? Pls, anyone Help me. |
@shnathoskhan "node": "6" "dependencies": { |
Hi sarah, My code package.json { "dependencies": { index.js /**
'use strict'; const functions = require('firebase-functions'); // Enter your calendar ID and service account JSON below. // Set up Google Calendar service account credentials const calendar = google.calendar('v3'); const timeZone = 'America/Los_Angeles'; // Change it to your time zone exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { function makeAppointment (agent) { function createCalendarEvent (dateTimeStart, dateTimeEnd) { // A helper function that receives Dialogflow's 'date' and 'time' parameters and creates a Date instance. // A helper function that adds the integer value of 'hoursToAdd' to the Date instance 'dateObj' and returns a new Data instance. // A helper function that converts the Date instance 'dateObj' into a string that represents this time in English. // A helper function that converts the Date instance 'dateObj' into a string that represents this date in English. Kindly help me to solve this issue. |
Hi, I do have the same problem. Please help us find a solution. |
Invalid Date { /**
'use strict'; const functions = require('firebase-functions'); // Enter your calendar ID below and service account JSON below, see https://github.com/dialogflow/bike-shop/blob/master/README.md#calendar-setup // Set up Google Calendar Service account credentials const calendar = google.calendar('v3'); const timeZone = 'Europe/Berlin'; exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => { function hours (agent) { function makeAppointment (agent) {
} let intentMap = new Map(); function currentlyOpen () { return date.getDay() >= 1 && function createCalendarEvent (dateTimeStart, dateTimeEnd) { |
Hi guys, I don't know if this is still going to help anyone. Battled with the same issue for 2 days and it finally worked today. So in stripping the dates, I had to strip a + instead of a - since my time formats have a + since I'm in South Africa. This solved the 'invalid date' part but it still didn't insert in the calendar. Then I realised that in calendar permissions I had to change the permissions for the email that we get from the json file to "make changes to events". Then it worked. |
Someone has discussed this issue here |
when I ask an agent.
end result, always showing this message only.
I'm sorry, there are no slots available for Invalid Date, would you like to check another day?
No appointment created. :(
pls, help me.
The text was updated successfully, but these errors were encountered: