User Tools

Site Tools


api_ai_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
api_ai_tutorial [2017/01/04 11:33] dwallaceapi_ai_tutorial [2017/01/04 11:43] (current) dwallace
Line 79: Line 79:
  
 Once you have imported the project, do a clean build to ensure no errors occur. If they do, fix them by installing the necessary libraries/platforms for the SDK. Once you have imported the project, do a clean build to ensure no errors occur. If they do, fix them by installing the necessary libraries/platforms for the SDK.
 +\\ \\ 
 +{{ dylanw:apiaitoken.jpg?800 }}
 +\\ 
  
 +Finally, in order to interface our agent that we created, with the SDK, we need to provide the Client Access Token which can be found under the Agent Settings. Copy this token and add it to the ACCESS_TOKEN field of the Config.java file. Save your changes and rebuild the project. If you are without errors, then we should be ready to deploy.
 +
 +===== Deployment =====
 +
 +For deployment, we will follow the same steps as outlined in the [[nest_tutorial#deployment|Nest Control Tutorial]]. Make sure that both Developer mode and USB Debugging are enabled in order for the app to deploy. Install the app, and open it up for testing.
 +
 +===== Testing =====
 +
 +In order to test, simply use the Button Sample on the app. This will take in the speech, send it to the Google's NLU service, and then back to API.AI for processing through your intents. Then, the agent will return the speech response to the phone, and also will display the returned JSON text from the response. This JSON text will allow us to utilize a custom app to act on intents. This could allow us to integrate things such as the Nest API and Hue API into our app to develop a Smart Home Integration App.
 +
 +
 +For questions, clarifications, etc, Email: <[email protected]>
api_ai_tutorial.txt · Last modified: 2017/01/04 11:43 by dwallace