Google首页发送GET请求并说出响应
Google Home send GET request and say response
网上有一个API,当你向某个URL提交GET请求时,它会回复一个数字(点数)。
我希望我的 Google 主页在我要求时说出这些信息。我试图用 DialogFlow 做到这一点,但我不确定我将如何去做。
编辑:我使用了 DialogFlow fulfillment webhook 功能。 DialogFlow 向我的网络服务器发送一个 post 请求,服务器以 [=17=] 响应,这就是 Google 主页会说的。
Google 主页中没有任何内置内容可以从 URL 的页面获取信息。
您可以编写一个程序,该程序将由智能助理触发,使用 Actions on Google. This includes something that would run through Dialogflow, or it could run through the Actions SDK. Either way - you would do this by writing a program that would be called in a webhook 获取数据,return 智能助理将在您的主屏幕上读取一条消息。
网上有一个API,当你向某个URL提交GET请求时,它会回复一个数字(点数)。
我希望我的 Google 主页在我要求时说出这些信息。我试图用 DialogFlow 做到这一点,但我不确定我将如何去做。
编辑:我使用了 DialogFlow fulfillment webhook 功能。 DialogFlow 向我的网络服务器发送一个 post 请求,服务器以 [=17=] 响应,这就是 Google 主页会说的。
Google 主页中没有任何内置内容可以从 URL 的页面获取信息。
您可以编写一个程序,该程序将由智能助理触发,使用 Actions on Google. This includes something that would run through Dialogflow, or it could run through the Actions SDK. Either way - you would do this by writing a program that would be called in a webhook 获取数据,return 智能助理将在您的主屏幕上读取一条消息。