简体   繁体   English

Dialogflow CX $param 未显示在代理文本中

[英]Dialogflow CX $param not showing in agent text

I am getting into CX and have a simple agent going but I cannot get the agent to respond with my filled parameter.我正在进入 CX 并且有一个简单的代理正在运行,但我无法让代理响应我填充的参数。

I have a page that asks for @DrinkFrequency and @DrinkChoice, I see both get filled correctly when I test the agent and $page.params.status = FINAL takes me to my next page that says我有一个请求@DrinkFrequency 和@DrinkChoice 的页面,当我测试代理时我看到两者都被正确填充并且$page.params.status = FINAL将我带到下一页说

So you drink $session.params.DrinkFrequency and prefer to drink $session.params.DrinkChoice 

But the agent says exactly that, it does not replace $session.params.DrinkFrequency or $session.params.DrinkChoice with the values the user gave.但代理明确表示,它不会用用户提供的值替换$session.params.DrinkFrequency$session.params.DrinkChoice I know it must be a simple issue but I have tried to write $session.params.DrinkFrequency in a few different ways and I looked at the existing tutorial bots and they also have it with just the $ sign.我知道这一定是一个简单的问题,但我尝试以几种不同的方式编写$session.params.DrinkFrequency ,我查看了现有的教程机器人,它们也只有$符号。 Am I not saving the user given value?我不是在保存用户给定的价值吗?

The page that gets the values has the two parameters and they ask for the value in their "Initial prompt fulfillment" field.获取值的页面有两个参数,他们在“初始提示实现”字段中询问值。

页面的屏幕要求选择一个值

You're referring to the entity type, while the display name is the name of your parameter.您指的是实体类型,而显示名称是您的参数名称。

If you replace $session.params.DrinkFrequency with $session.params.frequency and $session.params.DrinkChoice with $session.params.preference it should work.如果将 $session.params.DrinkFrequency 替换为 $session.params.frequency 并将 $session.params.DrinkChoice 替换为 $session.params.preference 它应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM