Skip to content
C++ library for Dialogflow
C++ C CMake
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apiai Add sessionId to text query Jan 18, 2018
cmake Add contributing file and update license Aug 17, 2017
examples
indent_stream
pkg-config Added pkg-config file for more ximple user library Dec 4, 2015
tests
third_party/cJSON Add contributing file and update license Aug 17, 2017
.gitignore
.gitmodules Add contributing file and update license Aug 17, 2017
CMakeLists.txt Add contributing file and update license Aug 17, 2017
CONTRIBUTING.md Add contributing file and update license Aug 17, 2017
LICENSE Initial commit Nov 13, 2015
README.md

README.md

DEPRECATED C++ library for api.ai

Deprecated
This Dialogflow client library and Dialogflow API V1 have been deprecated and will be shut down on October 23th, 2019. Please migrate to Dialogflow API V2

Overview

The API.AI C++ library makes it easy to integrate speech recognition with Api.ai natural language processing API. Api.ai allows using voice commands and integration with dialog scenarios defined for a particular agent in API.AI.

Prerequsites

Building and Installing

Configuring the submodules

The project contains submodules for some dependencies and some libraries. Once you have cloned cpp-netlib, you must update the submodules:

$ cd ~/libapiai
$ git submodule init
$ git submodule update

Building with CMake

To build the libraries and run the tests with CMake, you will need to have CMake version 3.0 or higher installed appropriately in your system.

$ cd ~/libapiai
$ mkdir build
$ cd build
$ cmake ../

Once CMake is done with generating the Makefiles and configuring the project, you can now build and install library:

$ make
$ sudo make install

If your use CMake in your project.

Use library as submodule.

$ git submodule init
$ git submodule add git@github.com:api-ai/libapiai.git

In your CMakeLists.txt add

add_subdirectory(libapiai)

Examples

Your can see examples for more information about how to use library.

Third Party Libraries

How to make contributions?

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.

Terms

Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service.

This is not an official Google product.

You can’t perform that action at this time.