I want to define an intent PlaceReservation
that would capture a restaurant reservation. The parameters for that would be numOfPeople
and time
. Both of those parameters are optional, so a user can say:
- get a table for 5 people for 9pm
- get a table for 5 people
- get a table for 9pm
- get a table
- get a table for 5
- get a table for 9pm for 5 people
- get a table for 5 for 9pm
My problem is with the last one, get a table for 5 for 9pm
the intent then captures 5 as the hour (5am) and ignores 9pm.
time
is defined as a @sys.time
system entity.
Is there a way to tell it to not accept simple integers as time, as I think this is what is confusing it?
Is there some other solution I'm missing? I certainly understand why it is making the mistake, but we, as humans understand how to interpret it, and I want to help DialogFlow interpret it accordingly.