How to integrate API.AI in Ionic?


I’m new to Ionic and API.AI. I would like to integrate API.AI on my Ionic app to have a chatbot style application. On home tab, I would like to have a window where user can send a chat and API.AI will return response.

Anyone been successful on doing this in Typescript?


They do have Cordova, JS and HTML SDKs so this shouldn’t be too hard.

declare var ApiAIPlugin: any;

should work.

Thanks Sujan for your response. I’m new to Typescript/Javascript. The sample on the link uses Javascript.

Apologies, I’m really new to this. Will this show the chat window from API.AI? Would like to add this say on clicking the Home tab for example.

Please please help.