Build & Integrate your own custom chatbot to a website (Python & JavaScript)

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 359

  • @benaiahmuganzi4623
    @benaiahmuganzi4623 8 місяців тому +12

    wow, this is all i can say man. you just simplified how to create a completely separate front end and backend then connecting the two to communicate, that's awesome

  • @suhardisjahrial3318
    @suhardisjahrial3318 2 роки тому +4

    The front-end part is exactly what I am looking for.
    Ganz toll, danke!

  • @yaswanthyaswanth8112
    @yaswanthyaswanth8112 9 місяців тому +3

    Thank you so much, I have been stuck here in integration part, you made my life easier.
    I can't find previous videos of this series

  • @elijahkalii5290
    @elijahkalii5290 3 роки тому +7

    Greetings from Nairobi, Kenya. I have learned python just by being a strict follower of the @PythonEngineer. God bless you man

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

      happy to hear that! greetings back :)

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

      @@patloeber no te por preguntar lo paso para el día pop y q pop oportunidad porque ya q si ooooooo no puede ir para el día q se va hoy

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

    Another fantastic video!!! Love your video series! I can't believe this is not getting millions of hits!

  • @jorgesalazar7740
    @jorgesalazar7740 2 роки тому +8

    Hey man, this video is amazing, thanks for sharing. It really inspired me to work on something similar. Cheers!

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

    Saved my Life once again!!, I am using your template with RASA backend.

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

    Thank you for the amazing and consistent tutorials!

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

      glad you enjoy it!

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

      @@patloeber hey!i'm getting an error downloading punkt and i have to submit this project in my college this week. Can you please tell me some solution??

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

      ​@@nandinitiwari6332 I have choosen this for my python mini project, as u hav already worked on this I would like to know in detail so could u share ur insta or telegram I'd if possible plz !!! N delete after I contact u

  • @laasyakrupa9001
    @laasyakrupa9001 4 місяці тому

    This is exactly the tutorial I needed. So helpful. Thank you Patrick!

  • @sakshideshpande4128
    @sakshideshpande4128 Рік тому +10

    Don't know why but i am getting syntax errors in javascript file app.js

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

      Bro syntax error mean you missed any kind of symbol in that just recheck it

  • @DevendraYadav-sf6ry
    @DevendraYadav-sf6ry 2 роки тому +4

    Superb as usual, I have 2 doubts plzz help if someone can:
    1. How to validate msg sent by user
    2. How to access msgs typed by user in Flask.

  • @Matrofarm
    @Matrofarm 7 місяців тому +1

    Well explained. I like the JavaScript output

    • @rpnsamuelaigbornajohn9096
      @rpnsamuelaigbornajohn9096 7 місяців тому +1

      please i need your help the chatbox isn't popping up can you share you app.js file if yours worked please, thanks in advance

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

    Great tutorial..just what I need. Thank you.

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

    really appreciated the entire video . Very easily explained .

  • @vikuuu2652
    @vikuuu2652 2 роки тому +8

    Hey Python Engineer, thanks for an amazing tutorial. I have one question. Can we implement entity extraction with same model?
    Regards,

  • @Karthika.B-cc6wu
    @Karthika.B-cc6wu 5 днів тому

    Thank you so much u save my project❤

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

    How would you go about created i log fil, that contains the chat conversation between "you" and the chatbot? Better to have it write to txt or CVS file?

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

    Hey man this is awesome.
    I would really appreciate if you can make a crash course on python and js as I really liked your teaching style thanks a lot

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

    Thanks Patrick! Great video!

  • @priyamani4349
    @priyamani4349 7 місяців тому +1

    Thank you so much for this vedio, it literally saved my time

  • @AAINABANSAL
    @AAINABANSAL Рік тому +3

    While running the chat.py, I m able to communicate with the bot but when app.py is run and I give message in the chatbox , I do not get any reply, Could you let me know where might I be missing anything

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

      I am also facing the same issue..... until he provides app.js i guess we all will face this challenge....

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

    Thanks. This was really helpful for my graduate project.

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

      i'm also doing the same for my graduate project did it work?

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

      is it working ?
      @@bonyimakaveli633

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

    Nice project and video!

  • @yooflo
    @yooflo 4 місяці тому

    great video, thank you for this. I was wondering how I can delay the responses of the chatbot by a few seconds to seem more natural

  • @Justeinturn
    @Justeinturn 4 місяці тому

    🎯 Key Takeaways for quick navigation:
    🤖 The video demonstrates how to create and deploy a custom chatbot on a website using Python, Flask, and JavaScript.
    🛠️ Flask is used as the backend framework, while JavaScript is utilized for the frontend interaction.
    📦 Two deployment options are explained: using Flask with Jinja templates internally or building a Flask REST API for separate frontend deployment.
    📋 The setup involves cloning a repository, creating a virtual environment, and installing necessary dependencies like Flask, Torch, and NLTK.
    🧠 The chatbot's functionality relies on a PyTorch model trained using natural language processing (NLP) techniques.
    🎨 The customization of the chatbot is achieved through modifying the intents.json file, which defines different intents, example patterns, and responses.
    🔧 Implementation details for the Flask app include defining routes, handling requests, and allowing cross-origin resource sharing (CORS) if deploying frontend and backend separately.
    🚀 The tutorial concludes by demonstrating how to run the chatbot either integrated with Flask or as a separate frontend communicating with the Flask backend through POST requests.

  • @mallikamuskan6832
    @mallikamuskan6832 6 місяців тому

    Thank so much sir, hats off to you. Kudos to explanation

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

    Thank you so much for this! 😀

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

    Which editor are you using

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

    It helps me a lot… now I am developing a web app about arrival time estimation of public transportation but meet difficult on flask and front-end. It’s really great video

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

    "It's very much appreciated, bro. Really helpful for me.

  • @_IT_SanketBanerjee
    @_IT_SanketBanerjee 2 роки тому +5

    i got stuck in app.js file
    the chat icon is not opening?
    please help it is urgent

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

      Did you get any resolution?

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

      Did you ever get a response to this? I'm having a similar
      issue...chat icon is visible, but when I click to activate the chat box, nothing happens

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

      @@rob5star61 I have similar issue here, the chatbox doesn't pop-up

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

      @@mochammadfachorrozi2449
      Sayak Chakraborty said the java script needed updated syntax on query selectors and listeners. He said he posted the updated js script in the comments but I couldn't find them. So far though, everything up to the display() is working as intended, just cant the chat box to activate. If you find anything, please let me know.

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

      @@rob5star61 I'm looking for the comment too in the section, but I can't find it either. Yes, let me know too if you find anything 😁

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

    I didn't understand the part where you explained how to host this site. Can you explain how I can host my app? I think the $SCRIPT_ROOT variable part is somewhat unclear.

  • @apratimmantri
    @apratimmantri Рік тому +4

    Can you please provide a fully working source code please it is very great help for me

  • @jeansebastiencormier6008
    @jeansebastiencormier6008 19 днів тому

    This is great! Thanks 👍

  • @godfreyogbeide2340
    @godfreyogbeide2340 6 місяців тому

    Hello Patrick, very good Tutorial

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

    Thank s for this video, please make a video, how to deploy this app on c-panel and where we will make chat log for future find client query

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

    Great tutorials! thank you very much!

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

    Nice , clear alot 👌......bro will you start Data science series....if you start it may easy to learn from you...🔥

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

      thanks for the feedback! I try

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

    Nice tutorial. Did it overfit?

  • @user-ov5cx7wj9v
    @user-ov5cx7wj9v 2 роки тому

    Awesome Work!

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

    this is fantastic, thank you.

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

    Amazing explanation thank you! New subscriber!

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

    bht acha angraz hai bhai , love you, meri trf say aik chaye!

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

    Wonderful tutorial video! But I have a question: how can I add welcome message before the chat start? million thanks!

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

    Great tutorial!! Thanks a lot for your time! You really make a good explanation with excellent idea. I really appreciate that. I just wondering if I have a full stack web application using MERN stack and javascript, is it possible to deploy and integrate this chatbox into that web? Thanks a lot for your video again! Hope you can have more on UA-cam.

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

    Thank you so much it's very helpful for me

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

    Hi, thanks for teaching. I have had a problem with the accents on the Spanish language page. How can I solve that.

  • @danielcarvalho4476
    @danielcarvalho4476 8 днів тому

    I am confused about one thing, and I hope someone could clear it up. When you are adding messages to the html variable to render it in the chatbox, since you reversed the list, you are first adding the latest message, and then the older ones. So, shouldn't the newest message be appearing at the top, since the html string is rendered from left to right, and the newest message would appear at the top? I am confused how it appeared at the bottom. To avoid what I am saying, you just would not reverse the array right?
    Am I confusing something?

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

    thank you helped a lot!!

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

    Nice explanation sir , keep it up 🙌🥀🔥

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

    nice tutorial, thanks 😊

  • @user-yw9nv7zk7i
    @user-yw9nv7zk7i Рік тому

    hey, Patrick Loeber, what plugins have you installed to work with ?

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

    am getting errors in app.js bro

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

    Hey Man! @Python Engineer I am following your courses ! Can I implement this bot to my django project ?

  • @sigmabillionairemotivation4147

    I have a problem here :
    No module named 'flask'

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

    Amazing!!

  • @hen1688-y7b
    @hen1688-y7b 2 роки тому

    Amazing! But may I know that does it support the Hong Kong’s Chinese? Thx so much.

  • @sysadmin9396
    @sysadmin9396 6 місяців тому

    Will this support multiple users? As in if 100 users chat with this will it generate conversation per user? Or will the other users be able to see chat history across all users?

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

    Hi , thanks for tutorial. I have one question. How can you setup the chatbot in another language?

  • @Bwith_ASK
    @Bwith_ASK 6 місяців тому

    Great Series. Thank you for the tutorial. I need a small help. I like to know format the "data.path". how it is format? it will be good if you share the link of the data file?

  • @NandiniTiwari-jq1je
    @NandiniTiwari-jq1je Рік тому +1

    After doing all the steps,then also my JS file isn't working on clicking the chatbox symbol...

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

    Can we integrate this python chatbot to website using django and How?

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

    Very Nice video and explanation! I was wondering how to keep the state management of a conversation for a more custom chatbot, where there can multiple back and forth questions and answers between bot and user. I know that REST API (Flask) is supposed is State-less, however when having a back and forth conversation, definitely state should be managed. Do you have any ideas on this please?

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

      I'd recommend using a front-end framework like React or Vue to flesh out the UI and include stuff like state management more easily

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

    dude you are just awsome

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

    Hearty thanks my friend

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

    Which Python version used in this video? Thank you for helping.

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

    Hi Python Engineer, thanks for the video. A simple question, How can you setup the chatbot in another language? Is there any parameter which we could change for the natural language processing and the training?

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

    Can I use this chatbot with my html website?

  • @7s9n
    @7s9n 3 роки тому +3

    Amazing

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

    is machine learning involved in this project???

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

    Thank you so much! I am a beginner and I would like to compare my app.js because my chat doesn't come when I click. Certanly I made some mistake when I was copying, is there a link to app.js. Tks again

  • @shreyansu805
    @shreyansu805 4 місяці тому

    thanks for this great tutorial! How do I integrate this bot to a already built website?

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

    that is nice...but please can teach us how to do the setup installation, especially how to deploy the chatbot

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

    hello sir, thanks for the tutorial. can i ask where i can fine the word "undifined" in the folder?

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

    hello very clear explanation! thank you! however I am facing an issue when running app.py, they said that "ModuleNotFoundError: No module named 'model'". How do I solve this issue?

    • @k.abi129
      @k.abi129 2 роки тому

      its because of the path...make sure the python can access all the modules from the same directory in which it exists...i think this might work but i am not sure how correct it is

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

      I am getting the same error... Any luck?

  • @godfreyogbeide2340
    @godfreyogbeide2340 6 місяців тому

    I wanted to ask you a Question if it is Possible to Create an AI chatbot GUI to chat with Json data, using C#.NET, React, OPENAI?

  • @ThokozaniVincent-r6t
    @ThokozaniVincent-r6t Місяць тому

    So if you wants to make the chat bot that is Base to faculty of science and agree culture. What should I do?

  • @johnjim8246
    @johnjim8246 9 місяців тому

    Hi Patrick! How do we visualize the loss on a graph?

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

    Thanks for sharing, but where I can find the app.js code> it was not the in the git

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

    0:15 autoridade social é o melhor de todos pra bombar o tiktok

  • @yongxing1848
    @yongxing1848 9 місяців тому

    Great tutorial, would you happen to have the final code in git. Thank you so much for sharing.

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

    Hello Patrick! Amazing video! How do we host this online?

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

    Great tutorial any chance of updating it to use the gpt3 API? :)

  • @MohamedZAARAT
    @MohamedZAARAT 5 місяців тому

    Thank u,
    For me, I want to use an excel file with 2 columns : Questions & Answers.
    I want searches users input in Question column and gives answer in front of that from Answer's column

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

    thank you my frend i like this 😃

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

    A very helpful video, I want to integrate this chatbot with a database so that the admin user can modify, add, or remove responses in the intents.json file. Is there a way to do this? Thank you in advance

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

      Does this project contains database

  • @user-ug8ji5te8j
    @user-ug8ji5te8j 8 місяців тому

    Hi. Could you please create this GUI with streamlit?

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

    where are you copy pasting the javascript code from?

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

      he started with a text file, copy pasting from a non public file. it's annoying hey :)

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

      there's another repo on github with the complete code to copy paste from.

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

      @@MatthewTaylorAu Can you share the link of that repo

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

      @@MatthewTaylorAu please lmao

  • @hamzabenkhalil4569
    @hamzabenkhalil4569 2 роки тому +4

    Is it possible to make this chatbot menu-based ? with buttons that the user will click so that we can guide the user? and thank you for the video very helpful !

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

    May i have question? why does it work on venv but it doesnt work on real directory? even i have the same dependencies

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

    @app.post doesnt work for me , it says Flask has no attribute post , what should i do? is there any way to fix it or another way to post?

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

      this only works since Flask 2.0, either install the new version or use the old syntax: app.route("/predict", methods=["POST"])

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

    I need a app.js code explained in this video please send the code

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

    Is there any way to implement this in a java project? I'm using java swing for the front end
    Thanks

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

    why you should use pytorch for this? this chatbot can be done with if else conditions. example : if user says "Hi" then we can reply as "hi there , How can i help you". i think this does not need machine learning or artificial intelligence. Any Explanations?

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

      It depends on the use case of your bot. If you want it to respond only to questions that are phrased exactly as the string in your if statement then you don't need a model to train it. If you want it to respond also to similar questions that are phrased differently (to the string in your if statement), using a deep learning model and training it using training phrases can be a good option.

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

    Right from the git repo everything seems to be broken. Whats worse is i only have my organizations laptop and it appears self signed certifictaes are not allowed :( this course isnt for me

  • @mr.curious1329
    @mr.curious1329 Рік тому

    Is there a way to use docs and pdf directly to train model?

  • @mehdismaeili3743
    @mehdismaeili3743 4 місяці тому

    Excellent.

  • @nada22637
    @nada22637 11 місяців тому

    Thank you ❤

  • @hhoums
    @hhoums 5 місяців тому

    Can I integrate this chatbot into a WordPress website? What keywords would I have to search for to find more info?

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

    Hi, Thanks a bunch for the tutorial!! My question is how to add speech recognition module in this chatbot ( I’ve searched all accross the UA-cam but hadn’t found any tutorial on it) can you please provide some?