使用 Google 助手调用另一个 API(例如 Jenkins API)的最佳方法是什么?
What is the best way to use Google Assistant to call another API (e.g. Jenkins API)?
我正在开发一个应用程序以使用 Google 助手调用另一个系统(例如,要求 Jenkins 服务器进行构建)
使用 Google 助手调用外部 API(例如 Jenkins API)做某事(例如构建或禁用作业)的最佳方式是什么?
我应该从 google-assistant-sdk 开始并在 Python 中构建应用程序吗?
你应该使用 Actions on Google。它是一个对话平台,可让您创建适用于 phone 和 Google 家庭的应用程序。
您可以将其设置为带有中介系统的 webhook,以像 Dialogflow 那样进行 NLP。您的 webhook 可以查询您的 Jenkins 状态和 return 结果。
交互模型是这样的:
You: Talk to My Jenkins Server
Google: Ok, getting My Jenkins Server
App: Hello. How can I help?
Me: Start a build
App: Okay, starting build 37. Later, ask me about the status of build 37.
Google: beep boop (ends conversation)
Google Assistant SDK 适用于嵌入式/物联网设备。
我正在开发一个应用程序以使用 Google 助手调用另一个系统(例如,要求 Jenkins 服务器进行构建)
使用 Google 助手调用外部 API(例如 Jenkins API)做某事(例如构建或禁用作业)的最佳方式是什么?
我应该从 google-assistant-sdk 开始并在 Python 中构建应用程序吗?
你应该使用 Actions on Google。它是一个对话平台,可让您创建适用于 phone 和 Google 家庭的应用程序。
您可以将其设置为带有中介系统的 webhook,以像 Dialogflow 那样进行 NLP。您的 webhook 可以查询您的 Jenkins 状态和 return 结果。
交互模型是这样的:
You: Talk to My Jenkins Server
Google: Ok, getting My Jenkins Server
App: Hello. How can I help?
Me: Start a build
App: Okay, starting build 37. Later, ask me about the status of build 37.
Google: beep boop (ends conversation)
Google Assistant SDK 适用于嵌入式/物联网设备。