如何编写日期是基本参数的代理人的意图?

How to write intent of an agent where date is essential parameter?

我是 DialogFlow 的新手,正在开发一个提供年度信息的代理。

名为 YearData 的意图和后面的短语用于训练 1. "year wise report" 2. "Annual report of 2017" 3. "where i can find annual report"

并且我现在已经根据需要设置了参数名称日期期间,当我给出 9999 年时,它显示了 2017 年或 2018 年的相同响应。我想将其限制为有效日期

当用户输入无效日期..系统会提示日期无效或不在范围内

在您的 fulfillment webhook 中,检查以确保它是一个有效的日期,如果不是,请发回一条消息说明。