Python library for Dialogflow
Clone or download
matthewayne Add and update licenses
Change-Id: Ie6a7f4b402746039fdfef3830193329e03c03a1a
Latest commit 77b7004 Aug 18, 2017 Python SDK for API.AI <>_

.. image:: :target:

.. image:: :target:


The API.AI Python SDK 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.


Create an API.AI account <>_.

Running examples

  1. Find examples from 'examples' path.
  2. Insert API key.

.. code-block:: python



  • Speech Recognition.
  • Voice Activity Detection.
  • Natural Language Processing.


To install apiai, simply:

.. code-block:: bash

$ pip install apiai

or install it from repo:

.. code-block:: bash

$ pip install

You might run into problems because some dependencies in your python environment are missing. You need to install numpy (which is available in almost all package managers). For running the examples you also need python audio.

In ubuntu the following will do the job:

.. code-block:: bash

$ apt-get install python-pyaudio python-numpy
$ pip install apiai


Documentation is available at

How to make contributions?

Please read and follow the steps in the




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.