DialogFlow (formerly API.AI) gives users new ways to interact with your bot by building engaging voice and text-based conversational interfaces powered by AI.
DialogFlow offers many SDKs in different programming languages:

But unfortunately, there’s no SDK for Golang

But dont be sad, I made an SDK to integrate DialogFlow with Golang:

This library allows integrating agents from the DialogFlow natural language processing service with your Golang application.
Issue the following command to install the library:
1 | go get github.com/mlabouardy/dialogflow-go-client |
The example below, display list of entities:
1 | package main |
Note: for more details about the available methods, check the project GitHub repository.
For a real world example on how to use this library, check my previous tutorial, on how to create a Messenger Bot in Golang to show list of movies playing in cinema, and tv shows airing on TV:

Drop your comments, feedback, or suggestions below — or connect with me directly on Twitter @mlabouardy.