Introduction to Talkbot App
The Talkbot App is a fascinating conversational AI application inspired by the advanced capabilities of OpenAI's GPT-3 language model. It is developed using Create React App, ensuring both functionality and ease of use.
Features of the Talkbot App
- Natural Language Processing and Understanding: This feature enables the app to understand and generate human-like text, making the conversation more intuitive and seamless.
- Context-Aware Responses: The app can maintain context over the course of a conversation, providing relevant responses based on previous interactions.
- Conversations on Various Topics: Users can engage in discussions on a wide range of subjects, utilizing the vast knowledge base of the AI.
- User-Friendly React-Based Front-End: Built on React, the app offers a clean and straightforward interface, ensuring smooth user interaction.
- Node.js Back-End: The back-end, developed in Node.js, efficiently manages communications with the OpenAI API, integrating AI capabilities with front-end functions.
Requirements for the Project
To run the Talkbot App, users must have:
- Node.js installed,
- npm (Node Package Manager),
- An OpenAI account to access the API key.
Step-by-Step Setup Guide
-
Clone the Repository: Begin by cloning the project's repository using the command:
git clone https://github.com/dhiant/react-chatGPT-clone.git
-
Install Client Dependencies: Navigate to the client directory and run
npm install
to set up the necessary front-end packages. -
Install Server Dependencies: Similarly, move to the server folder and execute
npm install
to install back-end dependencies. -
OpenAI API Key: Obtain your API key from OpenAI's platform and set it as an environment variable in the server's
.env
file:REACT_APP_OPENAI_API_KEY = [Your Open AI key here]
-
Configure Firebase: Set up a new project in Firebase, gather your project's configuration details, and update your
firebase.config
file located in theclient/src
directory.
How to Use the Talkbot App
Once you have completed the setup, follow these steps to use the app:
-
Start the Client: Enter the client directory and start the client server:
cd client npm start
-
Start the Server: Switch to the server directory and initiate the back-end server:
cd server node index.js
- Confirm that the client application is running on port 3000 by visiting http://localhost:3000 in your web browser.
- Ensure that the server is operating on port 4000.
Contribution
The Talkbot App is an open-source project that welcomes contributions. Users are encouraged to report issues or submit pull requests. Additionally, sponsorships are appreciated, and those interested can support the project by buying the developer a coffee.
License
The project is licensed under the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license. This allows users to use, copy, and modify the code with proper attribution, as long as it's not for commercial purposes and any derivatives are shared under the same license. Note, this license only applies to the project code and not the OpenAI API, which has its own licensing terms.