How to create an accurate Chat Bot Response System in Python Tutorial (2021)

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 286

  • @Indently
    @Indently  2 роки тому +22

    In case you guys are curious, I've gone ahead and created an updated version of this for 2022: ua-cam.com/video/azP_d7SiRDg/v-deo.html&ab_channel=CodePalace

    • @Ranjan_12267
      @Ranjan_12267 Рік тому +1

      We should give only re on import ? Please clarify my doubt sir

  • @LaTishaDStyles
    @LaTishaDStyles 2 роки тому +40

    This is a great beginner tutorial and easy to follow with what I understand from my 12 days of python education! Thanks!

    • @tecairsolutions3847
      @tecairsolutions3847 Рік тому +1

      Do you mean you will be able to build a chatbot even if you are a dummie like me

  • @AndrewTimir
    @AndrewTimir 10 місяців тому +7

    I thought I am really good at python after watching this my confidence kinda shattered.I need a lot to learn

  • @Indently
    @Indently  3 роки тому +112

    This goes much further than checking whether user_message == "hello"

    • @amobukari951
      @amobukari951 3 роки тому +4

      I need the name of the tools that you are using apart from python 3.8.you also mention something after python 3.8. Didn't get it clear.if possible please kindly send me the link to download it. Thank you

    • @Indently
      @Indently  3 роки тому +4

      This is vanilla Python 3.8 running in Pycharm

    • @amobukari951
      @amobukari951 3 роки тому

      Noted sir.please anything i will let you know. I am doing it for my final year project. I would like to learn more.

    • @12-proga-licayanjohnlester30
      @12-proga-licayanjohnlester30 3 роки тому +1

      @@Indently Can I ask you something?

    • @Indently
      @Indently  3 роки тому +15

      @@12-proga-licayanjohnlester30 No

  • @Walking_W
    @Walking_W 3 роки тому +4

    I was not expecting message probabilyty! Good job!

  • @onyejewe93
    @onyejewe93 2 роки тому +11

    My friend good video i love it. Also instead of using "required_words" you can just use "single_response =True" for all the responses; faster coding instead of deciding on required words just tested it and it worked👍

  • @gamerzgodtawan688
    @gamerzgodtawan688 Рік тому +2

    Him : Thanks for watching
    Me : Writing second line

  • @krishrao442
    @krishrao442 3 роки тому +8

    I never thought that Chatbot coding can be so simple .. Thank You 😃

    • @Indently
      @Indently  3 роки тому +5

      Well this is the simple form! When you start adding artificial intelligence, then it becomes interesting.

    • @Indently
      @Indently  3 роки тому +14

      @@tjonsmith6365 Hello, if you want to get really technical, then nothing is really a chatbot. AI is not the requirement for something to be a chat bot. Humans perform if else checks on an incredibly fast a sophisticated level.
      Checking inputs and providing an appropriate response is what chat bots do.
      Again, AI, Machine Learning, & Neural Networks are not a requirement.
      Good luck with your codes!

    • @manjuaggarwal8613
      @manjuaggarwal8613 3 роки тому +1

      ​@@tjonsmith6365neural networks use weights and bias to activate different nodes along the network as per the requirement, so it is kinda if-else conditioning.​

    • @chinnuammu3254
      @chinnuammu3254 2 роки тому

      client server connection that is the socket programming
      If yes can u like just share it coz it's very important for me to present my project can u like try that once

    • @icureboredom4282
      @icureboredom4282 2 роки тому

      @@Indently Hey, I appreciate that this is 6 months late but is there any way you could briefly explain how one could set for example, a stranger on omegle's message as input and therefore allow your chatbot to process this and type an output? I've already made a VERY simple chatbot code, but it can't go any further without this...! 🙏🏻Please help!

  • @jfinthetrap
    @jfinthetrap Рік тому +1

    Thank you , chat gpt gave complex codes , with some modules requires api keys, with your method I used chatgpt and got the good working code ❤❤

  • @alejandromendoza7778
    @alejandromendoza7778 3 роки тому +9

    nice man i been looking for a tutorial like this for a while something simple and to the point

  • @AbrahamIndustriesWorkspace
    @AbrahamIndustriesWorkspace Місяць тому

    Guys this is the Best Video for Learning and Yes I love this one I rate this Person a 5 on 5 Well done Excellent Job ❤

  • @ComputerScienceSimplified
    @ComputerScienceSimplified 3 роки тому +13

    Awesome video, keep up the incredible work! :)

  • @jarvis_5653
    @jarvis_5653 3 роки тому +5

    Wow thank you this is one of the best and simple chatbots I have seen ❤

  • @shaundabre5552
    @shaundabre5552 3 роки тому +1

    Thank u very much It helped a lot ❤️❤️

  • @gabrieldemacedo4184
    @gabrieldemacedo4184 3 роки тому +1

    Thank you, man! Hi from Brazil!

  • @realnightfuryrider
    @realnightfuryrider 3 роки тому +11

    hope I will learn more from your upcoming tutorials!!!!
    I am working on my finals project!! your kotlin tutorials are very useful for me.!!
    thanks @Codepalace!!

  • @karimbelmokhtar5661
    @karimbelmokhtar5661 2 роки тому

    great job so happy with your job ... keep going (thank's from algeria ) 🥰

    • @aminamoudjar4561
      @aminamoudjar4561 2 роки тому

      lmaooo tp ia jabli rabi dernah ga3 men 3ando XD

  • @mimistories6628
    @mimistories6628 Рік тому

    Thx bro! At first i think it is also fake like other's. But you prove me wrong i try it in vs code and its really work. This is my first time of seeing your video and you surprised me and i subscribe you 😊

    • @Indently
      @Indently  Рік тому

      Happy it worked for you!

  • @sureshaso9313
    @sureshaso9313 5 місяців тому +1

    Sir iam from Tamil Nadu which application you used to run the python bot program

  • @spacebook7004
    @spacebook7004 Рік тому +1

    Thank you so much ☺

  • @vorteq
    @vorteq 2 роки тому +1

    3:11 everything i forgot to add in grammar class

  • @Comptrmouse
    @Comptrmouse 3 місяці тому

    nice awesome code you can do to impress people and is also a nice learning experience 10/10

    • @Comptrmouse
      @Comptrmouse 3 місяці тому

      also btw at 7:01 was so funny

  • @Rudra.Rijan365
    @Rudra.Rijan365 Рік тому +1

    Om Nama Shivayaa💙🕉🌸

  • @vishnukumarvk4775
    @vishnukumarvk4775 2 роки тому +1

    Thankyou it was really usefull

  • @reemahamad5573
    @reemahamad5573 3 роки тому +8

    in
    print('Bot:' + get_response(input('You: ')))
    TypeError: can only concatenate str (not "NoneType") to str
    How can I fix this error?

  • @s0l4refl4ire8
    @s0l4refl4ire8 3 роки тому

    i got rickrolled by an ad that played when I clicked the video

    • @Indently
      @Indently  3 роки тому

      I don't know what any of that means

  • @ycfw7017
    @ycfw7017 3 роки тому +4

    Thx for this amazing tuto, i'm curious if you can do a front end for this chatbot, so that it can run on a browser.

  • @fortniteedits3737
    @fortniteedits3737 3 роки тому +3

    I’ve been waiting since yesterday

  • @nanhole
    @nanhole 2 роки тому +2

    Big ups homie. THE GOAT

  • @troy5553
    @troy5553 2 роки тому +1

    Simple and very easy :) ty

  • @nivedithan7462
    @nivedithan7462 2 роки тому

    The Best Video....Thank u so much

  • @jeanray8183
    @jeanray8183 2 роки тому +2

    The tutorial is great.Thanks.
    But...
    This argument --> The percentage = float(message_certainty) / float(len(recognized_words))
    isn't so compatible when it is a single response, right?

  • @camiloroa3182
    @camiloroa3182 8 місяців тому

    Jesús Christ, thanks a lot!! I will implement this idea to my website.

  • @junaidkhateeb
    @junaidkhateeb Рік тому

    Love you bro for this !

  • @pavanmanjunath
    @pavanmanjunath 3 роки тому +6

    Thank you so much for this SIR,please can you or anyone tell me how to store the required bot responses in a seperate text file

  • @comander23456
    @comander23456 2 роки тому

    Awesome Video, This video helped me

  • @Lol-il8uc
    @Lol-il8uc Рік тому

    Is using re faster than join and list compression to clear the sentence of special characters? Also this was a amazing project!

  • @zhoucrance2090
    @zhoucrance2090 2 роки тому +1

    Thank you Sir. What if I want to sent two responses at once.

  • @BLACKDREAMIO
    @BLACKDREAMIO 3 роки тому

    what the heck
    its so cool dude
    incredible

  • @Ritam-w4d
    @Ritam-w4d Рік тому

    bro just opened a new dimension for me

  • @victonpk9783
    @victonpk9783 2 роки тому +2

    i've been stuck on one error! the last two lines of the code keep being programmed as wrong :( what do i do?

    • @Sand-Viper-Snek
      @Sand-Viper-Snek 5 місяців тому

      Maybe the while loop is faulty, the T is capital not the w

  • @gigigem5631
    @gigigem5631 2 роки тому +1

    Thank you!

  • @codewithelyanan6536
    @codewithelyanan6536 3 роки тому +2

    Can't wait!

  • @ghousemohiddin4303
    @ghousemohiddin4303 2 роки тому +6

    Hey bro, I’ve used your code for my mini project for my graduate program. This is the most simplest yet effective chatbot. I’ve made for modifications to it, as to tell the time, date, joke, news, day, text to speech etc. but the main issue with my code is it just tells the same time everytime asked. We need to re-run our code again if we want to refreshed time. Also when asked about joke, the python returns the same joke everytime. If we want new joke we have to re-run the code. So could you please help me with this?

    • @prernasahu9882
      @prernasahu9882 Рік тому

      can you tell me how you have included time in this?

    • @kanishkasrivastava
      @kanishkasrivastava Рік тому

      Brother it's not working with mine can you help me

  • @marcdranrebvillaflores8017
    @marcdranrebvillaflores8017 3 роки тому +1

    help me a lot thank you

  • @Rainbow-jv6jo
    @Rainbow-jv6jo 3 роки тому +1

    Thank U sir💖

  • @japhethachimba174
    @japhethachimba174 Рік тому

    How do you manage, to create such so easy to follow kudos mehn!

  • @Ultimateftbl7
    @Ultimateftbl7 2 роки тому +1

    I get an error stating: "{'Hello!': 20, "I'm doing fine, and you?": 0, 'Thank you!': 0}
    Traceback (most recent call last):
    File "C:\Users\balaj\PycharmProjects\Chatbot\main.py", line 51, in
    print('Bot: ' + get_response(input('You: ')))
    TypeError: can only concatenate str (not "NoneType") to str" I typed same code as you what do you think is wrong @Code Palace

  • @NotRuofan5177
    @NotRuofan5177 3 роки тому +3

    I have problems with line 55, when ever I write something in the run section and click enter, python said line 55, in print('Bot: ' + get_response(input('You: '))) and they are shown is red.

    • @SOMEGUY-ci8nr
      @SOMEGUY-ci8nr 2 роки тому

      mine did that to run the de bugger and see if you can change anything or restart thats the route i did lmao

  • @RobotKingz
    @RobotKingz 2 роки тому

    which app have you used?

  • @magnetpen_1
    @magnetpen_1 Рік тому +1

    can someone help me so my problem is when i only type the required word its gonna response normaly but for some reason if i type multible words it doesnt understand it can someone who knows much about python please help me i really just wanna know what the problem is

  • @johnjonathanmoyo119
    @johnjonathanmoyo119 2 роки тому

    That was an amazing video .can use your voice to let it respond through the speaker ? Try Audio next time

    • @blainevautour6577
      @blainevautour6577 2 роки тому

      I just added this to the deepspeech mic_vad_streaming example and it works great

  • @kaajxlopatacraft7081
    @kaajxlopatacraft7081 Рік тому

    Its so good project! 👍

  • @voicedelight143
    @voicedelight143 Рік тому

    From where have u made this??

  • @karthikveeravalli5946
    @karthikveeravalli5946 7 місяців тому

    Thank you for tutorial . i need one requirement can replace 'you' position in our person name dynamically.

  • @jubibi390
    @jubibi390 2 роки тому +1

    Sir, is it possible to like import this? in messenger or any other messaging platforms? I would like to learn them cuz it seems fun.

  • @why5805
    @why5805 3 роки тому +1

    at 9:25 when i type in response it shows it as an error (unresolved reference) what should i do?pls help

    • @jarvis_5653
      @jarvis_5653 3 роки тому

      Maybe you misspelled response somewhere else.

  • @ThushyCyber
    @ThushyCyber 3 роки тому +1

    Super 👌 👍 😍

  • @douglasamorim589
    @douglasamorim589 2 роки тому +3

    Hello!
    I´ld to say, that was a great class!
    In my case of: TypeError: can only concatenate str (not "NoneType") to str
    I resolved indenting my code.
    Thanks.

    • @tejaswinireddy5114
      @tejaswinireddy5114 2 роки тому +1

      I can't do that could you please help me with that

    • @fsociety0051
      @fsociety0051 2 роки тому +1

      i think you are missing the max{highest_prob_list) part cuz thats where it decides which one to parse forward to execute it as a print statement

    • @douglasamorim589
      @douglasamorim589 2 роки тому

      @@tejaswinireddy5114 Try to indent your code

  • @SubhashChandraGupta2021
    @SubhashChandraGupta2021 3 роки тому +1

    no one:
    me when saw someone using Pycharm for python: ooooooof finally i can do this tutorial

  • @spacebook7004
    @spacebook7004 Рік тому +1

    Hi I have an error. SyntaxError:no binding for nonlocal 'highest_prob_list' found

    • @spacebook7004
      @spacebook7004 Рік тому +1

      I have found what is the reason is nonlocal should be in nested

  • @felixschmid9152
    @felixschmid9152 3 роки тому +4

    can you also link the code with a txt.file ?

  • @konstantinospitsiris9038
    @konstantinospitsiris9038 3 роки тому +1

    Hey I have a problem it seems to have some errors in lines 56 51 and 39 if you could fix this for me🙏🏿🙏🏿🙏🏿

    • @Tortoid
      @Tortoid 3 роки тому

      Just copy paste his github code

  • @leroydanilov
    @leroydanilov Рік тому

    Couldn't import long_responses library. It says this module doesn't exist?

  • @marvelloushussaini9177
    @marvelloushussaini9177 Рік тому

    Am having a problem with line 44 it telling 'return' outside function when I run the code, please don't know if u can help with that

  • @meghanagowda5898
    @meghanagowda5898 Рік тому

    May ik which application being used here to develop this project.

  • @pravins7629
    @pravins7629 Рік тому

    But how do you come up with solutions for problem statements like this?

  • @VelikiFeniks
    @VelikiFeniks Рік тому

    I want to know why in percentage variable did you set message_certainty to float and lenght of the recognised_words

  • @_Darkens_.
    @_Darkens_. 10 місяців тому

    Hello, I can't find the full code in the comment section..
    Need some help with the full code list

  • @akdev5780
    @akdev5780 3 роки тому +1

    Is this easy for beginners?

  • @everything6800
    @everything6800 Рік тому +1

    can it work offline, if not can you please make an ai that works offline

  • @Lisolihlemanukula
    @Lisolihlemanukula Рік тому

    Hello I just started on python few months ago. I wrote the script correctly but the script didn’t run

  • @rohit.62
    @rohit.62 2 роки тому

    Which idle you used

  • @Skuddz
    @Skuddz Рік тому +1

    Great video, very informative! I have a slight issue with it, the line 'print('Bot: ' + get_response(input('You: ')))' doesn't run because it doesn't like the '+', I have tried replacing with a comma but no joy. Any suggestions?

    • @royalreview6970
      @royalreview6970 Рік тому +1

      It is happening to me also

    • @Skuddz
      @Skuddz Рік тому

      Check the pinned comment. Haven't watched it, but the code may be different. 👍

  • @charancherry6617
    @charancherry6617 Рік тому

    Can we put all this stuff in a front end so it can handle in web browser

  • @russellpacy9390
    @russellpacy9390 2 роки тому +1

    code palace, how can integrate this code to work with twilio and heroku

  • @terancelim705
    @terancelim705 Рік тому

    @Indently does not work when I run the script it gave me error.

  • @manvendrarawat2687
    @manvendrarawat2687 2 роки тому

    can you plz make ux design for this project

  • @fevad1246
    @fevad1246 2 роки тому

    i am new to python and i have question does the import means i have to install someting else ? and it will import to the code? is this how it works ?

  • @JS-jg8tz
    @JS-jg8tz Рік тому

    TfidfVectorizer, cosine_similarity - these 2 packages are not available in Python 3.11. So how to install it sir? Any suggestions.

  • @FarhanKhan-bx4qs
    @FarhanKhan-bx4qs Рік тому

    is this a rule-based chatbot?

  • @kadirkaraduman6550
    @kadirkaraduman6550 2 роки тому

    Do you have this program for c#?

  • @surya795
    @surya795 Рік тому

    I had an error were i declared return function in case of undefined message probability.I made the return command in straight intendation of def i had an error,when i passed within the function the message probability was undefined 😢,I hope you see my comment and reply it

  • @maheshm4358
    @maheshm4358 Рік тому

    Sir is it possible to read a CSV file and the bot will reply based on the file

  • @divyesh4424
    @divyesh4424 2 роки тому

    very easy and great chat bot

  • @JoeyTeam31
    @JoeyTeam31 Рік тому

    Hi in the while True: it said it cant concatenate + str ("noneType" to str...what should i do ?

  • @prasangaprix2133
    @prasangaprix2133 Рік тому

    How can we add a simple GUI to it?
    Please help me soon.....

  • @rjgamer7612
    @rjgamer7612 2 роки тому +1

    POV: Your just watching a tutorial

  • @jigarkadiya4130
    @jigarkadiya4130 2 роки тому +1

    if we make a medical chatbot, some of the words are used in every disease-like symptom, cure, medicine, etc. So how we can differentiate those words for every disease?
    because every disease has there own symptoms and medicines.
    @Code Palace

  • @vijayadithyanvignesh9238
    @vijayadithyanvignesh9238 3 роки тому +1

    TypeError: can only concatenate str (not "NoneType") to str
    everything working well,but, how can i resolve the above error

    • @Tortoid
      @Tortoid 3 роки тому

      Same error buddy

  • @nik0508
    @nik0508 2 роки тому +2

    hej :D
    tak for hjælpen

  • @RisolesCh
    @RisolesCh 3 роки тому +1

    i tried to use your code but it said error on line 35. can you help?

    • @RisolesCh
      @RisolesCh 3 роки тому

      it said invalid syntax

    • @Indently
      @Indently  3 роки тому +1

      www.google.com/search?client=firefox-b-d&q=invalid+syntax+python

  • @gamburgir
    @gamburgir 3 роки тому

    hey man im trying to make it speak but like i dont know the variable of the response so can you like help?

  • @helloimjeff935
    @helloimjeff935 3 роки тому

    I wonder…. Can you make it talk also?

  • @MrSubir2010
    @MrSubir2010 2 роки тому

    Simply Wondeful!!!!!!

  • @monishnair9610
    @monishnair9610 8 місяців тому

    Can I know how...bot can save your details while texting

  • @WorldfactsWf
    @WorldfactsWf 2 роки тому

    Can we add like this on our messenger or Instagram?

  • @Ud_silent
    @Ud_silent 2 роки тому

    Hii dear, can you tell how can I make a bot which can be helpful in the group as an admin, bot can add, remove and so on... If you know please say something about.. thanks dear.

  • @pablooliveira2410
    @pablooliveira2410 Рік тому

    Can you help me please?
    How can I make a user Send a message on the bot to respond to it?
    I need it for a chatbot in replit.

  • @shrek582
    @shrek582 2 роки тому

    does this work if I use visual studio?