FinAgent is a lightweight financial AI agent that leverages OpenAI's GPT-4 and the Alpha Vantage API to provide intelligent, real-time responses to financial queries. By combining conversational AI with external APIs, FinAgent demonstrates the power and flexibility of hybrid agents in modern application development.
- Conversational AI: Uses OpenAI GPT-4 to understand and process user queries.
- Real-Time Financial Data: Integrates with the Alpha Vantage API to fetch up-to-date stock and financial information.
- Hybrid Workflow: Combines language understanding and API integration for intelligent, data-driven insights.
Read a walkthrough of this project on Medium: The Hybrid AI Agent: Integrating ChatGPT with External API
- Python 3.7+
- Alpha Vantage API Key (Get one from Alpha Vantage)
- OpenAI API Key (Sign up at OpenAI)
Clone the repository:
git clone https://github.com/your-username/finagent.git
cd finagentInstall the required dependencies:
pip install -r requirements.txtSet up your API keys in the .env file:
OPENAI_API_KEY = "your_openai_api_key"
ALPHAV_API_KEY = "your_alpha_vantage_api_key"python agent.py