How to effectively use the chatbot?

Shrinidhi Kulkarni
Chatbots Life
Published in
3 min readJan 9, 2018

--

Source

We live in a world where AI has taken over. And chatbot is one thing which has become very popular in recent times. People want chatbot for their website.

Main problem which lies is, many people do not know NLP(Natural Language Processing) or machine learning.

Trending Chatbot Tutorials

1. How to Integrate API.AI with Chatfuel

2. Build a working SMS chat-bot in 10 minutes

3. Building a Successful Chatbot

How to make one?

Well it’s kind of simple.

There are many services that allows developers to build speech-to-text, natural language processing, artificially intelligent systems that you can train up with your own custom functionality. They have a range of existing knowledge bases that systems built them.

Some of them are dialogflow (formerly known as api. AI), Luis. AI, wit. AI (there are more than 100 of these).

You can use anyone of the above to build a chatbot using intents and entities. Intents and entities are used for feeding information to the bot aka training the bot for initial information.

But isn’t it pain to go to console and input it everytime.

There are many blogs which will teach you how to build a chatbot.

The main thing nobody knows is effective way of training them.

What I see ideal way of training is, you send a bot with document which has question and answer and the bot reads it.

How do train the bot properly?

So this doc does it contain stuff in this format,

question: possible answer?

Solution —

Back to basics,
Input -> Webservice -> engine.

Engine -> Webservice -> Output

Steps to do it-

  • You can hit a separate endpoint on your Webservice that uploads these “answers” to the api.ai(or any of the other engines)
  • Probably write a python script that reads the doc and makes http requests on every line.

That is basically how to do it.

Well there are many ways to get the endpoints.

One hack which you can do to get it will be.

  • Go to the browser.
  • Right click inspect.
  • See which HTTP requests the webpage makes.
  • Inspect those and the formats and keys.
  • Make those requests using your python script.

Not sure I have put up my thoughts properly, so feel free to ask(me and Suryaa Kumara Relan)anything what comes to your mind.

Will keep on improving this.

Suryaa Kumara RelanThank you for giving me the ideas :)

Thank you!

--

--