"use client"; import { useState } from "react"; import Sidebar from "@/components/Sidebar"; function Icon({ name, className = "" }: { name: string; className?: string }) { return {name}; } const PERSONALITIES = [ { key: "aggressive", label: "Aggressive", desc: "Direct, concise, and prioritizes speed over nuance. Best for rapid execution.", icon: "bolt", color: "text-red-400", bg: "bg-red-500/10", }, { key: "empathetic", label: "Empathetic", desc: "Prioritizes rapport, tone matching, and emotional intelligence. Human-centric.", icon: "favorite", color: "text-[#B7A6FB]", bg: "bg-[#B7A6FB]/20", }, { key: "analytical", label: "Analytical", desc: "Data-driven, cites sources, and avoids assumptions. Highly logical.", icon: "query_stats", color: "text-blue-400", bg: "bg-blue-500/10", }, { key: "balanced", label: "Balanced", desc: "The default setting. Adaptable tone that shifts based on the query complexity.", icon: "balance", color: "text-emerald-400", bg: "bg-green-500/10", }, ]; const VOICE_MODELS = [ "Adam (Deep Narration)", "Bella (Soft & Professional)", "Charlie (Energetic Male)", "Dorothy (Warm & Friendly)", ]; export default function PreferencesPage() { const [personality, setPersonality] = useState("empathetic"); const [voiceModel, setVoiceModel] = useState("Bella (Soft & Professional)"); const [showApiKey, setShowApiKey] = useState(false); const [showWebhook, setShowWebhook] = useState(false); const [savedToast, setSavedToast] = useState(false); const handleSave = () => { setSavedToast(true); setTimeout(() => setSavedToast(false), 2500); }; return (
{/* Top bar */}

Settings

negoT8 | Preferences

JD
{/* Settings sidebar */} {/* Main settings content */}
{/* Agent Personality */}

Agent Personality

Define the behavioral tone for your primary AI interactions.

{PERSONALITIES.map((p) => { const isActive = personality === p.key; return ( ); })}
{/* Voice Synthesis */}

Voice Synthesis

Configured via ElevenLabs integration for realistic speech.

API Connected
{/* Waveform visualizer */}
{[3, 6, 4, 8, 5, 7, 3].map((h, i) => (
))}
{/* Payments + Security */}
{/* Default UPI */}

Default Payments

Linked UPI ID for automated settlement.

Linked UPI

negot8-hq@okaxis

{/* Security / API Keys */}

Security

Manage environment access.

{/* Production API Key */}
{/* Webhook Secret */}
{/* Footer actions */}
{/* Footer */}
End-to-end encryption active for all preference data.
Status: Operational
{/* Save toast */} {savedToast && (
Preferences saved
)}
); }