ibm-cloudibm-watsonwatson-conversationwatson-dialog

Watson Assistant @sys-date returning next year's month


Scenario :

Problem :


Solution

  • I find detecting the correct meaning of unqualified month and day names difficult, e.g., when talking with people from different regions or countries. Now teach that to a computer...

    The documentation for Watson Assistant has some details on @sys-date and @sys-time system entities. For one of the examples they have this footnote:

    Returns the next matching date. If that date has already passed this year, this returns next year's date.

    In your case September has already passed to some degree. If someone says "I plan a worldcruise for September" would it mean this or next September? My recommendation would be to check the detected year and compare it with the current year. If they differ, add a dialog node to clarify if this year or next year is meant. This would be similar to what I personally do when talking with friends and I find it unclear.