Ep99 - Custom chatbot with javascript tutorial and source code
https://drive.google.com/file/d/1iIY8Cj7vP8rLDfNV32Ohspk_Itqw__-K/view?usp=sharing
1. create html, css, js file
2. style the chatbox with css
3. when send button is clicked, capture the textarea message
4. pass the textmessage with the classname as parameter to function createChatLI
5. create the li with javascript with passed class name
6. use openAI to generate response
7. generate secret key from openai link
chat API
https://platform.openai.com/docs/api-reference/chat/create
reference: https://platform.openai.com/docs/api-reference/chat/create
endpoints: https://api.openai.com/v1/chat/completions
api key : https://platform.openai.com/account/api-keys