Work in progress
Go package for creating Google Home actions (fulfillment) via Dialogflow. Not a hundred percent package for all Dialogflow features. The most basic features exists.
This package does only support V2 of Dialogflow API (not v1). More about how to use it here.
go get -u github.com/skillkit/go-ghome
package main
import (
"net/http"
"github.com/skillkit/go-ghome"
)
func main() {
app := ghome.NewApp()
app.OnIntent(func(w ghome.ResponseWriter, r *ghome.Request) error {
w.WriteSpeech("Hello, world!")
return nil
})
http.Handle("/", app.Handler())
http.ListenAndServe(":3000", nil)
}
MIT © Fredrik Forsmo