This repository is an example, developed in classroom, for getting started with api.ai.
The repository contains a simple agent to speak about the weather (WeatherAgent.zip
), to be imported in api.ai.
Moreover, it contains an example of how to interact with the api.ai API through HTML5 and JavaScript. It uses the HTML5 Web Speech API to providing both speech-to-text and text-to-speech functionality in the browser. It was tested on Chrome 57.
The JavaScript code present in the example has been inspired by the gist provided in the api.ai documentation.
The example contained in this repository is published at https://reti2vc-2017.github.io/apiai-weather/