Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49224

How to integrate API.AI to Ionic

$
0
0

@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-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

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>