Creating an Ionic AI Chatbot with API.AI


#1

Artificial Intelligence is ramping up!
Learning AI programming from zero can take some time, however, some services like API.AI allow us to profit from it with little AI knowledge.
In this tutorial, we are going to use this AI platform to create an Ionic Chatbot application.

https://www.javascripttuts.com/creating-an-ionic-ai-chatbot-with-api-ai/


#2

What are the reasons for having to install the” Dialogflow Cordova plugin”?
Why is the plugin necessary?
Or is it helpful, but not necessary?

Supposing I used Microsoft’s QnA Maker (https://qnamaker.ai/) to build a chatbot service, would the QnA Maker also require a Cordova plugin to work inside of ionic?


#3

Hi,
By experience I generally prefer to install the plugin closest to the platform.
If it’s a big project (like DialogFlow), the team that translate it from pure JS to Ionic (for example) create better documentations and features that the platform requires. For example, the Ionic Native File plugin is way easier to use than the Cordova one.
On the other side, the vanilla JavaScript plugin generally has more features because the Cordova and Ionic teams need some time to transpose them to their technology.


#4

Hello,
I had adapted lessons from link which you had specified.
Installed plugin also.
But i had error in
ApiAiPromises is not defined.

I had tried also windows variable but it is also not works for me.
Please any suggestions or can give your example project on git link.

Thanks in advance!!!


#5

Hi ,
I modified the code , inorder to connect with the dialogflow . there is a query section in dialogflow ,
https://dialogflow.com/docs/reference/agent/query . By using this i made one , https://github.com/syedjafer/Ionic_with_dialogflow . This may help you .