ankitpatil3003/Content-Reseracher-Writer-Using-CrewAI
0
Content-Reseracher-Writer-Using-CrewAI
A powerful content generation system built with CrewAI that combines research, analysis, and writing capabilities to produce high-quality blog posts on any topic.
๐ Features
- Automated research using Gemini and SerperAPI
- AI-powered content writing and analysis
- Sentiment analysis and keyword extraction
- Streamlit web interface for easy interaction
- Downloadable markdown output
๐ Prerequisites
- Python 3.9+
- Gemini API key
- SERPER API key
๐ ๏ธ Installation
- Clone the repository:
git clone <repository-url>- Create and activate a virtual environment:
conda create -n crewai python==3.12 -y
conda activate crewai- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
- Copy
.env.exampleto.env - Add your API keys to
.env:
GEMINI_API_KEY=your_gemini_api_key
SERPER_API_KEY=your_serper_key๐ Running the Application
Command Line Version
Run the basic version using:
python app.pyWeb Interface
Launch the Streamlit web interface:
streamlit run streamlit_app.pyThen open your browser and navigate to http://localhost:8501
Deployed
Also deployed on Hugging Face with Github Actions Here is the link:
https://huggingface.co/spaces/ankitpatil3003/Content-Reseracher-Writer-Using-CrewAI
๐ป Usage
- Web Interface:
- Enter your desired topic in the sidebar
- Adjust the temperature setting if needed
- Click "Generate Content"
- Wait for the AI to generate your article
- Download the result as a markdown file
- Command Line:
- Edit the topic in
app.py - Run the script
- Results will be printed to console
๐ง Project Structure
ai-content-assistant/
โโโ streamlit_app.py # Web interface
โโโ app.py # Command line version
โโโ requirements.txt # Project dependencies
โโโ .env # Environment variables
โโโ README.md # Documentation