How to extract two slot values having time

I have a FormAction for Applying Leave which requires 3 fields

  1. Leave_Type
  2. Start_Date
  3. End_Date

Now how to extract date and set appropriately in the slots. As the user input can simply be just a date value like - “12/09/2017” or “12 July 2007” or “Sept 21 2016”. The Form will prompt for each of the slot.

1 Like

You can do this by using the slot_mappings function in your form class. Take a look at this:

Create a common intent (like “inform”) and a date entity for getting the date values.

1 Like

Thanks for pointing out. This works !! :smiley:

1 Like