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-apiai
On the first part, it mentioned:
Add to your index.js file (typically in js folder) in function onDeviceReady following code
ApiAIPlugin.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