- 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.
10 lines
361 B
SQL
10 lines
361 B
SQL
-- Create table for storing custom AI prompts
|
|
CREATE TABLE IF NOT EXISTS ai_prompts (
|
|
key VARCHAR(100) PRIMARY KEY,
|
|
prompt_text TEXT NOT NULL,
|
|
updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
|
|
updated_by INTEGER REFERENCES users(user_id)
|
|
);
|
|
|
|
-- Note: We only store overrides here. If a key is missing, we use the hardcoded default.
|