This repository provides a structured framework for setting up an AI-driven financial engineering and marketing analysis agentic system using Azure AI Agent Service SDK. It includes:
The system incorporates multiple AI-driven agents specialized in different aspects of financial and market analysis -
Behind the scene Autogen agents in play -
- Analyzes market trends and customer behavior.
- Identifies key business opportunities.
- Provides insights on geographic demand and economic patterns.
- Evaluates company financials, balance sheets, and performance metrics.
- Assesses cost efficiency and growth opportunities.
- Conducts risk assessments and budget optimization.
- Scrapes and analyzes financial news articles.
- Identifies impactful trends in the industry.
- Provides strategic implications of economic events.
- Develops three unique business strategies based on market and financial insights.
- Creates an implementation roadmap for each strategy.
- Conducts risk-benefit analysis and final recommendations.
- A structured Python project template
- Required dependencies (
requirements.txt
) - Configuration file templates (
.env
,config.ini
) - Step-by-step setup guide
- Automated AI agents for data and news analysis
π¦ Stock-Analysis-AutoGen-Multi-Agent
β£ π src
β β£ π main.py # Main entry point for analysis
β β£ π connectors.py # Handles data retrieval (ERP + News API)
β β£ π agents.py # Configures AI agents for financial & market insights
β β£ π processing.py # Data processing & transformation
β β π config.py # Loads configurations & API keys
β£ π requirements.txt # Dependencies
β£ π .env.example # Environment variables template
β£ π README.md # Project documentation
β£ π setup_azure_ai_sdk.md # Step-by-step guide for Azure AI Agent setup
β π LICENSE # License file
git clone https://github.com/amitlals/Stock-Analysis-AutoGen-Multi-Agent.git
cd Stock-Analysis-AutoGen-Multi-Agent
python -m venv venv
source venv/bin/activate # For Mac/Linux
venv\Scripts\activate # For Windows
pip install -r requirements.txt
- Create a
.env
file (or copy from.env.example
)cp .env.example .env
- Add API keys & Azure configuration:
# .env CURRENTS_API_KEY=your_currents_api_key API_KEY=your_azure_openai_api_key AZURE_ENDPOINT=your_azure_openai_endpoint MODEL_DEPLOYMENT_NAME=gpt-4 MODEL_API_VERSION=2024-02-15-preview
Follow the steps below to configure Azure AI Agent Service SDK:
pip install azure-ai-agent-sdk
- Log in to Azure CLI:
az login
- Set your subscription:
az account set --subscription "<your-subscription-id>"
- Deploy AI Agent Service:
az ai agent create --name StockAnalysisAgent --resource-group your-resource-group --location eastus --sku Standard
- Retrieve and store your Azure AI Agent API Key in
.env
.
To start the AI-driven financial and market analysis system, run:
python src/main.py
This will:
- Connect to ERP system & fetch orders/products data
- Retrieve market & financial news
- Process the data into structured insights
- Utilize AI agents for market & financial analysis
- Generate strategic recommendations
requests
dotenv
autogen
azure-ai-agent-sdk
- Keep your
.env
file secure and never commit it to version control. - Follow best practices for Azure OpenAI API usage to avoid exceeding quotas.
- Modify AI agent prompts as per specific business needs.
- Enhance AI Agents: Add more specialized AI agents for deeper financial analysis.
- Expand Data Sources: Integrate stock market APIs for real-time analytics.
- Deploy on Azure: Use Azure Functions or a containerized service for production deployment.
This project is licensed under the MIT License. See the LICENSE file for details.