diff --git a/src/components/call-desk/ai-chat-panel.tsx b/src/components/call-desk/ai-chat-panel.tsx index 39a9b55..c1a7fd3 100644 --- a/src/components/call-desk/ai-chat-panel.tsx +++ b/src/components/call-desk/ai-chat-panel.tsx @@ -19,16 +19,25 @@ type CallerContext = { interface AiChatPanelProps { callerContext?: CallerContext; + role?: 'cc-agent' | 'admin' | 'executive'; } -const QUICK_ASK_BUTTONS = [ +const QUICK_ASK_AGENT = [ { label: 'Doctor availability', template: 'What are the visiting hours for all doctors?' }, { label: 'Clinic timings', template: 'What are the clinic locations and timings?' }, { label: 'Patient history', template: 'Can you summarize this patient\'s history?' }, { label: 'Treatment packages', template: 'What treatment packages are available?' }, ]; -export const AiChatPanel = ({ callerContext }: AiChatPanelProps) => { +const QUICK_ASK_MANAGER = [ + { label: 'Agent performance', template: 'Which agents have the highest appointment conversion rates this week?' }, + { label: 'Missed call risks', template: 'Which missed calls have been waiting the longest without a callback?' }, + { label: 'Pending leads', template: 'How many leads are still pending first contact?' }, + { label: 'Weekly summary', template: 'Give me a summary of this week\'s team performance — total calls, conversions, missed calls.' }, +]; + +export const AiChatPanel = ({ callerContext, role = 'cc-agent' }: AiChatPanelProps) => { + const quickButtons = role === 'admin' ? QUICK_ASK_MANAGER : QUICK_ASK_AGENT; const [messages, setMessages] = useState([]); const [input, setInput] = useState(''); const [isLoading, setIsLoading] = useState(false); @@ -112,7 +121,7 @@ export const AiChatPanel = ({ callerContext }: AiChatPanelProps) => { {/* Quick ask buttons */} {messages.length === 0 && (
- {QUICK_ASK_BUTTONS.map((btn) => ( + {quickButtons.map((btn) => ( + +
+ + )} )} diff --git a/src/pages/team-dashboard.tsx b/src/pages/team-dashboard.tsx index c9ffd74..328f4de 100644 --- a/src/pages/team-dashboard.tsx +++ b/src/pages/team-dashboard.tsx @@ -153,7 +153,7 @@ export const TeamDashboardPage = () => { )}> {aiOpen && (
- +
)}