如何在Dialogflow ES中在用户开始提供输入之前添加启动消息

huangapple go评论43阅读模式
英文:

How to add the starter message in dialogflow ES before the user start giving inputs

问题

DialogFlow ES控制台中,我们可以根据用户输入生成回复。
我想知道在用户第一次访问聊天时,如何添加初始消息,就像在向机器人提供任何输入之前一样。

比如:

"嗨,这是<xyz名称>的机器人。我可以帮你什么忙吗?"

英文:

in the DialogFlow ES console we can generate responses based on the user input.
I am wondering that how can I add the starter message when the user visit the chat first time like before giving any input to bot.

such as

"Hi, this is <xyz Name>'s bot. How can i help you?"

答案1

得分: 1

是的,如在这个堆栈线程中提到的,可以通过使用Dialogflow的欢迎事件来实现。您可以在意图的事件部分中将欢迎意图设置为WELCOME,它可以作为一个“触发器”,在用户没有输入任何消息的情况下触发默认的欢迎意图。当用户点击机器人图标时,Dialogflow将触发欢迎意图,并显示您所需的消息。

类似的帖子可以在这里找到。

英文:

Yes, as mentioned in this stack thread it can be done by using dialogflow Welcome Event. You can use a welcome intent as the word WELCOME, under the Event section in the intent. It can be used as a "trigger" to get the Default Welcome Intent to fire without the user typing any message. When a user will click on the bot icon, Dialogflow will trigger the welcome intent with your desired message.

A similar post here talks about this.

huangapple
  • 本文由 发表于 2023年6月5日 16:07:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76404551.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定