A serverless, AI-powered assistant for financial research that fetches live market news and data, performs sentiment analysis, and generates investor-friendly reports. Built with LangGraph, LangChain, Streamlit, AWS Lambda, and DynamoDB.
- Agent A: Fetches live market news & stock data via APIs.
- Agent B: Summarizes text and performs sentiment analysis.
- Agent C: Generates investor-friendly insights and reports using GPT-4.
- LangGraph Orchestration: Manages agent workflows.
- AWS Lambda + DynamoDB: Enables serverless execution & persistence.
- Streamlit Dashboard: User-friendly interface for exploring insights.
├── agents
│ ├── agent_a_fetcher.py # Fetch live financial data & news
│ ├── agent_b_analyzer.py # Summarization & sentiment analysis
│ └── agent_c_reporter.py # Report generation
├── orchestration
│ └── langgraph_orchestrator.py # Orchestrates agent workflows
├── lambda
│ └── lambda_handler.py # AWS Lambda handler
├── utils
│ └── dynamo.py # DynamoDB helper functions
├── streamlit_app.py # Streamlit dashboard
├── run_local.py # Local runner for development
├── requirements.txt # Python dependencies
├── .env.example # Example environment variables
└── README.md # Project documentation
git clone https://github.com/hq969/multi-agent-financial-assistant.git
cd multi-agent-financial-assistantpip install -r requirements.txtCopy .env.example to .env and update with your credentials:
OPENAI_API_KEY=your-openai-api-key
NEWS_API_KEY=your-newsapi-key
MARKET_API_KEY=your-alpha-vantage-key
DYNAMO_TABLE=FinancialReportspython run_local.pystreamlit run streamlit_app.pyThen open http://localhost:8501 in your browser.
- Package with dependencies.
- Set environment variables in Lambda.
- Ensure DynamoDB table exists (
FinancialReports). - Deploy handler:
lambda/lambda_handler.lambda_handler.
- Agent A fetches stock news + financial data.
- Agent B generates a summary + sentiment analysis.
- Agent C compiles reports for investors.
- Orchestrator pipelines results to DynamoDB & UI.
- Frontend: Streamlit
- Backend: AWS Lambda (Python)
- Data Storage: DynamoDB
- AI/LLM: OpenAI GPT-4 via LangChain
- Workflow: LangGraph
- APIs: NewsAPI, Alpha Vantage
- Add unit tests in a
tests/folder. - Create CI/CD pipeline for Lambda + Streamlit.
- Add Mermaid architecture diagram to README.
Built by Harsh Sonkar ⚡