https://discord.gg/botpress logo
Google Calendar -
# 🤝help
b
Hello! I am creating a scheduling chatbot. I have integrated it with Google Calendar, and the main features are: booking appointments and services, rescheduling, and canceling appointments and services. The flow for all three actions is working, but I would like the bot to allow booking only one service per time slot. Right now, it is allowing multiple bookings per time slot and also showing days and times that are actually unavailable. I tried to configure this using Execute Code. Could you help me? The available days are: Tuesday to Saturday. Time slots: Tuesday to Friday: 08:00, 09:30, 11:00, 13:30, 15:00, 16:30 Saturday: 08:00, 09:30, 11:00 https://cdn.discordapp.com/attachments/1396924277638303825/1396924277831237732/2107.JPG?ex=687fda9d&is=687e891d&hm=5b4163743911c0bac17057c1af1a0cc6db4f82d031da9d4c4a5279fcea102162&
p
You could keep a list of the booked time slots or remove the time slots from a list when they are booked. Have you tried that?
b
I'd like this to be done automatically using some AI functionality. Is that possible?
p
You can do so via code which is pretty simple. Why would you rather have it done by AI? You can try with an Ai task but date/times are sometimes messed up when managed by AI.
b
I tried it with a code, but it didn't work. Unavailable dates and times are being made available. Could you check the code?
3 Views