This project is a Blog Content Generator that uses AI agents to research and write blog posts based on a given topic. The application is built using Streamlit for the user interface and CrewAI for managing the AI agents.
- User Input: Enter a topic for the blog post.
- AI Agents: Two AI agents, a Blog Researcher and a Blog Writer, work together to generate the blog content.
- YouTube Integration: The Blog Researcher uses a YouTube search tool to gather information from a specified YouTube channel.
- Sequential Task Execution: The tasks are executed sequentially to ensure a coherent workflow.
app.py: Main application file for the Streamlit interface.agents.py: Defines the AI agents used in the project.crew.py: Configures the CrewAI setup with agents and tasks.tasks.py: Defines the tasks for the AI agents.tools.py: Contains the YouTube search tool configuration.db/: Directory for database files.requirements.txt: Lists the Python dependencies..env: Environment variables file (contains API keys).
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Set up the environment variables in the .env file:
OPENAI_API_KEY="your-openai-api-key"
-
Run the Streamlit application:
streamlit run app.py
-
Enter a topic for the blog post in the Streamlit interface and click "Generate Blog".
This project is licensed under the MIT License.