Skip to content


Repository files navigation

GoDoc Go Report Card

This repository is community-maintained. We gladly accept pull requests. Please see the Wit HTTP Reference for all supported endpoints.

Go client for HTTP API.


go get -u


package main

import (

	witai ""

func main() {
	client := witai.NewClient(os.Getenv("WIT_AI_TOKEN"))
	// Use client.SetHTTPClient() to set custom http.Client

	msg, _ := client.Parse(&witai.MessageRequest{
		Query: "hello",
	fmt.Printf("%v", msg)


Both Unit / Integration tests are executed by Github Actions.

Unit tests

go test -race -v

Integration tests

Integration tests are connecting to real API, so you need to provide a valid token:

export WITAI_INTEGRATION_TOKEN=your_secret_token_here
go test -v -tags=integration


The license for wit-go can be found in LICENSE file in the root directory of this source tree.

Terms of Use

Our terms of use can be found at

Privacy Policy

Our privacy policy can be found at