Daily LLM classification of every chat (topics + product tags + deal won/lost/undecided) aggregated into immutable daily metrics, with a filterable admin report dashboard, product-catalog import (text/CSV/XLSX), weekly persona summary, and an approval flow (LINE -> Telegram -> webhook) for applying persona recommendations. - Llm::AnalyticsClassifier: per-account openai -> Captain fallback cascade - AccountDailyProcessor + Conversation/CustomerDailyMetric aggregation - ReportService + DrilldownService (summary + deep filterable drilldown) - AnalyticsReports.vue + productCatalog import UI (admin-only) - WeeklyPersonaEvaluator + PersonaApprovalService (LINE/Telegram/webhook) - Weekly cron (Mon 10:00) + daily cron (02:30)
19 lines
429 B
JavaScript
19 lines
429 B
JavaScript
/* global axios */
|
|
import ApiClient from './ApiClient';
|
|
|
|
class AnalyticsReportsAPI extends ApiClient {
|
|
constructor() {
|
|
super('analytics_reports', { accountScoped: true, apiVersion: 'v2' });
|
|
}
|
|
|
|
getSummary(params = {}) {
|
|
return axios.get(`${this.url}/summary`, { params });
|
|
}
|
|
|
|
getDrilldown(params = {}) {
|
|
return axios.get(`${this.url}/drilldown`, { params });
|
|
}
|
|
}
|
|
|
|
export default new AnalyticsReportsAPI();
|