简体   繁体   English

适用于Google Assistant对话Webhook的Proto文件或类似文件?

[英]Proto file or similar available for google assistant conversation webhook?

Google assistant has a json webhook api called the 'conversation webhook' (api documentation) and a node.js client library for it here . 谷歌助理有被称为“谈话网络挂接”一个JSON网络挂接API (API文档) ,并为它的Node.js客户端库在这里

Question: is there a .proto protobuffers file or some other single-source-of-truth file that I can use to help me get started writing a server for this webhook in a language other than node.js? 问题:是否有.proto protobuffers文件或其他一些真实的单文件,可以用来帮助我开始使用node.js以外的语言为该Webhook编写服务器?

More info: 更多信息:

  • in my case I'd like to handle the webhook in go (golang), but I expect others would want to create a webhook server for google assistant actions in python, java, etc. 就我而言,我想在go(golang)中处理webhook,但我希望其他人希望为python,java等中的Google助手操作创建webhook服务器。
  • basically I'm looking for whatever google uses as the single source of truth for this api. 基本上我正在寻找google用作此api的唯一事实来源。 I assume the online documentation (see first link above) is auto-generated from a file and not written by hand. 我认为在线文档(请参见上面的第一个链接)是从文件自动生成的,而不是手动编写的。
  • I'm really hoping there's a .proto file that is or can be made available so that go/python/java/etc. 我真的希望有一个.proto文件,该文件可以或可以使之可用,以便go / python / java / etc。 client libraries can be (somewhat) auto-generated. 客户端库可以(某种程度上)自动生成。 Lots of google's public api's have this available, see github.com/googleapis . 谷歌的许多公共API都有此功能,请参阅github.com/googleapis The new assistant sdk for embedding the assistant in a device also has a proto file for it's interface definition, see assistant/embedded at github.com/google-apis . 用于将助手嵌入到设备中的新助手SDK也具有针对其接口定义的原型文件,请参阅github.com/google-apis上的 assistant / embedded

Thanks in advance for any help. 在此先感谢您的帮助。

PS: if a proto file isn't available and there are googlers reading this, please can you try to make one available! 附言:如果没有原始文件,并且有Google阅读此文件,请您尝试提供一个原始文件! I could list the many benefits of having one available to the community, but then I'd be stupidly trying to sell protobuffers to googlers! 我可以列举一个可供社区使用的好处,但是我会愚蠢地尝试向Google员工出售原型缓冲区! So I'll leave it there. 所以我将其留在那里。 Thanks. 谢谢。

I couldn't find anything provided by google which authoritatively showed the request/response flow for conversation actions. 我找不到google提供的任何内容,该内容权威地显示了对话操作的request/response流。 I used a couple implementations I found on GitHub to get my python app working. 我使用了在GitHub上找到的几个实现来使我的python应用程序正常工作。 I found Github - actions-on-google-php and Github - google-action-three-doors helpful in showing the JSON passed back and forth in the protocol. 我发现Github-Google上的actions phpGithub-Google-action-three-doors有助于显示协议中来回传递的JSON。

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

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