简体   繁体   English

如何使我的Chatbot消息在对话流中有几秒钟的延迟响应?

[英]How do i make my Chatbot Message have some seconds of delay response in dialog flow?

I'm creating a chatbot for a Facebook page to solve people's questions and I wanted to make the bot messages 1 or 2 seconds of delay between each of the bot's replies. 我正在为Facebook页面创建一个聊天机器人来解决人们的问题,我想让机器人的消息在每个机器人的回复之间延迟1或2秒。 Could someone tell me how to do it in dialog flow? 有人能告诉我如何在对话流中做到这一点吗? I couldn't find any answer around my research so hopefully someone could help me. 我在研究中找不到任何答案,所以希望有人可以帮助我。

This isn't possible if you're using Dialogflow's built-in rich messages . 如果您使用的是Dialogflow的内置丰富消息,则无法进行此操作。 It also wouldn't be possible using only webhook fulfillment and the Dialogflow Facebook integration , as you can only deliver a full set of messages as a reply at one time, and can't specify how they are delivered. 仅使用webhook实现Dialogflow Facebook集成也是不可能的 ,因为您一次只能提供一整套消息作为回复,并且无法指定它们的交付方式。

The only way to achieve that level of control would be to build the bot yourself (perhaps using an existing Messenger bot framework), and make calls from that code to Dialogflow to handle natural language understanding. 实现这种控制级别的唯一方法是自己构建机器人(可能使用现有的Messenger机器人框架),并从该代码调用Dialogflow来处理自然语言理解。

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

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