Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mlabouardy/dialogflow-go-client
Go library for DialogFlow (API.AI) 😎
https://github.com/mlabouardy/dialogflow-go-client
apiai bot dialogflow golang machine-learning sdk
Last synced: about 1 month ago
JSON representation
Go library for DialogFlow (API.AI) 😎
- Host: GitHub
- URL: https://github.com/mlabouardy/dialogflow-go-client
- Owner: mlabouardy
- License: apache-2.0
- Created: 2017-08-01T08:18:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T06:18:40.000Z (about 6 years ago)
- Last Synced: 2024-06-18T20:26:23.969Z (6 months ago)
- Topics: apiai, bot, dialogflow, golang, machine-learning, sdk
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 79
- Watchers: 7
- Forks: 20
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dialogflow-go-client
[![CircleCI](https://circleci.com/gh/mlabouardy/dialogflow-go-client.svg?style=svg)](https://circleci.com/gh/mlabouardy/dialogflow-go-client) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) [![Go Report Card](https://goreportcard.com/badge/github.com/mlabouardy/apiai-go-client)](https://goreportcard.com/report/github.com/mlabouardy/apiai-go-client)
This library allows integrating agents from the [DialogFlow](https://dialogflow.com) natural language processing service with your Golang application.
* [Prerequsites](#prerequsites)
* [Installation](#installation)
* [Features](#features)
* [Usage](#usage)
* [Documentation](#documentation)# Prerequsites
Create an [DialogFlow account](https://dialogflow.com/).
# Installation
```shell
go get github.com/mlabouardy/dialogflow-go-client
```# Features
* Queries
* Contexts
* Intents
* UserIntents
* Entities# Usage
* Create `main.go` file with the following code:
```golang
package mainimport (
"fmt"
. "github.com/mlabouardy/dialogflow-go-client"
. "github.com/mlabouardy/dialogflow-go-client/models"
"log"
)func main() {
err, client := NewDialogFlowClient(Options{
AccessToken: "",
})
if err != nil {
log.Fatal(err)
}entities, err := client.EntitiesFindAllRequest()
if err != nil {
log.Fatal(err)
}
for _, entity := range entities {
fmt.Println(entity.Name)
}
}
```
* Run following command.
```shell
go run main.go
```
* Your can find more examples in [`examples`](examples) directory.# Tutorials
* [Messenger Bot with DialogFlow & Golang](http://www.blog.labouardy.com/bot-in-messenger-with-dialogflow-golang/)
# Documentation
Documentation is available at https://dialogflow.com/docs.