https://github.com/henrymorgandibie/compliance-bot
Automates regulatory and tax filing workflows with real-time Slack alerts, GPT-powered explanations, and a visual Streamlit dashboard for compliance teams.
https://github.com/henrymorgandibie/compliance-bot
automation gpt python slack streamlit
Last synced: about 2 months ago
JSON representation
Automates regulatory and tax filing workflows with real-time Slack alerts, GPT-powered explanations, and a visual Streamlit dashboard for compliance teams.
- Host: GitHub
- URL: https://github.com/henrymorgandibie/compliance-bot
- Owner: HenryMorganDibie
- Created: 2025-07-11T02:35:35.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-11T02:42:20.000Z (12 months ago)
- Last Synced: 2025-07-11T07:13:55.489Z (12 months ago)
- Topics: automation, gpt, python, slack, streamlit
- Language: Python
- Homepage:
- Size: 179 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π
Smart Compliance Filing Tracker
A workflow automation tool that helps financial service companies **track legal, regulatory, and tax obligations** β with **GPT-powered explanations**, **Slack deadline alerts**, and a **streamlit UI** for real-time visibility.
![alt text]()
![alt text]()

---
## π Features
β
Visual filing tracker (built in Streamlit)
β
Filing urgency status (Overdue / Due Today / etc.)
β
Daily automated checks for upcoming deadlines
β
Slack alerts for due/overdue filings
β
GPT-powered filing explainer
β
Export to CSV
β
Easily extendable for email alerts, multi-user workflows, or database support
---
## ποΈ Project Structure
compliance-tracker/
β
βββ app/ # Streamlit UI
β βββ main.py
β
βββ workflows/ # Automation logic
β βββ scheduler.py
β
βββ notifications/ # Slack integration
β βββ slack_bot.py
β
βββ data/
β βββ filing_schedule.json # Filing records (editable)
β
βββ run_daily.py # Runs daily checks at 09:00 AM
βββ requirements.txt
βββ .env # Slack webhook (not committed)
βββ README.md
βββ .gitignore
---
## π¦ Installation
### 1. Clone this repo
```bash
git clone https://github.com/your-username/compliance-tracker.git
cd compliance-tracker
```
### 2. Create virtual environment & install requirements
```
python -m venv venv
venv\Scripts\activate # on Windows
# OR
source venv/bin/activate # on Mac/Linux
pip install -r requirements.txt
```
### 3. Create .env for Slack alerts
Create a .env file in the root folder:
```ini
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/your/webhook/url
### π» Usage
βΆοΈ Launch the Streamlit App
```
streamlit run app/main.py
```
This opens a dashboard where you can:
- View all pending filings
- Mark filings as completed
- See urgency levels
- Trigger GPT-based explanation of filings
- Export all data to CSV
### β° Run Deadline Alerts Manually
```
python workflows/scheduler.py
```
This checks all filings and sends Slack alerts if any are:
- Overdue
- Due today
- Due in 1β2 days
### π Run it Automatically Every Day
```
python run_daily.py
```
This runs scheduler.py every day at 09:00 AM using the schedule library.
### π Sample Filing Entry (filing_schedule.json)
```json [ { "filing_name": "Q3 Tax Return", "filing_type": "Tax", "description": "Quarterly tax obligation for fintech operators", "due_date": "2025-07-12", "jurisdiction": "Nigeria", "business_type": "Microfinance", "escalation_contact": "compliance@yourcompany.com", "completed": false } ] ```
### π€ GPT Integration
You can use OpenAIβs GPT to auto-explain filings using ai/gpt_explainer.py.
If using GPT, youβll also want to store your OpenAI key in .env like so:
```ini
OPENAI_API_KEY=your-openai-api-key
### β
Future Improvements
- Add user authentication
- Connect to a database (SQLite/PostgreSQL)
- Add email alerts via SendGrid or SMTP
- Build admin panel to add/edit filings in UI
- Integrate with calendar APIs (Google Calendar, Outlook)
### π¨βπ» Author
Henry C. Dibie
Data & Automation Enthusiast