Skip to content
/ Ai-chat Public

This project is a simple JavaScript-based chat that allows the user to converse with a virtual assistant. The assistant is able to generate automated responses using the OpenAI API.

License

Notifications You must be signed in to change notification settings

Yirade/Ai-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Chat AI

This is a simple chatbot based on JavaScript that allows the user to have a conversation with a virtual assistant. The assistant is able to generate automated responses using the OpenAI API.

⚙️ Getting Started

To get started, you will need to obtain an API key from OpenAI.

  • Clone the repository and navigate to the root directory
git clone https://github.com/Yirade/Ai-chat
  • Replace YOUR_API_KEY in chat-cron.js with your OpenAI API key
 xhr.setRequestHeader("Authorization", "Bearer your_api_key_here");

💻 Tech Stack

This website is built using HTML, CSS, and JavaScript. It uses Bootstrap for the layout.

💬 Using the Chatbot

To send a message to the chatbot, simply type it into the input field and press enter or click the send button. The chatbot will generate a response and display it in the chat window.

🔧 Customizing the Chatbot

You can customize the chatbot by modifying the generateBotMessage function in chat-cron.js. This function is responsible for generating the chatbot's responses. You can use the OpenAI API to generate responses based on the user's input, or you can simply hardcode a response.

🤝 Contributions

If you wish to contribute to this project, please fork the repository and submit a pull request. All contributions are welcome.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This project is a simple JavaScript-based chat that allows the user to converse with a virtual assistant. The assistant is able to generate automated responses using the OpenAI API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published