Welcome to AIssistantHub! This innovative project facilitates real-time communication between users and the OpenAI GPT model for content generation and refinement. Whether you need a blog post, article, or any written content, simply provide a topic, set the sentiment, and specify the length—AIssistantHub will handle the rest!
Key Features
- Topic Submission: Input your desired topic.
- Sentiment Control: Define the tone of your content.
- Length Adjustment: Specify the length of your post or article.
Major Components
- Frontend - AIssistantHub
- Backend - AIssistantHub-Backend
- RTC - AIssistantHub-RTC
The RTC component of AIssistantHub enables seamless real-time communication with users, ensuring an interactive and responsive experience.
-
Clone the Repository:
git clone https://github.com/sumitra19jha/Generative-AI-Content-Creation-RTC.git
-
Install Node.js Server Dependencies:
npm install
-
Configure Environment Settings:
- Update your database settings in the
.env
file. - Set up your OpenAI API key and other required configurations in the
.env
file.
- Update your database settings in the
-
First Start the Flask API Server (AIssistantHub-Backend)
-
Start the Node.js Server:
npm start
-
Access the Application (AIssistantHub Frontend):
- Open your browser and navigate to
http://localhost:3001
(or the appropriate port).
- Open your browser and navigate to
├── nodejs-server
├── src
│ ├── config
| | |__ config.js
| |__ middleware
| | |__ errorHandlers.js
│ |
│ ├── controllers
│ │ └── roomController.js
| | |__ roomController.js
│ └── routes
│ | └── index.js
| | |__ chatRoutes.js
| |__ db.js
| |__ app.js
├── package.json
└── server.js
+---------+ +-------------------+ +------------+ +-------+
| | | | | | | |
| User +--------> Frontend (React) +----->+ Flask API +----->+ OpenAI|
| | | | | | | |
+---------+ +----+---------+----+ +------+-----+ +---+---+
| ^ | | ^
| | | | |
| | | v |
| | +---+------+ |
| | | | |
v +--------> MySQL DB | |
+---------+------+ | | | |
| +--+ +-------------+--------------+
| Node.js Server |
| (Socket.IO) |
+----------------+