API.AI-Example

API.AI-Example
AuthorCochranRobotics
CreatedMay 2017
Last updatedJune 2017

I modified the example to work with the API.AI version 5 of the plugin.

I also added notes that should help to understand what is happening and where.

This is to be used with the example API.AI project that I posted in the first post at http://www.ez-robot.com/Community/Forum/Thread?threadId=10407

This is an example showing how to use API.AI with Bing Speech and Pandora bot.

Requires the following plugins and controls
Pandora Bot
Bing Speech Recognition plugin
API.AI Plugin

Also, you can load the example API.AI project that I supplied at http://www.ez-robot.com/Community/Forum/Thread?threadId=10407. You might want to import the SmallTalk prebuilt agent also if you want those features.

The init script has to be launched first. I have the bing speech plugin auto recording when volumes get above a threashold. The ResponseParse script is used to decide what to do with what is returned. If API.AI doesnt know what to do, it sends the text to the pandora bot.

This is just an example and there may be more clean ways to script something out. I just wanted to give an idea of what could be done.

Tutorial
Download this App
In order to use this app, you need Synthiam ez-builder software. Download Synthiam from here.