An AI-powered chatbot I built to help business analysts create reports, understand metrics, and get business intelligence guidance - completely free using Ollama.
As a business analyst, I was spending 4-6 hours on tasks that should take 30 minutes. I built this to solve my own daily problem - constantly switching between tools, Googling metric definitions, and figuring out report structures.
Before: 4-6 hours per report
After: 1.5-2 hours per report
It's now part of my daily workflow and saves me hours every week. No API keys needed - uses Ollama (free, local AI) so it works completely offline.
- Generates report outlines in seconds
- Explains business metrics with formulas and examples
- Provides data analysis guidance
- Creates presentation structures
- Answers business intelligence questions in plain English
Make sure you have Python 3.8 or higher installed.
- Download from: https://www.python.org/downloads/
- During installation, check "Add Python to PATH"
Download and install Ollama (the free AI engine):
- Windows/Mac/Linux: https://ollama.ai
- Just download and install - no configuration needed!
Open your terminal/command prompt and run:
ollama pull llama3This downloads the AI model (takes 2-5 minutes, only needed once).
- Open terminal/command prompt
- Navigate to the project folder:
cd bi-assistant - Install required packages:
pip install -r requirements.txt
python app_ollama.pyYou should see:
Starting Flask application...
Open http://localhost:5000 in your browser
Open your web browser and go to:
http://localhost:5000
That's it! You should see the chat interface. Start asking questions!
- Type your question in the input box at the bottom
- Press Enter or click "Send"
- Wait for response (usually 10-30 seconds)
- Read the answer - it's formatted and ready to use!
Report Generation:
"Create a quarterly sales report outline"
"Help me create a presentation about Q4 performance"
"Generate a customer analysis report structure"
Metric Explanations:
"What is customer churn rate and how do I calculate it?"
"Explain revenue vs profit in simple terms"
"What does ROI mean in business?"
Analysis Guidance:
"I have sales data for 2024, what should I analyze?"
"What metrics should I track for customer retention?"
"Help me plan an analysis of our marketing campaigns"
Presentation Help:
"Help me create a presentation about our Q4 performance for the board meeting"
"I need to explain why sales increased 15%, create a presentation structure"
Once the application is running, access it at:
What is localhost?
localhost= your own computer5000= the port number where the app runs- Just type this address in any web browser (Chrome, Firefox, Edge, etc.)
Important: The application must be running (Step 5) for the website to work!
bi-assistant/
├── app_ollama.py # Main application
├── templates/
│ └── index.html # Web interface
├── prompts/ # AI prompt templates
│ ├── report_generation.txt
│ ├── metric_explanation.txt
│ └── analysis_guidance.txt
├── static/
│ └── logo.png # Your logo (optional)
├── requirements.txt # Python dependencies
├── .env # Configuration (auto-created)
└── README.md # This file
- Python is not installed or not in PATH
- Reinstall Python and make sure to check "Add Python to PATH"
- Or try:
python3instead ofpython
- Make sure Ollama is installed (Step 2)
- Check if Ollama is running:
If this works, Ollama is running.
ollama list
ollama pull llama3Wait for it to download.
pip install -r requirements.txt- Another application is using port 5000
- Close other applications
- Or restart your computer
- Make sure the application is running (check terminal window)
- Check the URL:
http://localhost:5000(nothttps://) - Try:
http://127.0.0.1:5000instead - Make sure you didn't close the terminal window
Starting the App:
cd bi-assistant
python app_ollama.pyThen open: http://localhost:5000
Common Questions:
- "Create a [type] report outline"
- "What is [metric] and how do I calculate it?"
- "I have [data], what should I analyze?"
- "Help me create a presentation about [topic]"
Stop the Application:
- Press
Ctrl + Cin the terminal window
To run the website:
- Python installed
- Ollama installed
- Model downloaded (
ollama pull llama3) - Dependencies installed (
pip install -r requirements.txt) - Application running (
python app_ollama.py) - Browser open at
http://localhost:5000
That's it! You're ready to use the Business Intelligence Assistant!
This project is open source and available for portfolio use.
Vivian Ferguson
I built this to solve a real problem I face as a business analyst. It's a portfolio project demonstrating my skills in AI integration, prompt engineering, and full-stack development with Flask.
Ready to use? Follow the Quick Start guide above and start chatting!



