How sarappandersson/labb3-ai-motesassistent works
AI Mötesassistent is a React frontend backed by an ASP.NET Core API that uses Gemini to summarize meeting notes, create agendas, and draft invitations. Users select a tool, enter meeting details or notes, and submit them to the matching API endpoint; the backend prepares task-specific instructions, calls Gemini, and returns generated text for display. The invitation flow additionally formats dates and rejects past dates. The frontend-to-backend HTTP mapping is inferred from the configured URL and API routes; source excerpts do not show that wiring in a single file.
Main entry points: ToolPicker.jsx Tool selector · AssistantController.cs AI endpoints · api.js API client · Program.cs API host setup
Components 15
React frontend
- React entry
Frontend/src/main.jsx - Application shell
Frontend/src/App.jsx - Tool selector
Frontend/src/components/ToolPicker/ToolPicker.jsx - Invitation form
Frontend/src/components/Invitation/Invitation.jsx - Agenda form
Frontend/src/components/Agenda/Agenda.jsx - Summary form
Frontend/src/components/Summarize/Summarize.jsx - API client
Frontend/src/config/api.js
ASP.NET API
- AI endpoints
Backend/Controllers/AssistantController.cs - Request models
Backend/DTOs/RequestDTO.cs - API host setup
Backend/Program.cs
AI generation
- Prompt rules
Backend/Prompts/SystemPrompts.cs - AI service contract
Backend/Services/IAiService.cs - Gemini client
Backend/Services/AiService.cs
Other components
- User
- Google Gemini
Connections 16
- User → React entry: uses
- React entry → Application shell: renders
Frontend/src/main.jsx - Application shell → Tool selector: renders
Frontend/src/App.jsx - Tool selector → Invitation form: renders
Frontend/src/components/ToolPicker/ToolPicker.jsx - Tool selector → Agenda form: renders
Frontend/src/components/ToolPicker/ToolPicker.jsx - Tool selector → Summary form: renders
Frontend/src/components/ToolPicker/ToolPicker.jsx - Invitation form → API client: submits form
Frontend/src/components/Invitation/Invitation.jsx - Agenda form → API client: submits prompt
Frontend/src/components/Agenda/Agenda.jsx - Summary form → API client: submits notes
Frontend/src/components/Summarize/Summarize.jsx - API client → AI endpoints: posts requests
- AI endpoints → Request models: binds input
Backend/Controllers/AssistantController.cs - AI endpoints → Prompt rules: builds prompts
Backend/Controllers/AssistantController.cs - AI endpoints → AI service contract: sends prompts
Backend/Controllers/AssistantController.cs - API host setup → AI service contract: registers service
Backend/Program.cs - API host setup → Gemini client: registers implementation
Backend/Program.cs - Gemini client → Google Gemini: generates content
Backend/Services/AiService.cs