Fulfillment: How to Integrate Dialogflow with Google Calendar

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 2024

ความคิดเห็น • 160

  • @jonathanclifton8373
    @jonathanclifton8373 3 ปีที่แล้ว +4

    I've followed this exactly but despite the calendar having responding vacancies, no matter what date structure I try I always get the same response: I'm sorry, there are no slots available for Invalid Date. What could the causes of EVERYTHING I try being an "Invalid Date" be please?

  • @YattishRamhorry
    @YattishRamhorry 4 ปีที่แล้ว +5

    I absolutely loved your walk through and the video, very helpful and informative. But, I have just one question regarding the implementation of this. What if I wish to book and schedule an appointment in someone else's calendar, how would I approach this using your implementation? Thank you

    • @pvergadia
      @pvergadia 4 ปีที่แล้ว +1

      You can set it up in someone else's calendar the same way you did in yours..see the calendar API here developers.google.com/calendar/create-events

  • @waleedumar966
    @waleedumar966 3 ปีที่แล้ว +2

    Great video but I am facing an issue. I get the output for confirmation of appointment booking but the schedule is not added to the Calendar. Can anybody please help out? Have to finish this for the semester project

  • @russellcampbell3463
    @russellcampbell3463 4 ปีที่แล้ว +8

    line 99 : "err ? reject(err) : resolve(event); I am getting an error " Expected an assignment or function call and instead saw an expression" anyone able to solve this? Would have never gotten this far on my own.

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      same here. Did you solve it?

    • @krishnakantdharekar746
      @krishnakantdharekar746 3 ปีที่แล้ว

      @@thepedrorriva did you figure out how to make this work . Please help

  • @testtestowy5161
    @testtestowy5161 5 ปีที่แล้ว +4

    Bug : " intent.Map('Intent Name') Line 74"
    Change those lines :
    let intentMap = new Map();
    intentMap.set('Schedule Appointment', makeAppointment);
    agent.handleRequest(intentMap);
    Where intentMap.set('your intent name', requiredEntityName->in this case makeAppointment as provided in "Entity Tutorial")

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      So, is it suppose to look like this?
      let intentMap = new Map();
      intentMap.set('NAME OF YOUR INTENT', makeAppointment);
      agent.handleRequest(intentMap);
      });
      or this?
      let intentMap = new Map();
      intentMap.set('NAME OF YOUR INTENT', requiredEntityName->in this case makeAppointment as provided in "Entity Tutorial")
      agent.handleRequest(intentMap);
      });
      I'm confused by your explanation.

  • @LucianoZambito
    @LucianoZambito 5 ปีที่แล้ว +4

    On line 81 err ? reject(err) : resolve(event); I get this warning "Excepted an assignment or function call and instead saw an expression". Anybody knows how to fix that? The deploying fails and generates and the webhook goes in timeout :-(

    • @jamesbrimfield8522
      @jamesbrimfield8522 5 ปีที่แล้ว +2

      I got that to... any help would be appreciated.

    • @kevinmathews6634
      @kevinmathews6634 4 ปีที่แล้ว

      I think its becasue the code thats provided here is in node 6 and dialogflow only functions with node 10 at present. Thats what I understood with the minimum knpwledge I have

  • @himanshuchuri894
    @himanshuchuri894 5 ปีที่แล้ว +6

    Can any one please help!. this code is giving me an error 14.
    "message": "Webhook call failed. Error: UNAVAILABLE."

    • @jessiz4217
      @jessiz4217 4 ปีที่แล้ว

      Have you solved this problem?thx

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      did you manage to solve the problem?

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      @@jessiz4217 did you manage to solve the problem?

  • @hemalathasangani7058
    @hemalathasangani7058 5 ปีที่แล้ว +2

    I followed as it is but I am not getting output. In my Google Calendar it doesn't show any appointment added. What should I have to do.? It displaying response like "I'm sorry, there are no slots available for Invalid Date."

    • @Deany3791
      @Deany3791 4 ปีที่แล้ว

      Hi Hema! I had the same issue. My solution was to edit the index.js file to change the timeZone constant to the time zone that my Google Calendar is set to. I am in the UK so I set it to "GMT". But you would need to change it to your timeZone accordingly. You can find a list of acceptable Google Calendar api time zones here: stackoverflow.com/questions/22526635/list-of-acceptable-google-calendar-api-time-zones

    • @cedricpendji4972
      @cedricpendji4972 3 ปีที่แล้ว

      I had the same issue, here is what i did to fix it:
      Below is the code given in the template
      const timeZone = 'America/Los_Angeles';
      const timeZoneOffset = '-07:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset));
      As we can see, the timezone in the template is 'America/Los_Angeles', But as I live in a different timezone, I changed code accordingly:
      const timeZone = 'GMT';
      const timeZoneOffset = '+02:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset));
      Remember to select the timeZoneOffset corresponding to your location (mine is +02:00)
      Check how I replaced the last split in the code from '-' to '+' as offset for me is '+02:00'

  • @luis96xd
    @luis96xd ปีที่แล้ว +1

    Amazing video, concise and everything worked well! Thanks Priyanka! 🤗

  • @antonheeremans2312
    @antonheeremans2312 4 ปีที่แล้ว +1

    I get a semicolon error when pasting the calendar ID in index.js. But there are no semicolons in the code

  • @ifeanyindukwe3086
    @ifeanyindukwe3086 5 ปีที่แล้ว +4

    This is great, thank you. However, I have tried but I keep getting this error message; "I'm sorry, there are no slots available for Invalid Date". Is there any way I can resolve this issue?

    • @Budgetbloom06
      @Budgetbloom06 5 ปีที่แล้ว +9

      I resolve this error. You just have to change the code to """ const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset)); """
      Also I'm from india so I've chaged this to....
      const timeZone = 'Asia/Kolkata';
      const timeZoneOffset = '+05:30'; meaning you have to change according to your timezone only.
      This will work maybe.

    • @hhbounce
      @hhbounce 4 ปีที่แล้ว +1

      @@Budgetbloom06 very nice! it works. Thank you!!!!

    • @Budgetbloom06
      @Budgetbloom06 4 ปีที่แล้ว +1

      @@hhbounce my pleasure #believe in #open-source

    • @reenadangi1498
      @reenadangi1498 4 ปีที่แล้ว

      @@Budgetbloom06 Hey are you able to set an appointment in calendar ?

    • @Budgetbloom06
      @Budgetbloom06 4 ปีที่แล้ว

      @@reenadangi1498 Yes this piece of code is properly working

  • @SimiBoi184
    @SimiBoi184 4 ปีที่แล้ว +2

    great nice and interesting videos! but i did not manage to have the appointment created. based from the given diagnostic info, under fulfillment status it says webhook call failed: Error unavailable.

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      where did you find the diagnostic info?

    • @samirghoudrani3659
      @samirghoudrani3659 3 ปีที่แล้ว

      same here, I get: Webhook call failed. Error: UNAVAILABLE

    • @samirghoudrani3659
      @samirghoudrani3659 3 ปีที่แล้ว

      @@thepedrorriva on the right hand side, where you test the bot

  • @JoshVonhauger
    @JoshVonhauger 4 ปีที่แล้ว +1

    very little of this matches what is in the google cloud platform now does anyone have an up to date how to

  • @patrickfred4250
    @patrickfred4250 5 ปีที่แล้ว +2

    I would like Dialogflow to display date of events that are in my calendar, for example the next pay date.

  • @segunawodokun
    @segunawodokun 5 ปีที่แล้ว +3

    If you're having issues creating a calendar, make sure the intent name matches in intent.Map('Intent Name') Line 74

  • @rohan5404
    @rohan5404 4 ปีที่แล้ว +1

    I'm sorry, there are no slots available for Invalid Date.
    ACTION
    Not available
    PARAMETER VALUE
    date 2020-03-09T12:00:00+05:30
    time 2020-03-08T15:00:00+05:30
    how to solve this error

    • @MzCastorama
      @MzCastorama 4 ปีที่แล้ว

      Hello. If you change @sys.date to @sys.date-time this error is solved. (Even though it still don't work in my case, got the positive reply but the calendar doesn't create the appointement)

    • @pvergadia
      @pvergadia 4 ปีที่แล้ว

      @@MzCastorama The calendar not creating appointment could be related to the timezone, did you make sure the timezone is accurate?

  • @geovilla821
    @geovilla821 5 ปีที่แล้ว +9

    Hi, thanks for this lesson. Great help! Please make a lesson also on how to read/save data to google sheets!

    • @talhachafekar5513
      @talhachafekar5513 5 ปีที่แล้ว

      Use gspread library in python along with google API along with Flask/Django

  • @Adeymolahubs
    @Adeymolahubs 2 ปีที่แล้ว

    How can I suggest another free time of appointment for that day since the Tim of the day is booked already?

  • @thepedrorriva
    @thepedrorriva 4 ปีที่แล้ว +1

    This is a very weird way to book appointments. Usually the business has specific time slots where you want to fill in appointments. In the case described, the user inputs the hour and date of the appointment, instead of the chatbot giving some options or just telling the user the next available spot. Weird, would like to know how to implement in this other way.

    • @purplegirl8036
      @purplegirl8036 2 ปีที่แล้ว

      Yes

    • @TauvicRitter
      @TauvicRitter ปีที่แล้ว

      This video shows the happy path that quickly shows success. Real applications are always much harder.

  • @MzCastorama
    @MzCastorama 4 ปีที่แล้ว +1

    I got no errors, but I get the reponses I put in my intent instead of the one who's written in this code, and my calendar doesn't create the appointement. Any clue how to fix this ?

    • @shantamsultania4232
      @shantamsultania4232 4 ปีที่แล้ว

      any improvement you made mate ?

    • @MzCastorama
      @MzCastorama 4 ปีที่แล้ว

      @@shantamsultania4232 Actualy yes. The issue was so simple I feel stupid. In the line that split the date...you have to replace the "-" by a "+" if you are in a timezone with a +. "N" GMT...That's the only change you have to make and it works fine.

  • @bhairavajosyularaghunath4371
    @bhairavajosyularaghunath4371 2 ปีที่แล้ว

    Thanks Priyanka for the videos and I am a beginner in learning this GCP online on my personal interest. Especially very easy to follow your way of explaining the things.

  • @MarkvanderMade_Official
    @MarkvanderMade_Official 4 ปีที่แล้ว

    I followed along with all the steps but it seems it does not catch on the fulfillment in the intent itself

  • @itsswabrihere8299
    @itsswabrihere8299 5 ปีที่แล้ว +1

    i would like to know how to integrate Google maps API when making a local services chart bot

  • @limyiheng8995
    @limyiheng8995 4 ปีที่แล้ว +1

    Hi Team, Thank You for the tutorial. I have a question. How do I modify or delete the appointment created through fulfilment on Dialogflow?

    • @aprprasanth8803
      @aprprasanth8803 4 ปีที่แล้ว +1

      will it add the event to user's calendar without his consent?

  • @patrickfred4250
    @patrickfred4250 5 ปีที่แล้ว +1

    Hi, The send link is greyed out when I pasted the client email to share with specific people. I select to make changes to events but it still is not active. Please help.

    • @ezequiasrocha3037
      @ezequiasrocha3037 5 ปีที่แล้ว

      You have to add the service agent email to your countacts. That's it Priyanka didn't said.

    • @patrickfred4250
      @patrickfred4250 5 ปีที่แล้ว

      @@ezequiasrocha3037, thank you, it worked.

  • @messamuddinahmed8307
    @messamuddinahmed8307 4 ปีที่แล้ว +2

    There's an error at 99 line that I'm unable to resolve, please help me.

  • @ilofeudo
    @ilofeudo 4 ปีที่แล้ว

    Can I schedule appointments on a different calendars?, I have many shops, and each one have its own calendar.

  • @jaybrown926
    @jaybrown926 5 ปีที่แล้ว +1

    Hi, thanks for this video. But I'm getting this error code "The deployment of your Cloud Function failed:
    Function failed on loading user code. Error message: package.json file can't be parsed. Please check whether syntax is correct:
    /srv/package.json: Unexpected end of JSON input" . I tried everything.

    • @Jonasgamertv
      @Jonasgamertv 5 ปีที่แล้ว

      Could you post a link to your json file? Feel free to upload it to pastebin.com, and send it here or into my mail. (jonas.vdr@gmail.com)

  • @dollydashsaini284
    @dollydashsaini284 4 ปีที่แล้ว

    hi.thank you very much for this video.how to add phone numbers and names automatically to the google calendar ?

  • @awefulbrown1909
    @awefulbrown1909 5 ปีที่แล้ว

    Love the playlist. I'm getting an error on this video when trying to add it to the calendar. first error: `Unhandled rejection`. then error: `Error: No handler for requested intent
    at WebhookClient.handleRequest (/srv/node_modules/dialogflow-fulfillment/src/dialogflow-fulfillment.js:317:29)
    at exports.dialogflowFirebaseFulfillment.functions.https.onRequest (/srv/index.js:83:10)
    at cloudFunction (/srv/node_modules/firebase-functions/lib/providers/https.js:57:9)
    at /worker/worker.js:783:7
    at /worker/worker.js:766:11
    at _combinedTickCallback (internal/process/next_tick.js:132:7)
    at process._tickDomainCallback (internal/process/next_tick.js:219:9)`. I've googled it and haven't found a solution.

  • @aprprasanth8803
    @aprprasanth8803 4 ปีที่แล้ว

    will it add the event to user's calendar without his consent?

  • @healthyselftoday
    @healthyselftoday 3 ปีที่แล้ว

    I am getting this error: Error happened during Cloud Functions Deployment

  • @andresmur5403
    @andresmur5403 5 ปีที่แล้ว +1

    Hi, Great Help! Everything works but I need to add the email of the client so he/she can have the invite. Besides, is there any way the agent ask to confirm the date and time available before creating the event? We usually ask for the payment before schedule an appointment.

    • @aprprasanth8803
      @aprprasanth8803 4 ปีที่แล้ว

      will it add the event to user's calendar without his consent?

    • @rithwikreddye
      @rithwikreddye 4 ปีที่แล้ว

      Bro I can help you out with it

    • @Budgetbloom06
      @Budgetbloom06 3 ปีที่แล้ว

      @@rithwikreddye I also got stuck in the same. Will you help me out?

  • @suyogbora
    @suyogbora 5 ปีที่แล้ว +4

    Unable to execute. Showing error "webhook call failed : request timeout error

    • @Budgetbloom06
      @Budgetbloom06 5 ปีที่แล้ว

      Check out my reply in above discussion with @Ifeanyi Ndukwe you'll get the solution

  • @mondweepchakravorty9912
    @mondweepchakravorty9912 5 ปีที่แล้ว

    Hi - I get an error saying
    "Sorry, we're booked on Invalid Date at Invalid Date. Is there anything else I can do for you?"
    My calendar settings do say "Make changes to events". I have created a new calendar as suggested, used the new calendar id in the firebase code and also given access onto the calendar to the correct service account. The Chatbot understands 'Today' and "Now" correctly, but the response from the fulfillment engine is as shown in the error above.
    Would anyone be able to assist?

    • @cedricpendji4972
      @cedricpendji4972 3 ปีที่แล้ว +1

      I had the same issue, here is what i did to fix it:
      Below is the code given in the template
      const timeZone = 'America/Los_Angeles';
      const timeZoneOffset = '-07:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset));
      As we can see, the timezone in the template is 'America/Los_Angeles', But as I live in a different timezone, I changed code accordingly:
      const timeZone = 'GMT';
      const timeZoneOffset = '+02:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset));
      Remember to select the timeZoneOffset corresponding to your location (mine is +02:00)
      Check how I replaced the last split in the code from '-' to '+' as offset for me is '+02:00'

  • @yichen8400
    @yichen8400 4 ปีที่แล้ว

    I would like to know how to collect the user phone number and add it to the google calendar appointment.

  • @ErikoElCurioso
    @ErikoElCurioso 5 ปีที่แล้ว

    Hi, thanks for the video. I would like to know how to add people to the event from the chat. Can you help me?

  • @mohammedzakiuddin1736
    @mohammedzakiuddin1736 4 ปีที่แล้ว

    Hii Priyanka, I'm getting problem with the deployment...Have used your code from the github, but at the time I click on deploy button, its failing to deploy and displaying message as "Error happend during cloud functions delpoyment" do help me out

    • @anandnatarajan7114
      @anandnatarajan7114 3 ปีที่แล้ว

      please check on the console log (there is a hyperlink is displayed on the side). Although, it didnt help me in great deal - I learnt that I can add console.log msgs and find out how the code is working. But am still yet to achieve the final goal yet.

  • @iankafuna3927
    @iankafuna3927 5 ปีที่แล้ว +3

    I followed the steps several times still it doesn't work

    • @daisy2377
      @daisy2377 5 ปีที่แล้ว +1

      Hi Ian Kafuna,
      I made several changes on my code and now it finally works !!
      You may need to update the version of the dependencies in the file "package.json"... like this:
      "dependencies": {
      "firebase-functions": "3.3.0",
      "firebase-admin": "^8.8.0",
      "actions-on-google": "2.12.0",
      "googleapis": "^45.0.0",
      "google-auth-library": "^5.5.1",
      "dialogflow-fulfillment": "0.6.1"
      }...
      Please, let me know if it also works for you ;)

    • @izuchukwuafunugo2085
      @izuchukwuafunugo2085 5 ปีที่แล้ว

      daisy 237 Please it doesn't work for me. How can you help? Please

    • @daisy2377
      @daisy2377 5 ปีที่แล้ว

      @@izuchukwuafunugo2085 Hey ! do you know what the error is? i mean, when you run the function, what the "firebase console" tells you ?

    • @izuchukwuafunugo2085
      @izuchukwuafunugo2085 5 ปีที่แล้ว

      daisy 237 It just write Error.. Errorid and some numbers

    • @daisy2377
      @daisy2377 5 ปีที่แล้ว

      @@izuchukwuafunugo2085 Sorry, i ve never got this error ! :(

  • @anikitgrover7166
    @anikitgrover7166 5 ปีที่แล้ว

    mam I haven't set an appointment scheduled on my google calendar but I will follow all your instructions as you said .. i hope you will help me out ..thanks

    • @cedricpendji4972
      @cedricpendji4972 3 ปีที่แล้ว

      I had the same issue, here is what i did to fix it:
      Below is the code given in the template
      const timeZone = 'America/Los_Angeles';
      const timeZoneOffset = '-07:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset));
      As we can see, the timezone in the template is 'America/Los_Angeles', But as I live in a different timezone, I changed code accordingly:
      const timeZone = 'GMT';
      const timeZoneOffset = '+02:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset));
      Remember to select the timeZoneOffset corresponding to your location (mine is +02:00)
      Check how I replaced the last split in the code from '-' to '+' as offset for me is '+02:00'

  • @jiami4615
    @jiami4615 3 ปีที่แล้ว

    error happening when deploying the inline editor... don't know why

  • @dhirajsobti7149
    @dhirajsobti7149 3 ปีที่แล้ว

    Need your help. When i created service account it didnt gave me a option to download Jason file. Now how do i get it? In Index.js its content has to be copied . Pls advise

    • @saikiran-zq7bs
      @saikiran-zq7bs 6 หลายเดือนก่อน

      I am facing the same problem. Did you find the solution?

  • @TauvicRitter
    @TauvicRitter ปีที่แล้ว

    The chatbot does not understand dates in natural language such as tuesday next week. I use Dutch language and support for that is worse. As long as you use English it works better. Also support for knowledge bases is only in English. I have to do my own parsing to get it understand werkdays. AI is far from perfect. But I'm happy it is a reasonable useful application.

  • @vaisakhm7166
    @vaisakhm7166 4 ปีที่แล้ว +1

    i got an error Webhook call failed. Error: UNAVAILABLE.

    • @simrankataria5990
      @simrankataria5990 4 ปีที่แล้ว

      same. did u resolve it ?

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      @@simrankataria5990 did you manage to solve the problem?

    • @thepedrorriva
      @thepedrorriva 4 ปีที่แล้ว

      did you manage to solve the problem?

  • @Budgetbloom06
    @Budgetbloom06 5 ปีที่แล้ว +3

    Great, Thank you i learnt a lot from You (#Deconstructing Chatbots) . It would be very great if you help me solving the error, The error is "Webhook call failed, request timeout error"

    • @Budgetbloom06
      @Budgetbloom06 5 ปีที่แล้ว +2

      I solved this error, and come up with another one. Here is the error: "fulfillmentText": "I'm sorry, there are no slots available for Invalid Date." and try solving it from a while. Do you help me anyhow?

    • @mannymedina1132
      @mannymedina1132 5 ปีที่แล้ว +2

      @@Budgetbloom06 How did you solve this issue?

    • @anandnatarajan7114
      @anandnatarajan7114 3 ปีที่แล้ว

      @@Budgetbloom06 I would love to hear that as well - am stuck at this step too

    • @Budgetbloom06
      @Budgetbloom06 3 ปีที่แล้ว

      @@anandnatarajan7114 Many pleasure to help you out. You can anytime DM me the doubts at the above mentioned link.

    • @magebazulu4581
      @magebazulu4581 3 ปีที่แล้ว

      @@Budgetbloom06 Hey, how did you resolve the first error? I'm also having the same issue

  • @aakashm.2495
    @aakashm.2495 3 ปีที่แล้ว

    Hey how to enable text to speech in dialgflow?

  • @saurabhkumar-vj6xp
    @saurabhkumar-vj6xp 3 ปีที่แล้ว

    thanks for this great tutorial, appreciate your way of teaching. I tried to do as it is but my calendar does not get the appointment schedule on it. can any body help ?

    • @cedricpendji4972
      @cedricpendji4972 3 ปีที่แล้ว +2

      I had the same issue, here is what i did to fix it:
      Below is the code given in the template
      const timeZone = 'America/Los_Angeles';
      const timeZoneOffset = '-07:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset));
      As we can see, the timezone in the template is 'America/Los_Angeles', But as I live in a different timezone, I changed code accordingly:
      const timeZone = 'GMT';
      const timeZoneOffset = '+02:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset));
      Remember to select the timeZoneOffset corresponding to your location (mine is +02:00)
      Check how I replaced the last split in the code from '-' to '+' as offset for me is '+02:00'

  • @torbeneriksen6609
    @torbeneriksen6609 4 ปีที่แล้ว

    Hi, I got confirmation that the appointment is created but I don't see the entry in the calendar. Does anyone have the solution for that?

    • @pvergadia
      @pvergadia 4 ปีที่แล้ว

      Make sure your service account details are accurate to add an entry in calendar.

    • @cedricpendji4972
      @cedricpendji4972 3 ปีที่แล้ว +1

      I had the same issue, here is what i did to fix it:
      Below is the code given in the template
      const timeZone = 'America/Los_Angeles';
      const timeZoneOffset = '-07:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset));
      As we can see, the timezone in the template is 'America/Los_Angeles', But as I live in a different timezone, I changed code accordingly:
      const timeZone = 'GMT';
      const timeZoneOffset = '+02:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset));
      Remember to select the timeZoneOffset corresponding to your location (mine is +02:00)
      Check how I replaced the last split in the code from '-' to '+' as offset for me is '+02:00'

  • @waelbnd3536
    @waelbnd3536 4 ปีที่แล้ว

    Is the inline editor free !!?

  • @nathanbendavid5050
    @nathanbendavid5050 4 ปีที่แล้ว

    I have an issue once in Fulfillment --inline editor (Once I enable the Inline Editor, it give me a meaage saying Billing Required. Even though my billing is connected. Anybody got an answer?

    • @akaamzain6654
      @akaamzain6654 3 ปีที่แล้ว

      please let me know if you found the solution for this

  • @hades666net
    @hades666net 5 ปีที่แล้ว

    Like this, but how I integred with firebase?

  • @superstark8543
    @superstark8543 5 ปีที่แล้ว

    Thanks. Can you also tell about how to work java script with dialogflow please.

  • @prateektrikha8544
    @prateektrikha8544 5 ปีที่แล้ว +2

    Thankyou. You're a life saver

    • @geovilla821
      @geovilla821 5 ปีที่แล้ว +1

      hi i would like to know if you are able to execute without errors

  • @markusnyblom4491
    @markusnyblom4491 4 ปีที่แล้ว

    Thanks for awesome videos! However, at line 99 I'm gettting: "err ? reject(err) : resolve(event); I am getting an error " Expected an assignment or function call and instead saw an expression" anyone able to solve this? Thank you for your time!

  • @thepedrorriva
    @thepedrorriva 4 ปีที่แล้ว +1

    Nothing works in this tutorial

  • @monottone9939
    @monottone9939 3 ปีที่แล้ว

    How to Single question but Dialogflow schedule answer form Google Calendar
    Example 1 : user send on Every day and Every time
    user : Are You Ready?
    Chatbot : I'm Ready. (Default)
    Example 2 : user send on 30/03/2021@11.00am
    user : Are You Ready?
    Chatbot : I'm Close 11.00am - 05.00pm (Google Calendar)

  • @gimelledelapena9355
    @gimelledelapena9355 4 ปีที่แล้ว +1

    not working

  • @georgea.mchileya4207
    @georgea.mchileya4207 5 ปีที่แล้ว +1

    is anyone getting the Invalid date error

  • @arjunrajendran5108
    @arjunrajendran5108 4 ปีที่แล้ว

    @Google Cloud Platform Hi GCP Team! I would like to know about the cloud functions with if/else command. that checks the user response as an input. Use Case: Currently, I am engaged in a feedback application that expects a yes/no reply for each question from the user. So based upon the reply such as yes/no for each question, It would suggest the user contact the support team if the user's NO response count was higher than the YES response count. Help me out to do build this logic up!.. :

  • @chweyaann6293
    @chweyaann6293 5 ปีที่แล้ว +1

    Thank you. God bless you

  • @Budgetbloom06
    @Budgetbloom06 4 ปีที่แล้ว

    How do I add appointment type?

    • @b-rytte
      @b-rytte 4 ปีที่แล้ว

      It is a developer entity and not a system entity, so u have to create the entity yourself and map the events to it

    • @Budgetbloom06
      @Budgetbloom06 4 ปีที่แล้ว

      @@b-rytte Actually, I'm facing a problem: Whenever two clients try to book appointments with two different person at same time. It's not getting fixed.
      Meaning that, if i book appointment with Director at 2am today and you book same appointment with account manager at same time and date. The appointment is not getting fixed and showing there's no slot at the give time and date.

    • @Budgetbloom06
      @Budgetbloom06 3 ปีที่แล้ว

      Hey @@b-rytte ! Can you fix my doubt?

  • @cryptostar1427
    @cryptostar1427 2 ปีที่แล้ว

    Very nice !

  • @mattsteffler4427
    @mattsteffler4427 5 ปีที่แล้ว +2

    It does not work, I have gone over this video and double and triple checked everything. It gives the message that the appointment is set but does not update the calendar. No errors or anything.

    • @mattsteffler4427
      @mattsteffler4427 5 ปีที่แล้ว +4

      When i check the diagnostic it says: Webhook call failed. Error: Request timeout.

    • @Sercanepazzo
      @Sercanepazzo 5 ปีที่แล้ว +1

      @@mattsteffler4427 me too...

    • @Miguelfutbol10
      @Miguelfutbol10 5 ปีที่แล้ว

      @@mattsteffler4427 Do you found the solution? thanks

    • @BrandonSteve140693
      @BrandonSteve140693 5 ปีที่แล้ว

      I have the same error: Webhook call failed. Error: Request timeout.

    • @hophoptv9401
      @hophoptv9401 5 ปีที่แล้ว

      did you find the solution ? i have the same problem

  • @b3rakesh11
    @b3rakesh11 5 ปีที่แล้ว +1

    Thank you

  • @yonomas84
    @yonomas84 4 ปีที่แล้ว

    most people here said they have errors... and i don't see any support from you guys, it seems that what you showed us, require more than just a video, could you provide more guidance in future lessons, otherwise it will be something to show, but not to learn

  • @b3rakesh11
    @b3rakesh11 5 ปีที่แล้ว

    Awesome

  • @successmyanmaraudio5908
    @successmyanmaraudio5908 5 ปีที่แล้ว

    thanks

  • @bunhthachau3587
    @bunhthachau3587 4 ปีที่แล้ว

    Hi

  • @JoshVonhauger
    @JoshVonhauger 4 ปีที่แล้ว

    has anyone gotten these instructions to work ?

    • @batthis
      @batthis 3 ปีที่แล้ว

      No, it ends with a crash according to logs

  • @latheep
    @latheep 4 ปีที่แล้ว

    It does not work, I have gone over this video and double-checked everything. It gives the message that the appointment is set but does not update the google calendar. No errors or anything.

    • @cedricpendji4972
      @cedricpendji4972 3 ปีที่แล้ว

      I had the same issue, here is what i did to fix it:
      Below is the code given in the template
      const timeZone = 'America/Los_Angeles';
      const timeZoneOffset = '-07:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('-')[0] + timeZoneOffset));
      As we can see, the timezone in the template is 'America/Los_Angeles', But as I live in a different timezone, I changed code accordingly:
      const timeZone = 'GMT';
      const timeZoneOffset = '+02:00';
      const dateTimeStart = new Date(Date.parse(agent.parameters.date.split('T')[0] + 'T' + agent.parameters.time.split('T')[1].split('+')[0] + timeZoneOffset));
      Remember to select the timeZoneOffset corresponding to your location (mine is +02:00)
      Check how I replaced the last split in the code from '-' to '+' as offset for me is '+02:00'

  • @cabanacamping9577
    @cabanacamping9577 3 ปีที่แล้ว

    i have all set up but it's not doing anything