# Creating an Ionic AI Chatbot with API.AI

**URL:** <https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094>\
**Category:** tutorials\
**Created:** [October 8, 2017, 2:29pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094 "2017-10-08T14:29:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew974](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matthew974/32/109232_2.png) [@matthew974](https://forum.ionicframework.com/u/matthew974)\
**Post date:** [October 8, 2017, 2:29pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/1 "2017-10-08T14:29:42Z")

</div>

Artificial Intelligence is ramping up!  
Learning AI programming from zero can take some time, however, some services like [API.AI](http://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/](https://www.javascripttuts.com/creating-an-ionic-ai-chatbot-with-api-ai/)

---

<div class="post-metadata">

**Author:** ![mg1075\_ionic](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mg1075\_ionic](https://forum.ionicframework.com/u/mg1075_ionic)\
**Post date:** [December 7, 2017, 11:39pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/2 "2017-12-07T23:39:19Z")

</div>

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/](https://qnamaker.ai/)) to build a chatbot service, would the QnA Maker also require a Cordova plugin to work inside of ionic?

---

<div class="post-metadata">

**Author:** ![matthew974](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/matthew974/32/109232_2.png) [@matthew974](https://forum.ionicframework.com/u/matthew974)\
**Post date:** [December 9, 2017, 11:11am UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/3 "2017-12-09T11:11:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MalavShah](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@MalavShah](https://forum.ionicframework.com/u/MalavShah)\
**Post date:** [January 5, 2018, 4:41pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/4 "2018-01-05T16:41:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![syed12jaf](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@syed12jaf](https://forum.ionicframework.com/u/syed12jaf)\
**Post date:** [May 25, 2018, 5:26pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/5 "2018-05-25T17:26:06Z")

</div>

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](https://dialogflow.com/docs/reference/agent/query) . By using this i made one , [https://github.com/syedjafer/Ionic\_with\_dialogflow](https://github.com/syedjafer/Ionic_with_dialogflow) . This may help you .

---

<div class="post-metadata">

**Author:** ![ElsaSantos](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ElsaSantos](https://forum.ionicframework.com/u/ElsaSantos)\
**Post date:** [January 24, 2020, 3:06pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/6 "2020-01-24T15:06:47Z")

</div>

Hi,

I created a Chatbot in an app Android with Ionic 3 using this example, but I have two questions:  
Who can I print que questions too? They print, but in sequence (question1,question2,…).  
It is valid after March 31, 2020, when DialogFlow V1 is deprecated?

Tanks,

---

<div class="post-metadata">

**Author:** ![ElsaSantos](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@ElsaSantos](https://forum.ionicframework.com/u/ElsaSantos)\
**Post date:** [January 24, 2020, 3:23pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/7 "2020-01-24T15:23:31Z")

</div>

Hi,

The second link give me a 404. can you see that?

Tanks,

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:01pm UTC](https://forum.ionicframework.com/t/creating-an-ionic-ai-chatbot-with-api-ai/108094/8 "2021-07-19T21:01:54Z")

</div>

Closed on July 19, 2021, 9:01pm UTC


