Skip to content

[WIP] Go package for creating Google Home actions (fulfillment)

License

Notifications You must be signed in to change notification settings

skillkit/go-ghome

Repository files navigation

ghome Build Status GoDoc Go Report Card

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.

Installation

go get -u github.com/skillkit/go-ghome

Example with HTTP

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)
}

License

MIT © Fredrik Forsmo

About

[WIP] Go package for creating Google Home actions (fulfillment)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages