The AI Stock Analysis Chatbot is an interactive tool designed to provide comprehensive stock analysis reports. By inputting a stock symbol and its corresponding name, users can receive detailed insights, including market trends, financial metrics, technical analysis, and recent news. This chatbot leverages advanced AI models to assist investors in making informed decisions.:contentReference[oaicite:0]{index=0}
- Real-time Stock Data Retrieval: :contentReference[oaicite:1]{index=1}:contentReference[oaicite:2]{index=2}
- Latest News Aggregation: :contentReference[oaicite:3]{index=3}:contentReference[oaicite:4]{index=4}
- Comprehensive Analysis Report: :contentReference[oaicite:5]{index=5}:contentReference[oaicite:6]{index=6}
- User-friendly Chat Interface: :contentReference[oaicite:7]{index=7}:contentReference[oaicite:8]{index=8}
To set up the AI Stock Analysis Chatbot on your local machine, follow these steps:
- Clone the Repository:
git clone https://github.com/your_username/ai-stock-analysis-chatbot.git
- Navigate to the Project Directory:
cd ai-stock-analysis-chatbot
- Install Required Dependencies:
pip install -r requirements.txt
- Set Up API Keys:
- Alpha Vantage API Key: Obtain your API key from Alpha Vantage and set it in the environment variables or directly in the code.
- OpenAI API Key: Acquire your API key from OpenAI and configure it accordingly.
- Google Custom Search API Key and Search Engine ID: Get your API key and Search Engine ID from Google Developers and set them up in the environment variables or the code.
After completing the installation and API key setup:
- Run the Chatbot Interface:
python main.py
- Interact with the Chatbot:
- Open the provided local URL in your browser.
- Input the stock symbol and name in the format: AAPL, Apple Inc..
- Receive a comprehensive analysis report generated by the AI.
ai-stock-analysis-chatbot/
├── data_fetching.py # Functions to retrieve stock data and news
├── report_generation.py # Functions to generate analysis reports
├── chat_interface.py # Gradio chat interface definition
├── main.py # Main script to run the chatbot
├── requirements.txt # List of required Python packages
└── README.md # Project overview and usage instructions