How To Build A Chat Bot That Learns From The User In Python Tutorial

preview_player
Показать описание
In this video I will be showing you how you can create a chat bot that learns from the user in Python in only 10 minutes. ChatGPT-4 generated most of this, which is pretty cool. There are some parts that can definitely be improved with the Chat Bot, but that's for you to figure out as a bonus homework problem ;)

▶ Become job-ready with Python:

▶ Follow me on Instagram:

00:00 Intro
00:24 Demo
01:30 Source code
01:57 JSON
02:41 Imports
02:56 Loading JSON
03:35 Saving JSON
04:27 Finding the best matches
06:10 Getting answers for questions
06:52 chat_bot()
10:17 Running the chat bot
11:57 Conclusion
Рекомендации по теме
Комментарии
Автор

I am glad that I found this tutorial. I am a 2nd semester student in computer science where I am learning python. While I was searching for something new that I can learn in advance of my class, I found this masterpiece that opened my mind and the way of thinking. I really appreciate your effort and I am gonna suggest my friends to follow this.

mdshahed
Автор

Thank you very much @Indently for such a great video. My program is up, running and learning very fast.

philipokposo
Автор

Excellent and versatile project!!! Thank you so much sir 💯

YadavJii-ptsx
Автор

Thanks
Clear explanation and very useful

hannibalbianchi
Автор

So for my bonus homework problem, I changed it to asynchronous to work with a discord bot. I added the ability to have multiple answers in a list and to pick a random answer. I also added an add command that will prompt the user to add a question and answer manually. If the answer is not found, it will create a new entry in the knowledge base. If the answer is found, it will change the string answer to a list and add it, or add to a list if there is one. Thank you so much for this! I just started learning programming a few months ago and the way you explained it helped me out a lot.

ilriveril
Автор

Thanks a lot mate this tutorial gave me a wonderful insight on how Artificial Intelligence and chat bots are structured, Cheers!

villageburner
Автор

You made it very easy to learn, Thank you so much❤❤❤❤❤❤ Masterpiece

cherry
Автор

So, essentially I can make my own tutor. Ducking awesome. I'm gonna teach Marvin so Marvin can teach me.

ChannelYourDenovations
Автор

I like this! Now I can start training some custom chatbots :D

KeiraraVT
Автор

ohhh cool! I didn't know about difflib.get_close_matches in default python. Thanks for the inspiration to study it! :)

pallenda
Автор

Please give us the link for GitHub repository for this code example. You miss this.

romualdurbanski
Автор

Amazing tutorial to learn and enjoy to teach own chatbot 🤩🤩

Explorecode
Автор

Hello! I couldn't find the repository link for the platform. Can you please provide the link?
Thank you!

noblethebest
Автор

Chat Bot part 2: How to connect your bot to an ChatBot API :P

wazz
Автор

love this im learning computer science and ai/ml and this is perfect

spencerfunk
Автор

Hi there, is it possible to integrate openAI with this code?

peektv
Автор

Thanks for this video.. I am able to make my first bot.

RKAAchannel
Автор

Couldnt find my mistakes, nor a github code lol. So, I went to chatgpt and asked if it could help and it caught a spelling error and I forgot a 'f' statement. Otherwise this was a great code and you were very kind to share it, ty.

hnnsdnh
Автор

Is ther a way to impliment cause-effect logic to this?

nobafan
Автор

Can something similar be done using vanilla js?

notstating