This chatbot reads financial data from a CSV file and calculates year-over-year growth for key metrics. It responds to predefined financial queries using the processed data.
The chatbot can respond to the following queries:
-
Total Revenue for 2023:
- Query: "What is the total revenue for 2023?"
-
Net Income Change Over the Last Year:
- Query: "How has net income changed over the last year?"
-
Total Assets for 2023:
- Query: "What are the total assets for 2023?"
-
Cash Flow Change Over the Last Year:
- Query: "How has cash flow from operating activities changed over the last year?"
-
Revenue Growth Percentage from 2022 to 2023:
- Query: "What is the revenue growth percentage from 2022 to 2023?"
-
Data Processing:
- Reads and processes the CSV file to calculate growth metrics.
-
Query Handling:
- Matches user queries to predefined questions and returns the corresponding financial data.
-
Predefined Queries Only:
- Responds only to specific, predefined queries.
-
Data Dependency:
- Requires a correctly formatted CSV file in the same directory.
-
Scope:
- Limited to the companies and years present in the CSV file.
- Ensure
financial_data.csv
is in the same directory. - Run the Flask app using:
python app.py