A comprehensive web application for managing hybrid work schedules, team measures, and AI-powered insights based on survey data.
π» Developed by the WORK:AI:TION Team [Tjark, Victoria, Rouben & Lisa] during the Fraunhofer Summercamp 2025.
π Won the awards for the best UX, transferability and scalability potential.
fraunhofer-prototype/
βββ backend/ # FastAPI backend server
β βββ app.py # Main API application
βββ frontend/ # Frontend web application
β βββ index.html # Main HTML interface
βββ prompts/ # AI prompt templates
β βββ system_prompt_event.txt
β βββ system_prompt_massnahmen.txt
β βββ instructions_event.txt
β βββ instructions_massnahmen.txt
βββ assets/ # Static assets
β βββ logo.png
β βββ wochenplan.png
β βββ massnahmen.png
βββ data/ # Data storage
β βββ events.json # Calendar events
β βββ massnahmen.json # Team measures
β βββ messages.json # Chat messages
β βββ table.csv # Survey data
βββ scripts/ # AI processing scripts
β βββ get_AI_feedback_4_massnahmen.py
β βββ get_AI_feedback_4_survey.py
βββ venv/ # Python virtual environment
βββ requirements.txt # Python dependencies
βββ run.py # Application startup script
βββ README.md # This file
- Weekly Schedule View: Interactive calendar showing Monday-Friday work schedule
- Event Management: Add, edit, and delete calendar events
- Time Slot Management: 6 AM to 6 PM time slots with duration support
- Color-coded Days: Visual distinction between presence days, flex days, and home office days
- Event Details Modal: Click events to view details and manage them
- Intelligent Assistant: AI chat powered by Groq's Llama model
- Context-Aware: Uses calendar events, measures, and survey data for responses
- Real-time Communication: Instant responses to user queries
- Persistent Storage: Chat history saved locally and on server
- CSV Processing: Automatic processing of survey data
- AI-Generated Insights: Automatic generation of events and measures based on survey results
- Scientific Foundation: Based on Fraunhofer IAO research on hybrid work
- Categorized Measures: Organize measures into three categories:
- Team Measures (Einmalige MaΓnahmen)
- Workplace (Arbeitsplatz)
- Work-Life Balance
- Priority System: High, medium, and low priority levels
- CRUD Operations: Create, read, update, and delete measures
- Status Management: Accept, decline, or edit measures
- Python 3.8 or higher
- pip (Python package manager)
-
Clone or download the project
git clone https://github.com/tjayada/fraunhofer-prototype.git cd fraunhofer-prototype -
Create and activate virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
Create a
.envfile in the project root:GROQ_API_KEY=your_groq_api_key_here SURVEY_URL="https://example.com/path/to/your.csv"
-
Start the application
python run.py
-
Access the application
Open your browser and go to:
http://127.0.0.1:8000
The application can automatically process survey data to generate calendar events and team measures:
-
Generate Events from Survey Data
cd scripts python get_AI_feedback_4_survey.py -
Generate Measures from Survey Data
cd scripts python get_AI_feedback_4_massnahmen.py
- events.json: Calendar events organized by day
- massnahmen.json: Team measures organized by category
- messages.json: Chat conversation history
- table.csv: Survey data for AI processing
The application uses a modern, responsive design with:
- Gradient backgrounds
- Card-based layout
- Color-coded calendar days
- Interactive hover effects
- Mobile-responsive design
Customize AI behavior by editing files in the prompts/ directory:
system_prompt_event.txt: Instructions for event generationsystem_prompt_massnahmen.txt: Instructions for measures generationinstructions_event.txt: Format specifications for eventsinstructions_massnahmen.txt: Format specifications for measures
GET /events- Get all eventsPOST /events- Create new eventDELETE /events?day={day}&index={index}- Delete event
GET /massnahmen- Get all measuresPOST /massnahmen/{category}- Create new measurePUT /massnahmen/{category}/{index}- Update measureDELETE /massnahmen/{category}/{index}- Delete measure
GET /chat- Get chat messagesPOST /chat- Send message and get AI response
The application runs with auto-reload enabled by default. Any changes to the backend code will automatically restart the server.
- Backend changes: Modify
backend/app.py - Frontend changes: Modify
frontend/index.html - AI prompts: Modify files in
prompts/directory - Data processing: Modify scripts in
scripts/directory
- This is a prototype developed in under a week, so proceed with caution as there will be many bugs
- The application is designed for German language interface
- All times are in 24-hour format
- The calendar shows Monday through Friday only
- AI responses are based on (very limited) Fraunhofer IAO research data
- Survey data should be in CSV format for processing
- Instead of adding research data via prompts create a RAG based system
- Make the AI give recommendations for remote, hybrid and presence days (color coded in weekly calender)


