dialogflow-es - Dialogflow default date parameter
问题描述
I can't find any in the documentation, is there a way to set a parameter default value to a dynamic value like for example "today" ?
if as a default value I put "today" or "@sys.date" it is used as string, and not as the date value
解决方案
不,您不能在 Dialogflow 中为参数设置动态默认值。正如您所怀疑的,您需要在后端实现此功能。
唯一可用于默认参数值的动态元素是从原始用户话语、上下文或复合实体中提取的。
推荐阅读
- elasticsearch - 弹性搜索中的“标准”类型
- c# - 我不知道如何从 'float' 转换为 'int'
- android - 如何修复 android studio 中的 getWritableDatabase() 错误?
- php - Mysql IN(1,2,3) 运算符正在获取与 1 匹配的数据
- php - 用php重复合并或组合一个数组中的N(6)行文本
- objective-c - 如何修复“架构 x86_64 的未定义符号”委托
- c++ - 为什么在 EventWrite 函数调用成功后我有空的 Windows 日志
- c# - PostAsJsonAsync .Net 4.0 的超时问题
- javascript - 如何将数据从 csv 文件或 excel 文件导出到 javascript 对象?
- angular - Angular Protactor e2e 测试 Azure Devops 的 CI