IntelliFlow is a flexible framework for building AI agents with multiple specialized tools. This repository allows you to create powerful agents that can search the internet, generate code, analyze YouTube videos, create presentations, and more.
- π§ Flexible Agent Architecture: Built on the ReAct framework to combine reasoning and action
- π§ Modular Tool System: Easily extend with custom tools
- π Internet Search: Real-time web search using the Ares API
- π» Code Generation & Execution: Generate and run Python code on-the-fly
- π¬ YouTube Analysis: Search, extract transcripts, and summarize YouTube videos
- π Presentation Generation: Create PowerPoint presentations automatically
Clone the repository and install the required packages:
git clone https://github.com/SAMK-online/IntelliFlow.git
cd IntelliFlow
pip install -r requirements.txtCreate a .env file in the root directory with your API keys:
OPENAI_API_KEY=your_openai_api_key
TRAVERSAAL_ARES_API_KEY=your_traversaal_ares_api_key
Ares internet tool: Searches the internet for real-time information using the Traversaal Ares API. To get TRAVERSAAL_ARES_API_KEY. Follow these steps:
- Go to the Traversaal API platform
- Log in or create an account
- Click "Create new secret key"
- Copy the generated key and paste in
.envfile :
From the command line:
python main.pyThis starts an interactive session with the agent where you can enter queries.
from agentpro import AgentPro, ares_tool, code_tool, youtube_tool
agent = AgentPro(tools=[ares_tool, code_tool, youtube_tool])
# Run a query
response = agent("Generate a summary on the latest AI advancements")
print(response)You can also use the Quick Start Jupyter Notebook to run IntelliFlow directly in Colab.
The IntelliFlow toolkit comes with a variety of default tasks, such as:
- Internet Research: "What are the latest developments in quantum computing?"
- Code Generation: "Create a Python script to analyze stock prices and generate a chart"
- YouTube Analysis: "Find and summarize recent videos about machine learning"
- Presentation Creation: "Make a presentation about renewable energy sources"
Searches the internet for real-time information using the Traversaal Ares API.
ares_tool = AresInternetTool()
result = ares_tool.run("recent advances in AI")Generates and executes Python code based on natural language descriptions.
code_tool = CodeEngine()
result = code_tool.run("create a bar chart comparing FAANG stocks")Searches for YouTube videos, extracts transcripts, and summarizes content.
youtube_tool = YouTubeSearchTool()
result = youtube_tool.run("machine learning tutorials")Creates PowerPoint presentations from structured content.
slide_tool = SlideGenerationTool()
slides = [
{"slide_title": "Introduction", "content": "Overview of the topic"},
{"slide_title": "Key Points", "content": "The main arguments and findings"}
]
result = slide_tool.run(slides)Analyzes data files and provides statistical insights, visualizations, and exploratory data analysis.
data_tool = DataAnalysisTool()
# Basic usage with a file path
result = data_tool.run("path/to/data.csv")
# With specific analysis parameters
analysis_params = {
"file_path": "path/to/data.csv",
"analysis_type": "visualization",
"viz_type": "correlation",
"columns": ["age", "income", "education"]
}
result = data_tool.run(analysis_params)You can create your own tools by extending the Tool base class:
from agentpro.tools.base import Tool
class MyCustomTool(Tool):
name: str = "My Custom Tool"
description: str = "Description of what your tool does"
arg: str = "Information about the required input format"
def run(self, prompt: str) -> str:
# Your tool implementation here
return "Result of the tool operation"Then initialize your agent with the custom tool:
custom_tool = MyCustomTool()
agent = AgentPro(tools=[custom_tool, ares_tool, code_tool])IntelliFlow/
βββ agentpro/ # Core framework
β βββ __init__.py
β βββ agent.py # Main agent implementation
β βββ tools/
β β βββ __init__.py
β β βββ base.py # Base tool classes
β β βββ ares_tool.py # Internet search
β β βββ code_tool.py # Code generation
β β βββ youtube_tool.py # YouTube analysis
β β βββ slide_tool.py # Presentation generation
β β βββ data_tool.py # Data analysis
β βββ examples/
β βββ __init__.py
β βββ example_usage.py # Usage examples
βββ ariel_view/ # Advanced analysis platform
β βββ ariel_agent.py # Enhanced agent for topic analysis
β βββ backend/ # Flask API server
β βββ frontend/ # React TypeScript UI
β βββ tools/ # Enhanced tools (Perplexity, YouTube)
βββ main.py # CLI entry point
βββ requirements.txt # Dependencies
βββ SECURITY.md # Security guidelines
βββ .env.example # Environment template
- Python 3.8+
- OpenAI API key
- Traversaal Ares API key (for internet search)
IntelliFlow follows security best practices. See SECURITY.md for detailed security information and guidelines.
This project is licensed under the Apache 2.0 License - see the LICENSE file for more details.