This project showcases a simple yet effective application that leverages AI to generate content ideas. It's a SPA (Single Page Application) built using PHP and HTML, integrating with the Cahere API for text generation and the Google Trends API for trend analysis.
The primary goal of this project is to provide users with a tool that generates creative content ideas based on current trends. By harnessing the power of artificial intelligence through Cahere API and analyzing popularity through Google Trends, the application offers unique suggestions for blogs, videos, and other content formats.
- Programming Language: PHP.
- Frontend: HTML, with JavaScript for asynchronous server communication.
- APIs: Cahere for text generation, Google Trends for trend analysis.
- Development Environment: All development and testing were conducted in Visual Studio Code.
You'll need a PHP server installed to run this project. XAMPP or MAMP is recommended for local development.
To get the project running locally, follow these steps:
git clone https://github.com/Maysker/IdeaGenix
cd yourprojectname
php -S localhost:8000
Please be aware that there might be a delay in receiving responses from the AI service, typically ranging from 5 to 6 seconds. This delay is due to the utilization of the free tier of the service, which may have limitations on processing speed and resources. We appreciate your patience and understanding.
Open the application in your browser and fill out the request form on the homepage. After submitting the form, the application will query the APIs to generate content ideas and display the results on the page.
For enhancing the quality of content idea generation, future iterations could incorporate a deeper analysis of the user-provided topic through additional services for trend analysis. This would allow for the generation of ideas that are not only relevant but also highly personalized to the target audience's interests. By amalgamating generalized data from the user form and trend data, we can direct refined inputs to the AI for generating more pinpointed and original suggestions. Although the current version of the application serves as an educational exercise, it lays the groundwork for future development and demonstrates a deep understanding of the content creation process.
The decision to develop this application using a PHP and JavaScript hybrid was made to combine the flexibility and power of server-side processing with the convenience and responsiveness of client-side functionality. PHP was utilized for handling API requests and executing server-side logic, while JavaScript was employed for making asynchronous requests and enhancing user experience without page reloads. This approach ensured the application's efficiency and performance, allowing for real-time result display and providing a highly interactive user interface.
We welcome any contributions to the project's development. If you have suggestions for improvement, please create an issue or pull request.
This project is distributed under the MIT License. See the LICENSE file for details.
- Project Creator - @maysker
Special thanks to everyone who supported and contributed to the development of this project.