# Playing with AI, Chatbots and Voice Assistants

- Link: https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/
- Published: 2018-12-04T15:56:35-08:00
- Author: rich

Wow it’s just gotten so much easier to write machine learning applications. A great
case in point is bringing up your very own chatbot that understand natural languages
whether it comes in on SMS messages, via Google Assistant or Whatapps or any of 
a zillion of other places.
 Looking at various tutorials, most or them seem to center
on api.ai which Google acquired and renamed dialogflow. It’s a good chance to learn
the Google Cloud infrastructure and at the same time get something that works across
all major channels from Texting thanks to Twilio to voice via Google Assistant or
Cortana. You can even export the learning to Amazon Alexa. The tutorial for dialogflow
is actually pretty good. You basically create a set of intents which are rules. 
These are learn by example, so to start you type or import valid requests that map
to the intent. The system automatically figures out certain variables (which they
call entities) like the date and time and populates them. This is also called slot
filling of entities. The thing will actually drive through a list of required entities
and keep asking you questions which is nice. You can have all the entities, then
it can either spew something out or it can run a fulfillment which actually does
the work. This is actually a node application that is run in Google’s firebase. 
This is called a web hook and connects you with the rest of the world. There is 
also a training framework, so if you have a set of utterances that don’t match, 
you can give it the right intent and also tell it where the various entities are.
It is basically learning by example. Finally, you can hook the thing up to lots 
of different channels. I tried Twilio so that you can get text messages. This works
really well and is pretty simple, you just need to oauth2 the things together.

### Share this:

 * [  Mastodon ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=mastodon)
 * [  LinkedIn ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=linkedin)
 * [  Facebook ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=facebook)
 * [  WhatsApp ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=jetpack-whatsapp)
 * [  Email ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?subject=%5BShared%20Post%5D%20Playing%20with%20AI%2C%20Chatbots%20and%20Voice%20Assistants&body=https%3A%2F%2Ftongfamily.com%2F2018%2F12%2F04%2Fplaying-with-ai-chatbots-and-voice-assistants%2F&share=email)
 * [More](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/#)

 * [  Telegram ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=telegram)
 * [  Print ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/#print?share=print)
 * [  Pinterest ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=pinterest)
 * [  Tumblr ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=tumblr)
 * [  X ](https://tongfamily.com/2018/12/04/playing-with-ai-chatbots-and-voice-assistants/?share=twitter)

### Like this:

Like Loading…
