A web-based AI-powered assistant designed for auditors to handle tax-related queries. This system ensures that only tax-specific questions are answered using GPT-4, with all responses stored securely in MongoDB for auditing.
- ✅ AI-powered Tax Assistance: Uses OpenAI's GPT-4 to provide responses to tax-related queries.
- ✅ Strict Tax Query Filtering: Rejects non-tax-related questions to maintain focus.
- ✅ Database Storage: Saves user queries and AI responses in MongoDB for audit tracking.
- ✅ Modern Web UI: React frontend with a simple chat-like interface.
- ✅ Secure API: Express.js backend with environment variables for sensitive configurations.
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB (via Mongoose ORM)
- AI Integration: OpenAI GPT-4 API
- Hosting: Can be deployed on Vercel (frontend) & Heroku/AWS (backend)
git clone https://github.com/your-username/deloitte-audit-chat.git
cd deloitte-audit-chatcd backend
npm installcd ../frontend
npm installCreate a .env file in the backend directory:
cd ../backend
touch .envAdd the following details:
MONGO_URI=your-mongodb-connection-string
OPENAI_API_KEY=your-openai-api-key
PORT=5001
node server.jsor, for automatic restarts during development:
npm install -g nodemon
nodemon server.jscd ../frontend
npm start- Open Postman or a browser and test:
http://localhost:5001/api/prompt - Send a POST request with a valid tax-related query.
- Never expose
.envfiles in GitHub. Always add it to.gitignore. - Rotate API keys regularly for security.
- Use JWT authentication if expanding access control.
- 🔹 Add user authentication for Deloitte auditors.
- 🔹 Deploy the backend using Docker for better scalability.
- 🔹 Implement role-based access for different types of users.
Feel free to modify and add more sections based on your needs! 🚀