简体   繁体   English

创建自定义Google助手操作以从网页返回日期的最简单方法是什么

[英]What is the simplest way to create a custom google assistant action that returns a piece of date from a web page

I want to develop a custom google assistant action that will get a web page, extract a piece of information, and read it aloud. 我想开发一个自定义的Google助手操作,该操作将获取一个网页,提取一条信息,然后大声朗读。

I'm looking for pointers for relevant sources. 我正在寻找相关资源的指针。

If it's possible through services such as ifttt it's even better (though from what I saw the google assistant support in ifttt doesn't appear to support this scenario). 如果有可能通过ifttt之类的服务,那就更好了(尽管据我所见,在ifttt中的Google助手支持似乎并不支持这种情况)。

You're looking to create an Action with the Actions-on-Google API . 您正在寻找使用Google Actions API创建Action的方法。 The easiest way would probably be to create a Firebase Function with node.js that handles the AoG request from Google, makes the call to the web page, extracts the information you need in a form that can be read aloud, and sends that back. 最简单的方法可能是使用node.js创建一个Firebase函数,该函数可以处理Google的AoG请求,调用该网页,以一种可以大声阅读的形式提取所需信息,然后将其发送回去。

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

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