[英]Dialogflow - multiple agent.add responses (nodejs)
In my fulfilment code, if I do: 在我的履行代码中,如果这样做:
agent.add('Hello');
agent.add('World');
both the console and the Google assistant will do: 控制台和Google助手都将执行以下操作:
Agent: Hello 中介:你好
Agent: World 经纪人:世界
But in the web demo and other embedded examples, it only responds: 但是在网络演示和其他嵌入式示例中,它仅响应:
Agent: Hello. 特工:您好。
How do I fix this, and get multiple responses in multiple messages? 如何解决此问题,并在多封邮件中获得多个回复?
There doesn't seem to be a way to do this in Dialogflow, so my solution was simply: 在Dialogflow中似乎没有办法做到这一点,所以我的解决方案很简单:
var message;
message = 'Hello '
message += 'World.'
agent.add(message);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.