简体   繁体   English

如何安排对话流

[英]How to Schedule Dialogflow

I'm making google assistant which is able to play Prayer's Call, gets Prayer timings from the Prayer Api and able to set timing of Prayer as well, using Webhook of Nodejs.我正在制作能够播放祈祷之声的谷歌助手,从祈祷 Api 获取祈祷时间,并能够使用 Nodejs 的 Webhook 设置祈祷时间。 The problem is how can I schedule Prayer's Call timings to Dialogflow... like how can i invoke "Play Prayer's Call" intent via Nodejs in given time.问题是我如何将祈祷的呼叫时间安排到 Dialogflow ......就像我如何在给定的时间内通过 Nodejs 调用“播放祈祷的呼叫”意图。

It's not possible to call an intent on demand if you want to use google assistant, every message of google assistant, is triggered by an user message, to avoid spam.如果您想使用谷歌助手,则无法按需调用意图,谷歌助手的每条消息都是由用户消息触发的,以避免垃圾邮件。

Your best approach is to use Notifications which are available for smartphones.您最好的方法是使用可用于智能手机的通知

If you're using your custom chat, facebook messenger, telegram, you can indeed achieve that, by calling the intent using the Node.js Dialogflow library.如果您正在使用自定义聊天、facebook 信使、电报,您确实可以通过使用 Node.js Dialogflow 库调用意图来实现这一点。

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

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