I wanted to ask whether there is a way to take input from the user through a calendar and store it in a datetime variable.
rapid-smartphone-5015
07/27/2023, 12:43 PM
Then how are we able to take input in a user-friendly way? (Regarding date and time)
a
acceptable-kangaroo-64719
07/27/2023, 12:44 PM
For now, there's the DateTime capture card, where you can ask the user to type in the date. The card is very versitile and can take input like "next friday" "June 11" or "18:30" and turn it into a standard Datetime
r
rapid-smartphone-5015
07/27/2023, 12:53 PM
So does the variable have to be a date or string variable?
a
acceptable-kangaroo-64719
07/27/2023, 3:14 PM
the variable will be a JS Datetime object. The AI behind the scenes will do its best to turn whatever the user says into this object, so you don't have to worry about that part.
g
gentle-shampoo-88367
08/31/2023, 11:04 PM
Hey just made a calendar integration for botpress. Check it out. Would love the feedback.
Feel free to reach out to me as well.