Skip to content

harshsatyarthi-bit/financial-analysis-chatbot

Repository files navigation

💹 Financial Analysis Chatbot

Home Screen

Home


📌 Overview

The Financial Analysis Chatbot is a rule-based chatbot built using Python, Pandas, and Gradio.

It analyzes financial statement data of Microsoft, Apple, and Tesla for fiscal years 2023–2025 and answers financial queries through a conversational interface.

This project does not use any external AI APIs or Large Language Models (LLMs). Instead, it uses a modular rule-based Natural Language Processing (NLP) approach to understand user queries.


🚀 Features

  • 📊 Company financial reports
  • 📈 Revenue, Net Income, Assets, Liabilities and Operating Cash Flow lookup
  • 🔍 Company comparisons
  • 🏆 Highest and Lowest financial metrics
  • 📉 Financial trend summaries
  • 💡 Financial insights
  • 📚 Financial term definitions
  • 💬 Interactive Gradio interface

🛠️ Technologies Used

  • Python
  • Pandas
  • Gradio
  • OpenPyXL

📂 Dataset

The chatbot uses financial statement data extracted from annual reports of:

  • Microsoft
  • Apple
  • Tesla

Fiscal Years:

  • 2023
  • 2024
  • 2025

💬 Example Questions

  • Tell me Apple's revenue
  • Compare Microsoft and Apple revenue
  • Highest revenue
  • Lowest liabilities
  • Apple financial report
  • Tesla financial health
  • Apple revenue trend
  • What is operating cash flow?

▶️ How to Run

  1. Open the notebook in Google Colab or Jupyter Notebook.
  2. Upload the Excel dataset when prompted.
  3. Run all cells.
  4. Launch the Gradio chatbot.
  5. Ask financial questions using the chat interface.

👨‍💻 Author

Harsh Kumar Satyarthi


📸 Application Screenshots

Financial Report

Report


Revenue Comparison

Comparison


Highest Revenue

Ranking


Financial Definition

Definition

About

A rule-based financial analysis chatbot built with Python, Pandas, and Gradio for generating financial reports, comparisons, rankings, and insights.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors