Loading...

{{notif_text}}

Why join channels?
Learn from peers
Discuss and share learning resources with the top professionals across the world
Open business or job opportunities
Earn reputation points to get consulting projects, attract talent or land jobs.
Accelerate your growth
Grow your network and get exclusive deals from our learning partners.
signup now
Sujeet Pandey asked a question
{{::getFormatedLocalTime("2017-09-08T12:33:32.629Z", {without_time: true})}}

How to develop a Bot from scratch?

I want to build a bot which will show minimum price for hotel booking and flights

answer
submitting answer...
submit
No answers yet. Be the first one to answer!
3 answers
Anshul Rastogi Artificial Intelligence & Data Science excites me
{{::getFormatedLocalTime("2017-09-08T14:09:59.395Z", {without_time: true})}}
I just created a bot, all from scratch. I will provide a detailed explanation of the steps.
Firstly you provide a user some mechanism to enter his input. That can be voice based or text based. There are various options available for voice recognition and synthesis. I used https://github.com/TalAter/annyang for speech synthesis on web and I must say, it is highly intelligent.

Then you send this transcript or user's input text to a AI/ML model which can extract meaningful keywords along with the intent from this input. You need to train the model with some sample user commands/intent. This model will then parse the text and provide you a structured form of the input.  I used https://api.ai which also gives you options to integrate with various platforms.

The structured form of the input received from the AI model can be used to query the data from any data store of your liking, e.g:- mongodb, elastic search etc. You can then display the results to the user as per requirement.

Thats all you need to build a bot outta nowhere.
Loading comments...
Priyank Agrawal Deep Learning Enthusiast
{{::getFormatedLocalTime("2017-09-08T13:12:50.565Z", {without_time: true})}}
Their are plenty of options now a days-

1. Easiest is to use tools like - IBM Watson,  api.ai and wit.ai (pretty stringent, does not learn on its own, time to build and complexity is less)
2. If you wish to make a more dynamic bot and have tons on sample conversations, you can use tensorflow with a seq2seq model. (provided the right dataset and training, it will be better in conversation as compared to anything in option 1, but will be dificult for you to resolve the intent and attach data to solve the user query)
3. Hybrid - use nlp and intent detection from any service in point 1, and have custom implementation for the rest.
4. Entire custom stack. (very difficult likes of Google, Facebook, Amazon have taken years and they are not near perfection yet)

I'de suggest you start with option 1 and move down the order.
Loading comments...
To view all answers to this question, join this channel
join this channel
Learn how Cutshort Channels work
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Okay
Privacy policy
File upload not supportedAudio recording not supported
This browser does not support file upload. Please follow the instructions to upload your resume.This browser does not support audio recording. Please follow the instructions to record audio.
  1. Click on the 3 dots
  2. Click on "Copy link"
  3. Open Google Chrome (or any other browser) and enter the copied link in the URL bar
Done