@dlim wrote:
Hi,
I’m new to Ionic and API.AI. I’m following this guide to integrate API.AI and Ionic:
https://www.npmjs.com/package/cordova-plugin-apiaiOn the first part, it mentioned:
Add to your index.js file (typically in js folder) in function onDeviceReady following codeApiAIPlugin.init( { clientAccessToken: "YOUR_CLIENT_ACCESS_TOKEN", // insert your client access key here lang: "en" // set lang tag from list of supported languages }, function(result) { /* success processing */ }, function(error) { /* error processing */ } );
There’s no index.js file in Ionic. Can someone guide me where I need to put this?
Thanks
Posts: 2
Participants: 1