Create Working Chatbot in HTML CSS and JavaScript | Chatbot HTML CSS JavaScript

Поделиться
HTML-код
  • Опубликовано: 16 май 2024
  • In this video tutorial, I've shown how to create a working chatbot using HTML, CSS, and JavaScript. In this chatbot, you can ask any question and receive instant responses. This chatbot is also responsive, which means you can use it on your phone too.
    Create your own ChatGPT in HTML CSS & JavaScript
    Watch: • Create Your Own ChatGP...
    Hire me on Fiverr
    www.fiverr.com/prakashahi
    Follow me on Instagram
    / coding.np
    Visit my website for helpful coding projects with source code
    www.codingnepalweb.com
    Timestamps:
    0:00 Chatbot Demo
    1:57 HTML & CSS Start
    16:14 JavaScript Start
    17:29 Adding User Message to the Chatbox
    21:00 Generating Response for User Messages
    26:19 Auto-Scrolling the Chatbox
    29:27 Toggling Chatbot Visibility with Button Click
    33:23 Enabling Textarea Auto-Resize
    #javascript #html #css #javascriptprojects #js #chatbot
    Music Credit:
    Ikson - We Are Free [Official]
    • #83 We Are Free (Offic...
    Miss You - LiQWYD
    • Miss You - LiQWYD (No ...
    Those Restless Nights - Artificial.Music
    • Those Restless Nights ...
    Ehrling - You And Me (Vlog No Copyright Music)
    • Ehrling - You And Me (...

Комментарии • 241

  • @CodingNepal
    @CodingNepal  11 месяцев назад +32

    Create AI Image Generator Website in HTML CSS and JavaScript: ruclips.net/video/fA_tWwPMapM/видео.html
    Create your own ChatGPT in HTML CSS and JavaScript: ruclips.net/video/atKtG29iroY/видео.html

    • @LongAthelstan
      @LongAthelstan 11 месяцев назад +4

      Can you share source code

    • @muhammadvitoni1802
      @muhammadvitoni1802 11 месяцев назад +1

      an error occurred even though I entered the API_keys correctly
      is there any solution for that?

    • @living._truth3270
      @living._truth3270 5 месяцев назад

      how would you modify this to work as a livechat instead of a chat bot

  • @danieloluwakemi9088
    @danieloluwakemi9088 10 месяцев назад +11

    Awesome, I can't believe it, never though I would do something like this even though I'm just calling an API, it's still very cool. Great work bro, the amount of projects in this channel is just insane! this cannel is really underrated, nice video.

    • @gamingarea9011
      @gamingarea9011 3 месяца назад

      is the API is free ? and if it is free then for how long ?

  • @jasono873
    @jasono873 10 месяцев назад +2

    Awesome Tutorial 👍

  • @parindyapigera1790
    @parindyapigera1790 2 месяца назад +1

    I have been looking for this dude, Thank you so much!!

  • @hz-vz8qj
    @hz-vz8qj 5 месяцев назад +1

    Most awesome tutorial ever!

  • @yalejolopez-gd1ez
    @yalejolopez-gd1ez 9 месяцев назад

    You are the best, I send you a hug from Colombia. 🙌

  • @codingwave56
    @codingwave56 11 месяцев назад +5

    Thank You So Much 🤗
    Amazing Project For Me...
    i learnt so many things from it.

  • @atmosph
    @atmosph 11 месяцев назад +50

    why is this channel so underrated 😭😭

    • @user-jk6jh4zb6k
      @user-jk6jh4zb6k 10 месяцев назад +1

      Bcz he don't make it with voice

    • @user-lb3rs1pf4z
      @user-lb3rs1pf4z 9 месяцев назад

      Communities*
      Spanish (from spain) devs communities.
      They choose whose to 'grow'

    • @liftedup299
      @liftedup299 9 месяцев назад +1

      200k subscribers is not underrated bro

  • @tasneemayham974
    @tasneemayham974 5 месяцев назад +6

    THIS IS THE MOSSTTT UNDERRATEDDD RUclipsE VIDEOO I HAVE EVERRR SEEEEEEEN IN MY ENTIRE LIFFEEEEE!!!!!!!!!!!!!!!
    THANKK YOUUUUUUU!!!!!!!!!! SOOOOOOOOO MUCHCHHHHHHCHCHCHCHC!H!!!
    Incrediblyyy Helpful!!!

  • @yasvarma
    @yasvarma 9 месяцев назад

    This is a great post.

  • @fighter8931
    @fighter8931 10 месяцев назад +8

    MashAllah !
    what a great video !
    I can't wait to subscribe

  • @reallife1482
    @reallife1482 11 месяцев назад

    🎉 super awesome ❤️😎

  • @vaishnavisabbanwar4987
    @vaishnavisabbanwar4987 Месяц назад

    thanks sir your this video was really helpful to me

  • @nadiaabdalla353
    @nadiaabdalla353 5 месяцев назад +3

    Thank you very much. A wonderful explanation that helped me a lot.

    • @gamingarea9011
      @gamingarea9011 3 месяца назад

      is the API is free ? and if it is free then for how long ?

  • @CromwellEdonis
    @CromwellEdonis Месяц назад

    You are my savior.

  • @laxmidhakal2987
    @laxmidhakal2987 10 месяцев назад

    Love from US

  • @CricketGuruji15
    @CricketGuruji15 11 месяцев назад +5

    Can you make it using Nodejs , ExpressJs and React for realtime updates?

  • @nguyenhoangdung3823
    @nguyenhoangdung3823 7 месяцев назад

    thank you very much

  • @abhishekkumar-gv6sz
    @abhishekkumar-gv6sz 9 месяцев назад

    awesome video brother'❤❤, pls explain how to create an account and API key.

  • @shoaeebosman1886
    @shoaeebosman1886 8 месяцев назад

    Thank you

  • @user-ru8rp4jq2l
    @user-ru8rp4jq2l 11 месяцев назад +1

    🔥🔥🔥

  • @ankurjadhav9558
    @ankurjadhav9558 5 месяцев назад

    great video worked for me thank you. and another thing can we use any free API if yes please suggest the name

  • @kiran_sh1
    @kiran_sh1 10 месяцев назад

    awesome.....

  • @mdms4549
    @mdms4549 11 месяцев назад +4

    Thanks bro 😊😊😉, can you make a valid evaluation form that validates both login and registration?

    • @CodingNepal
      @CodingNepal  11 месяцев назад +1

      Yes, sure

    • @mdms4549
      @mdms4549 11 месяцев назад

      @@CodingNepal Thanks bro💙😊✋

  • @ruchitshah9954
    @ruchitshah9954 9 месяцев назад

    uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

  • @rathod.12
    @rathod.12 6 месяцев назад

    Nice🙂

  • @abgaming4545
    @abgaming4545 8 месяцев назад

    what is the import url in the css code can u send this ????

  • @gehanadel3616
    @gehanadel3616 11 месяцев назад +9

    it was brilliant but GPT doesn't be supported in my country so if you can recommend something else or do another video with another technique I will appreciate it

  • @Jhunti44
    @Jhunti44 11 месяцев назад

    I'm able to get it worked in my asp support chat project. i'm just gonna figure out how to save to the convo in the DB.

  • @herbyprein9096
    @herbyprein9096 3 месяца назад

    Great tutorial 👍. Because I am new to this topic two questions: 1) How can I embed the bot in my Wordpress site? 2) I am using most of the time a local LLM (LM Studio) for testing. I changed the api-url, the api-key and the model name, but it didn't work (error messages field is required). Any hints for me?

  • @BrunoGamerAndroid
    @BrunoGamerAndroid 9 месяцев назад +4

    How do I resolve the "too many requests" error? I am not able to get the bot to respond to me

    • @pushpdev1902
      @pushpdev1902 7 месяцев назад

      Hey I'm facing same error in console can you tell me have you solved this one?

  • @abdulwahabAlani
    @abdulwahabAlani 8 месяцев назад +2

    Nice bro but please in The future video please explain in detail so we will understand the code better instead of using background music

  • @gummachine396
    @gummachine396 27 дней назад

    For the API usage, do you have to pay for it after using it once?

  • @LongAthelstan
    @LongAthelstan 11 месяцев назад +1

    Amazing i like this video

    • @CodingNepal
      @CodingNepal  11 месяцев назад +1

      Thank you very much!

  • @FocusTTocus
    @FocusTTocus 2 месяца назад

    the best thank you

  • @nanasatoruu19
    @nanasatoruu19 6 месяцев назад +1

    why mine didnt answer correctly and always got error message, but in console after I inspect, everything is fine..????

  • @yasvarma
    @yasvarma 9 месяцев назад

    What is the way to maintain session of user

  • @binukbe4401
    @binukbe4401 11 месяцев назад +5

    Nice bro but how would you implement exporting and importing chat history?

    • @CodingNepal
      @CodingNepal  11 месяцев назад +2

      Watch this video: ruclips.net/video/atKtG29iroY/видео.html Here I've shown how to save chat history to the browser's local storage and retrieve it from there.

    • @ompandey4595
      @ompandey4595 4 месяца назад

      ​@@CodingNepal as ur from nepal so pls speak if u speak ur viewership will increase

  • @sujonpramanik1151
    @sujonpramanik1151 11 месяцев назад

    awesome project

  • @Abid.kanwal
    @Abid.kanwal 11 месяцев назад

    sir make a tutorial about " About us page generator, contact us page generator, terms and conditions page generator, disclaimer page generator and also privacy policy page generator. please please please please.

  • @salonirajput6690
    @salonirajput6690 8 месяцев назад

    Your content is awesome but can you please start explaining the code instead of using music 🎵 🎶 . It's a request ☺️

  • @christianjayenclona4652
    @christianjayenclona4652 10 дней назад

    Is this chatbot can be integrated to database for fetching data like customer orders

  • @nghiahoang9201
    @nghiahoang9201 9 месяцев назад +1

    dear bro.
    I want to push the file to github, to deploy for friends to use,
    but the file contains the api key.
    so is there any way to deploy?

    • @KaptanSingh-oy1bp
      @KaptanSingh-oy1bp 9 месяцев назад

      Bro, Are you solved this problem? Because i am facing same problem.

    • @nghiahoang9201
      @nghiahoang9201 9 месяцев назад

      @@KaptanSingh-oy1bp
      As far as I know, putting the API key into the evn variable (.evn), then putting the .evn file into the .gitignore file solves the API leak problem. But I get an error when I import the .evn variable into the .js file

  • @love_edits4675
    @love_edits4675 8 месяцев назад

    Can you able to provide your github link

  • @yubiroaster6285
    @yubiroaster6285 11 месяцев назад

    Wow❤

  • @user-dk5zf8fq7h
    @user-dk5zf8fq7h 5 месяцев назад

    Bro one small doubt.you implement the package how to modify example "hi to reply message how can i help you"... Please tell me bro... Waiting for you bro....

  • @Azalea_tube
    @Azalea_tube 10 месяцев назад +2

    can we use Bard API_KEYS instead? open ai available in only 45 countries. pls make a video. and let me know if you see this comment.

  • @gauravpatel96
    @gauravpatel96 10 месяцев назад

    Bro listen, How to pass the API in deployment it is getting revoked, I'm not able to set up environment variables please help

  • @chatgpt6628
    @chatgpt6628 11 месяцев назад

    Hi Great Please Show me How to Add Custom Data i mean Custom Response and Custom Answers PLZ PLZ

  • @azzamhaer
    @azzamhaer 11 месяцев назад

    Please make youtube video downloader in php. i've done subscribed you with 3 account😉

  • @018_sayaksen7
    @018_sayaksen7 5 месяцев назад

    hi i made a new API key and it is saying status 404 not found what should i do now... btw keep up the good work.

  • @tasneemayham974
    @tasneemayham974 4 месяца назад

    Brother, may you please make a video on how to continue from here to hide our API key?
    Because, we cannot host this chatbot as the API key is hardcoded into our key, so may you please make a video on how do we evade this problem?

  • @koushiksarkar1999
    @koushiksarkar1999 11 месяцев назад

    Scientific calculator for engineering study make it bro

  • @alelimiranda8006
    @alelimiranda8006 Месяц назад

    What is the content of material-symbols-outlined?

  • @TradeEngineer2821
    @TradeEngineer2821 5 месяцев назад +5

    Bro, when I made this Chatbot, I coded it perfectly with no errors, but after using my API Key , I m getting the error 'Too many requests , you have completed your current quota', Please tell what should I do

    • @khushboogupta6784
      @khushboogupta6784 4 месяца назад

      same, Have you got any solution?

    • @tuskinggiant
      @tuskinggiant 4 месяца назад

      maybe try generating API key with a new account which is not logged in to GPT

  • @ammarabhatti8261
    @ammarabhatti8261 2 месяца назад +3

    I've completed this project now anyone tell me how to solve API issue cuz I cant find it on stack-overflow if there is error 429 (too many requests ) and it is expired how will I solve this

    • @ANUJAGUPTA-jx5ri
      @ANUJAGUPTA-jx5ri Месяц назад

      same , im getting that error, what did you do to resolve it?

    • @ammarabhatti8261
      @ammarabhatti8261 Месяц назад

      @@ANUJAGUPTA-jx5ri the only solution was to make a new id and generate API key, we can't use free API if we are already using openapi for a long time.... They offer free APIs to new users only (for some time )you should make new id and then generate your API key that will work .... May be there's another solution but I haven't found any yet

    • @yashmadaan4024
      @yashmadaan4024 15 дней назад

      Same error is coming to me also!
      Did you get the solution of it ?

  • @anuradhajayasinghe1651
    @anuradhajayasinghe1651 24 дня назад

    🙂🙂👏

  • @saggysshorts
    @saggysshorts 7 месяцев назад

    Omg that’s what I’m finding on RUclips since last two months 😭

  • @nishagawade3248
    @nishagawade3248 10 месяцев назад +2

    if you will explain with your voice, then it will give you more views and people will like your content

  • @mcombatti
    @mcombatti 8 месяцев назад +6

    It's bad practices to include API key in Javascript. Anyone who views the bot could view your secret key, & run your API account thru the roof astronomically.

    • @mrravipandee
      @mrravipandee 7 месяцев назад +3

      i implement this, but cant run show me error...

    • @kontnoctilus
      @kontnoctilus 6 месяцев назад

      @@mrravipandee+1

  • @91221HelloWorld
    @91221HelloWorld 8 месяцев назад

    Please Create like and comment functionality using ajax and php.

  • @yourcelebrityvault
    @yourcelebrityvault 8 месяцев назад

    how to embed on website

  • @IFGaurav
    @IFGaurav Месяц назад

    can i use custom info for this chatbot?

  • @oct-zt2hk
    @oct-zt2hk 7 месяцев назад +1

    Bro do we need to work on back-end for this ?

  • @AdventureIsTheLife01
    @AdventureIsTheLife01 10 месяцев назад

    Sir how you learnt Javascript plz telll me !!!!!!
    anything will help !!!!
    javascript part was literally hard for me..

  • @X3NOGLADIAT0R850
    @X3NOGLADIAT0R850 15 дней назад

    guys im getting authorization error code 401 errors, i put in the api key in the authorization bearer im also signed in open ai how do i fix this

  • @learndigitalskills8932
    @learndigitalskills8932 5 месяцев назад

    Why its giving error: "You exceeded your current quota, please check your plan and billing details." I didn't ever use the API. Is this API not included in free plan?

  • @mg882
    @mg882 2 месяца назад

    Do you use websocket?

  • @m.areeshrashid705
    @m.areeshrashid705 11 месяцев назад

    Please Resume Generator HTML CSS JavaScript & Create ReactJS Project.

  • @hamzaexcalibur
    @hamzaexcalibur 9 месяцев назад

    How can I integrate this chatbot to my website ?

  • @knowledgeisdone
    @knowledgeisdone 11 месяцев назад +1

    4th comment pin pls and can you make a sidebar that can randomize any photo and set it and is fixed on top and also save in localstorage. And also shows his name and age.
    For example:


    Save
    Edit
    // Get elements
    const nameInput = document.getElementById('name');
    const roleInput = document.getElementById('role');
    const imageInput = document.getElementById('image');
    const saveButton = document.getElementById('save-button');
    const editButton = document.getElementById('edit-button');
    // Check if data exists in local storage
    if (localStorage.getItem('userData')) {
    // Retrieve and populate data from local storage
    const userData = JSON.parse(localStorage.getItem('userData'));
    nameInput.value = userData.name;
    roleInput.value = userData.role;
    imageInput.disabled = true;
    saveButton.disabled = true;
    } else {
    editButton.disabled = true;
    }
    // Save data to local storage
    saveButton.addEventListener('click', function() {
    const userData = {
    name: nameInput.value,
    role: roleInput.value
    };
    localStorage.setItem('userData', JSON.stringify(userData));
    nameInput.disabled = true;
    roleInput.disabled = true;
    imageInput.disabled = true;
    saveButton.disabled = true;
    editButton.disabled = false;
    });
    // Enable editing
    editButton.addEventListener('click', function() {
    nameInput.disabled = false;
    roleInput.disabled = false;
    imageInput.disabled = false;
    saveButton.disabled = false;
    editButton.disabled = true;
    });
    In sidebar. The photo is fixed at top and in the place of role there are radi🥺 os.tje 🥺 format 🥺 can 🥺 look 🥺 like 🥺 this 🙏:
    (Image 🙏) (Name 🙏)
    (Image 🙏) (age 🙏)•(role 🙏)
    Please 🥺 it's 🥺 my 🙏 request 🥺🥺🥺🥺🥺🥺🙏🙏🙏🙏🙏🙏🥺🥺🙏🥺🥺

  • @jinanb5483
    @jinanb5483 Месяц назад +2

    hi..Code is running successfully, but I only I can send the messages but I'm continuously receiving ( Oops Something went wrong) from bot
    Any Solutions to the Problem ?
    pleaseeee help me

    • @slowhilanything2576
      @slowhilanything2576 27 дней назад

      Hey if you got the answer can you share with me.. Because I want to resolve that because I take my mini project as chat bot so i request to share that problem's solution

  • @a.asupreme3318
    @a.asupreme3318 3 месяца назад

    i love you tank yoiu

  • @KkppPv-wu9wb
    @KkppPv-wu9wb 28 дней назад

    It will be beneficiary if you just include the font details on the description

  • @ayyanpathan3749
    @ayyanpathan3749 2 месяца назад

    I made this it was working but when i host it.. its showing error that api key is invalid and i am.mot getting any response

  • @rxdeveloper873
    @rxdeveloper873 11 месяцев назад +4

    it's great and thanks but I have followed all your steps in the video and whenever I try to chat there is an error and the console says "You didn't provide an API key. You need to provide your API key in an Authorization header" Although I have put the API as you did in the video

    • @kunalpawar7527
      @kunalpawar7527 8 месяцев назад +2

      Same here bro. Pls reply if your issue is solved now.

  • @sachitdalwadi
    @sachitdalwadi 9 месяцев назад

    can you share source code plz

  • @aarthijai8002
    @aarthijai8002 4 месяца назад

    For me showing and 429 error what can i do?

  • @1240JunaidShaikh-ve9mq
    @1240JunaidShaikh-ve9mq 7 месяцев назад

    Y I'm getting the something went wrong error.. I did checked tha code it's same and I created my own api key also .. can u please help ?

  • @learndigitalskills8932
    @learndigitalskills8932 5 месяцев назад

    bro, any solution for the API. free API is not woking.

  • @lucadavidsandru929
    @lucadavidsandru929 20 дней назад

    My API KEY doesn't work, I continue have error for it that the key is not procvided, but I m 100% sure it is. What should I do?

  • @nsvol1
    @nsvol1 9 месяцев назад

    I write the password in API_KEY, but the chatbot still does not work. All codes are correct, but the console says there is an error in the key. Can you help me pls?

    • @CodingNepal
      @CodingNepal  9 месяцев назад

      You need to provide API key not password in the API_KEY variable.

    • @nsvol1
      @nsvol1 9 месяцев назад

      @@CodingNepal no I mean like key,not password I know it, I maked API key and then copy paste but its still not working

    • @nsvol1
      @nsvol1 9 месяцев назад

      @@CodingNepal every code true but no response from bot

    • @fluffybaal4530
      @fluffybaal4530 8 месяцев назад

      You probably changed up the role from "user" to something else right that may be the caused of the error you must keep it as user if you want the chatbot to identify itself as some other bot names you gotta add another line for example in line 32
      body: JSON.stringify({
      model: "gpt-3.5-turbo",
      messages: [{role: "user", content: userMessage},
      {"role": "system", "content": "Jarvis is a chatbot thats created to help viewers to learn Algorithm and Data Structure in programming in a website called Easy Learn that specializes in that area."}],
      })

  • @meetpitroda4217
    @meetpitroda4217 7 месяцев назад +1

    How to make government rule Regulations chatbot
    Can be created by. Website api key like government api key

  • @krishnachaitanya-md8wl
    @krishnachaitanya-md8wl 2 месяца назад +2

    Sir, I have gone through your source code. But the chatbot was only replying with one message "oops ! something went wrong". I have placed my own API key in it..even then it is showing only the same thing. What to do to make the chatbot work.

    • @XylomICP
      @XylomICP 2 месяца назад

      same here I also added the api and it says script line 39

    • @Kishan_Panchal
      @Kishan_Panchal Месяц назад

      so fir hua ki nai

    • @Kishan_Panchal
      @Kishan_Panchal Месяц назад

      mera bhi same aa raha haii

    • @XylomICP
      @XylomICP Месяц назад

      Okay so I found out something apparently we need to add out payment details for it to work I abandoned this method and instead created the chatbot with rule based chatbot

    • @Kishan_Panchal
      @Kishan_Panchal Месяц назад

      @@XylomICP okay

  • @yashmadaan4024
    @yashmadaan4024 15 дней назад

    Error 429 us coming too many requests showing pls help to debug this

  • @imadbenmadi
    @imadbenmadi 10 месяцев назад +4

    source code please

  • @samyak4739
    @samyak4739 9 месяцев назад +1

    Something Wrong error coming although i have put correct api key and it is not expired

  • @sanketsingh5555
    @sanketsingh5555 11 месяцев назад +2

    Bro please try to explain the code approach why(s) how(s) etc etc also in your voice either in hindi or English...

  • @user-cb4dh2gx5e
    @user-cb4dh2gx5e 17 дней назад +1

    api key is free or paid

  • @julianarobayo7980
    @julianarobayo7980 6 месяцев назад +2

    I get error in the Line starting with "fetch" in js, help

  • @vishalrahangdale3624
    @vishalrahangdale3624 9 месяцев назад

    I make video from this channel with explanation in hindi

  • @sulaymondew
    @sulaymondew 10 месяцев назад

    can this be done in other languages too???

  • @HasanAhmedShakil-nu7cs
    @HasanAhmedShakil-nu7cs 27 дней назад

    Why my API_URL doesn't work ??

  • @yogeshnoob1121
    @yogeshnoob1121 10 месяцев назад

    its showing something went wrong please help

  • @DeepakKumar-ck7pn
    @DeepakKumar-ck7pn 7 месяцев назад

    How Solve the problem Too Many Request

  • @technicalasher967
    @technicalasher967 4 месяца назад

    Hello !
    Code is running successfully, but I only I can send the messages but I'm continuously receiving ( Oops Something went wrong) from bot
    Any Solutions to the Problem ?

    • @NehaSharma-rl4qy
      @NehaSharma-rl4qy 2 месяца назад

      Did u get solution to this

    • @technicalasher967
      @technicalasher967 2 месяца назад

      @@NehaSharma-rl4qy No, I have stopped working on this & now I'm working on my own concept ChatBot

  • @SIRIVURIVENKATASIVAVARMA
    @SIRIVURIVENKATASIVAVARMA 11 месяцев назад +1

    i need source code its not available in website bro?

    • @CodingNepal
      @CodingNepal  11 месяцев назад

      Source code has bee uploaded. Link is in the video description.

  • @realkidding1213
    @realkidding1213 11 месяцев назад

    make it on using socket

  • @witcet
    @witcet 5 месяцев назад

    Api key paste karne ke baad bhi error aa raha hai defeat wala, api key pasted correctly, plz help me what I do

  • @yousufansari1999
    @yousufansari1999 7 месяцев назад

    Hi sir Im used your chatbot my isnot workihng