Automated email processor that extracts shipping information using LLMs and displays it in a dashboard.
- Email processing with Mistral LLM
- Multi-account support
- Real-time processing with Kafka
- Redis caching
- PostgreSQL storage
- Python 3.10+
- PostgreSQL
- Redis
- Kafka & Zookeeper
- Ollama
- Install dependencies:
pip install -r requirements.txt
- Configure environment:
- Copy .env.example to .env
- Add Gmail account credentials (requires 2FA and App Password)
- Configure database settings
- Start services (each in separate terminal):
redis-server
zookeeper-server-start /opt/homebrew/etc/kafka/zookeeper.properties
kafka-server-start /opt/homebrew/etc/kafka/server.properties
ollama serve
- Add email accounts:
curl -X POST "http://localhost:8000/[email protected]&password=your_app_password&imap_server=imap.gmail.com"
- Run application:
cd src
uvicorn main:app --reload