关于如何对Google Assistant中的单个请求回答两次(Dialogflow) [英] About how to answer twice in response to a single request in Google Assistant (Dialogflow)

查看:51
本文介绍了关于如何对Google Assistant中的单个请求回答两次(Dialogflow)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用Google Assistant(Dialogflow)对用户的请求进行两次答复.

I'd like to respond twice to requests from users with Google Assistant (Dialogflow).

  1. 用户说告诉我们天气"

2-1.回复用户我会检查,请稍候" [回复1]

2-1. Reply to the user "I will check it, please wait" [response 1]

2-2.使用Dialogflow(Webhook)调用天气的WebAPI(假定处理大约需要5秒钟)

2-2. Call WebAPI of weather with Dialogflow (Webhook) (assuming it takes about 5 seconds to process)

〜5秒后〜

  1. 回复用户今天天气晴朗" [响应2]


所以有一个问题.


So there is a question.

(1)是否可以如上所述响应一个请求两次返回响应?

(1) Is it possible to return the response twice in response to one request as described above?

(2)如果可能的话,请让我知道具体的操作方法.

(2) If possible, please let me know how to do it concretely.

(3)如果不可能,请告诉我实现上述目标的计划.

(3) If impossible, please tell me the plan for realizing the above.

我遇到了严重的麻烦,请给我一个答案.

I am in serious trouble, so please give me an answer.

谢谢.

推荐答案

您不能向助手发送多个响应.即使有可能将一条消息分成多个聊天气泡,整个消息仍然必须一次性发送给助手.

You can't send multiple responses to the assistant. Even if it were possible to split a message into multiple chat bubbles the entire message would still have to be send in one go to the assistant.

这篇关于关于如何对Google Assistant中的单个请求回答两次(Dialogflow)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆