CAFE is a self-learning, autonomous AI agent capable of automating multi-scale and multi-modal AI models. It dynamically spins up containerized environments as needed, leveraging self-learning capabilities to optimize workflow automation.
- Chat-based workflow creation
- Multi-service integration (Gmail, Slack, etc.)
- Containerized service execution
- Database-driven execution history management
-
Web Scraping → Image OCR → LLM Summarization
- Collect articles and images from news sites and blogs
- Extract text from scraped images (ads, screenshots)
- Generate summaries and key points using LLMs
- Create dashboards for easy content viewing
-
Speech Recognition → Sentiment Analysis → Response Generation
- Convert meeting audio and customer calls to text
- Analyze emotional context (positive, negative, neutral)
- Display real-time alerts for customer emotions
- Generate appropriate responses based on sentiment
- Utilize FAQ and past cases for chatbot responses
-
Video Information Extraction → Topic Classification → LLM Summarization
- Convert video audio to text (ASR)
- Extract key frames and visualize subtitles
- Classify content by theme (sports, politics, entertainment)
- Label video segments by topic
- Generate highlights and quick summaries
-
Text Analysis → Intent Detection → Automated Tagging
- Process emails and social media posts
- Classify multiple intents (complaints, inquiries, requests)
- Analyze keywords and context
- Auto-tag with priority levels and support requirements
- Streamline customer support workflow
-
Image Classification → Similar Image Search → Recommendation Generation
- Classify uploaded images using pre-trained models
- Extract metadata (clothing category, color, brand features)
- Search database for similar images
- Generate recommendations based on visual information
- Implement visual-based recommendation engine
-
Email Automation Support
- ChatGPT + Gmail integration
- Template-based auto-generation
-
Chat Task Extraction (Slack, Teams)
- Automatic chat history summarization
- Automated ToDo list generation
-
Meeting-Related Tasks
- Schedule coordination automation
- Minutes generation
- Follow-up email creation
-
Additional Features
- Proposal & presentation draft creation
- Telemarketing list generation
- Automated customer inquiry handling
- Frontend: React + Vite
- Backend: FastAPI + SQLAlchemy
- Database: PostgreSQL
- Container Management: Docker
- Python 3.11 or higher
- Docker & Docker Compose
- PostgreSQL
- Rye (Python package manager)
- Clone repository and install dependencies
git clone [repository-url]
cd cafe
rye sync
- Configure environment variables
cp .env.example .env
Required environment variables in .env:
- DATABASE_URL
- OPENAI_API_KEY
- Other necessary API keys
- Launch Docker containers
docker-compose up -d
- Run database migrations
cd server
rye run alembic upgrade head
- Start development servers
Backend:
rye run python -m server.main
Frontend:
npm run dev
-
Service Integration
- Add Docker image generation logic in server/docker_manager.py
- Update .env.example with required variables
-
Adding New Task Types
- Add new tools to WorkflowManager class's available_tools
- Create Docker images as needed
-
Model Changes
- Update SQLAlchemy models in server/models.py
-
Generate Migration
cd server
alembic revision --autogenerate -m "description of changes"
- Apply Migration
alembic upgrade head
-
Docker Issues
- Verify Docker daemon status
docker ps
- Check for port conflicts
docker-compose ps
-
Database Connection Errors
- Check PostgreSQL container status
docker-compose logs db
- Verify environment variables
echo $DATABASE_URL
-
API Authentication Errors
- Check environment variables
echo $OPENAI_API_KEY
- Verify API key validity
curl https://api.openai.com/v1/models \ -H "Authorization: Bearer $OPENAI_API_KEY"
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) 2025 CAFE Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.