- Added `transcription_service.py` to handle audio transcription via Whisper API. - Integrated logging for transcription processes and error handling. - Supported audio format checks based on configuration settings. docs: Create Ordre System Implementation Plan - Drafted comprehensive implementation plan for e-conomic order integration. - Outlined business requirements, database changes, backend and frontend implementation details. - Included testing plan and deployment steps for the new order system. feat: Add AI prompts and regex action capabilities - Created `ai_prompts` table for storing custom AI prompts. - Added regex extraction and linking action to email workflow actions. feat: Introduce conversations module for transcribed audio - Created `conversations` table to store transcribed conversations with relevant metadata. - Added indexing for customer, ticket, and user linkage. - Implemented full-text search capabilities for Danish language. fix: Add category column to conversations for classification - Added `category` column to `conversations` table for better conversation classification.
17 lines
640 B
Python
17 lines
640 B
Python
from fastapi import APIRouter, Request, Depends
|
|
from fastapi.responses import HTMLResponse
|
|
from fastapi.templating import Jinja2Templates
|
|
from pathlib import Path
|
|
|
|
router = APIRouter()
|
|
|
|
# Use "app" as base directory so we can reference templates like "conversations/frontend/templates/xxx.html"
|
|
templates = Jinja2Templates(directory="app")
|
|
|
|
@router.get("/conversations/my", response_class=HTMLResponse)
|
|
async def my_conversations_view(request: Request):
|
|
"""
|
|
Render the Technician's Conversations Dashboard
|
|
"""
|
|
return templates.TemplateResponse("conversations/frontend/templates/my_conversations.html", {"request": request})
|