feat: supervisor AI tools — agent performance, campaign stats, call summary, SLA breaches

- AiChatPanel accepts context type, team dashboard passes { type: 'supervisor' }
- Supervisor system prompt: data-driven, no bias, threshold-based comparisons

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-02 13:05:20 +05:30
parent 4598740efe
commit c5d5e9c4f9
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import { faPaperPlaneTop, faSparkles, faUserHeadset } from '@fortawesome/pro-duo
const API_URL = import.meta.env.VITE_API_URL ?? 'http://localhost:4100';
type CallerContext = {
type?: string;
callerPhone?: string;
leadId?: string;
leadName?: string;

View File

@@ -153,7 +153,7 @@ export const TeamDashboardPage = () => {
)}>
{aiOpen && (
<div className="flex h-full flex-col p-4">
<AiChatPanel />
<AiChatPanel callerContext={{ type: 'supervisor' }} />
</div>
)}
</div>