Google Assistant SDK - 操作从 SQL 服务器获取信息

Google Assistant SDK - Actions get information from SQL Server

我正在尝试制作自己的 Google 助手操作。

我想请教一个问题。 SQL服务器是这个的数据源。 Google 助手正在搜索我的 SQL 服务器以获取结果。当它找到结果时,它会读出结果。这可能吗?我在哪里可以搜索或阅读有关如何执行此操作的更多信息?

您要找的是Actions on Google broadly. Specifically, you're looking to build a conversational action where the user can ask questions that match Intents that you provide to the Assistant to match. When an Intent is matched, the information is passed to your code, which is running as a webhook, to generate a response

只要您足够快(大约 5 秒)并且 return 响应,您的 webhook 几乎可以做任何您想做的事情。这可以包括数据库查询或任何其他必要的处理或业务逻辑。有关为 SQL 服务器执行此操作的详细信息超出了此特定问题的范围 - 但它应该与从您 运行 的任何其他服务器执行 SQL 服务器查询非常相似。 =11=]