An open API service indexing awesome lists of open source software.

https://github.com/adityakapole/TrendCrafter

A cutting-edge multi AI agent platform that uncovers emerging trends and crafts engaging narratives, seamlessly blending research and storytelling using CrewAI
https://github.com/adityakapole/TrendCrafter

agents crewai google-gemini langchain llm serper

Last synced: 9 months ago
JSON representation

A cutting-edge multi AI agent platform that uncovers emerging trends and crafts engaging narratives, seamlessly blending research and storytelling using CrewAI

Awesome Lists containing this project

README

          

# TrendCrafter
A cutting-edge multi AI agent platform that uncovers emerging trends and crafts engaging narratives, seamlessly blending research and storytelling using CrewAI


Project Image

## πŸ› οΈ Overview
TrendCrafter is an AI-driven project designed to identify and explore emerging trends in technology, with a focus on providing insightful and engaging narratives. The project leverages a multi-agent architecture, powered by CrewAI, to automate the research and writing processes, ensuring that the latest technological advancements are not only identified but also communicated effectively to a broader audience.The core components of the project include:

- Agents: Autonomous AI agents responsible for specific roles such as research and writing.
- Tasks: Defined objectives that guide the agents in their operations, ensuring each task has a clear goal and expected output.
- Tools: External tools integrated into the agents' workflow to enhance their capabilities.

## πŸ—‚οΈ Project Structure
```
β”œβ”€β”€ __pycache__/ : Directory containing Python bytecode-compiled files for faster execution.
β”œβ”€β”€ .env: Environment variables file,used to store sensitive data like API keys.
β”œβ”€β”€ .gitignore: Specifies files and directories to be ignored by Git version control.
β”œβ”€β”€ Crew AI Output.pdf: A PDF document, possibly containing output or a report generated by the AI system.
β”œβ”€β”€ LICENSE: MIT LICENSE
β”œβ”€β”€ README.md: Markdown file providing an overview and instructions for the project
β”œβ”€β”€ agents.py: Python script defining AI agents used in the project.
β”œβ”€β”€ crew.py: The main file, coordinating the activities of AI agents and tools.
β”œβ”€β”€ new-blog-post.md: Markdown file for storing a new blog pos
β”œβ”€β”€ requirements.txt: Lists the Python dependencies needed to run the project.
β”œβ”€β”€ tasks.py: Python script, for defining specific tasks or operations within the project.
└── tools.py: Python script containing utility functions used by other scripts
```

## πŸš€ Getting Started
- Clone the Repository:
```bash
git clone https://github.com/adityakapole/TrendCrafter.git
```
- Install Dependencies:
```bash
pip install -r requirements.txt
```
- Configure API Keys:


Enter appropriate API keys in the .env file.

In this project gemini-1.5-flash LLM is used and Serper API is used for interacting with news
To create API keys, please refer this sites:
- https://aistudio.google.com/app/apikey
- https://serper.dev/


- Run the Project:
```bash
python crew.py
```

## πŸ› οΈ Workflow
### πŸ€– Agents
#### Senior Researcher (news_researcher):
Role: Uncover groundbreaking technologies in a specified topic.

Goal: To explore, analyze, and report on the latest technological trends.

Backstory: Driven by curiosity, this agent is at the forefront of innovation, eager to share knowledge that could change the world.

#### Writer (news_writer):
Role: Craft compelling narratives about the technological trends identified by the researcher.

Goal: To present complex topics in an engaging and accessible manner, making new discoveries understandable to a wider audience.

Backstory: With a flair for simplifying complex topics, this agent is dedicated to educating and captivating readers with tech stories.

### πŸ“ Tasks
#### Research Task:
Description: Identify the next big trend in a specified topic. The task focuses on the pros and cons of the trend, its market opportunities, and potential risks.

Expected Output: A comprehensive 3-paragraph report on the latest AI trends.

#### Writing Task:
Description: Compose an insightful article on the identified trend, highlighting how it is impacting the industry.

Expected Output: A 4-paragraph article formatted as markdown, ready for publishing as a blog post.

### πŸ”„ Process
The agents collaborate in a sequential process, where the researcher first identifies the trend, and the writer then crafts the article. The process is designed to ensure a coherent and efficient workflow, producing high-quality content.

## πŸ“„ License
This project is licensed under the MIT License.

## πŸ“šReferences
1. https://www.crewai.com/
2. https://chatgpt.com/g/g-qqTuUWsBY-crewai-assistant