Skip to content

mattetti/ok-go

Repository files navigation

OK Google - Fun with the Google Assistant SDK + Go

Usage

You first need to have a Google Cloud Platform project Follow the steps to configure a Google API Console Project and a Google Account to use with the Google Assistant SDK.

Download the client_secret_XXXXX.json file from the Google API Console Project credentials section and store it wherever you want.

Run cmd/hello/main.go -creds=<path to credentials file> to start the Google Assistant.

gRPC bindings

The gRPC bindings were generated from the v1 alpha proto file vendored in the proto folder (in this repo). The source is available https://github.com/googleapis/googleapis and if/when the proto file will need updating, updating the vendored folder and regenerating the bindings will be needed.

  • You need to have gRPC setup on your machine
  • Update the googleapis proto files from the github repo
  • run proto/build.sh

You will notice that the go binding file: google.golang.org/genproto/googleapis/assistant/embedded/v1alpha1/embedded_assistant.pb.go was updated to reflect the proto file changes.

That's it!

About

Google Assistant SDK in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published