"use client"; import { useState, useEffect } from "react"; interface Agent { id: string; name: string; role: string; symbol: string; status: "active" | "idle" | "busy" | "offline"; currentTask: string; location: string; templeArea: string; tasksCompleted: number; } interface TempleRoom { id: string; name: string; agent: Agent | null; status: "active" | "inactive"; description: string; } const ANVEVOICE_API_KEY = "anvk_6a217415c671b8e613df1f0b37f72c492a91b625"; const CLEOPATRA_BOT_ID = "022ae3d3-ed11-45a9-b663-f4a6dfa34f77"; export default function TempleOfAIDashboard() { const [activeRoom, setActiveRoom] = useState("sanctuary"); const [anvevoiceStats, setAnvevoiceStats] = useState(null); const [isLoading, setIsLoading] = useState(false); // Egyptian Agents const agents: Agent[] = [ { id: "horus", name: "Horus", role: "Master Orchestrator", symbol: "πŸ‘οΈ", status: "active", currentTask: "Monitoring all systems", location: "Sanctuary", templeArea: "Head", tasksCompleted: 847 }, { id: "cleopatra", name: "Cleopatra", role: "Voice AI / Sales", symbol: "πŸ‘‘", status: "active", currentTask: "Conversing with visitor", location: "Hall 2", templeArea: "Voice Lab", tasksCompleted: 234 }, { id: "anubis", name: "Anubis", role: "Outreach / Lead Gen", symbol: "πŸ•", status: "busy", currentTask: "Qualifying lead #4521", location: "Entrance", templeArea: "Reception", tasksCompleted: 156 }, { id: "thoth", name: "Thoth", role: "Research / Strategy", symbol: "🐦", status: "idle", currentTask: "Analyzing market trends", location: "Pylon 2", templeArea: "Research", tasksCompleted: 89 }, { id: "ptah", name: "Ptah", role: "Development / Ops", symbol: "πŸ”¨", status: "active", currentTask: "Deploying SiteMente v2.1", location: "Courtyard", templeArea: "Workspace", tasksCompleted: 312 }, { id: "seshat", name: "Seshat", role: "Content / SEO", symbol: "πŸ“", status: "idle", currentTask: "Writing blog post", location: "Courtyard", templeArea: "Workspace", tasksCompleted: 445 }, { id: "sekhmet", name: "Sekhmet", role: "Trading / Risk", symbol: "🦁", status: "active", currentTask: "Monitoring BTC position", location: "Courtyard", templeArea: "Trading", tasksCompleted: 67 }, { id: "maat", name: "Maat", role: "Quality Assurance", symbol: "βš–οΈ", status: "idle", currentTask: "Reviewing code quality", location: "Pylon 3", templeArea: "QA Lab", tasksCompleted: 198 }, ]; const templeRooms: TempleRoom[] = [ { id: "sanctuary", name: "Holy of Holies", agent: agents[0], status: "active", description: "Horus commands from the golden throne. The Eye of Providence sees all." }, { id: "hall2", name: "Hall of Queens", agent: agents[1], status: "active", description: "Cleopatra's voice echoes through the halls. Visitors feel welcomed." }, { id: "pylon3", name: "Pylon of Maat", agent: agents[7], status: "active", description: "The Feather of Truth guards quality standards." }, { id: "pylon2", name: "Pylon of Thoth", agent: agents[3], status: "active", description: "Sacred knowledge flows through ibis-headed archives." }, { id: "hypostyle", name: "Hypostyle Hall", agent: null, status: "active", description: "The great meeting hall. Columns reach to heaven." }, { id: "courtyard", name: "Courtyard", agent: null, status: "active", description: "Ptah builds, Seshat writes, Sekhmet trades. The heart beats strong." }, { id: "entrance", name: "Avenue of Sphinxes", agent: agents[2], status: "active", description: "Anubis greets visitors. No soul passes unseen." }, ]; const getStatusColor = (status: string) => { switch(status) { case "active": return "bg-green-500"; case "busy": return "bg-yellow-500"; case "idle": return "bg-blue-500"; case "offline": return "bg-gray-500"; default: return "bg-gray-500"; } }; const getStatusText = (status: string) => { switch(status) { case "active": return "Working"; case "busy": return "On Task"; case "idle": return "Ready"; case "offline": return "Offline"; default: return status; } }; useEffect(() => { // Fetch AnveVoice stats const fetchStats = async () => { try { const res = await fetch("/api/anvevoice-stats"); if (res.ok) { const data = await res.json(); setAnvevoiceStats(data); } } catch (e) { console.error("Failed to fetch AnveVoice stats"); } }; fetchStats(); }, []); return (
{/* Header */}

πŸ›οΈ TEMPLE OF AI

Where Ancient Wisdom Meets Machine Intelligence

🟒 {agents.filter(a => a.status === "active").length} Active 🟑 {agents.filter(a => a.status === "busy").length} Busy πŸ”΅ {agents.filter(a => a.status === "idle").length} Ready
{/* Temple Visualization */}
{/* Left Column - Temple Map */}

πŸ—ΊοΈ Temple Map

{/* Vertical Temple Layout */}
{/* Sanctuary */}
setActiveRoom("sanctuary")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "sanctuary" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
πŸ‘οΈ

HOLY OF HOLIES

{agents[0].name} - {agents[0].role}

{/* Hall 2 */}
setActiveRoom("hall2")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "hall2" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
πŸ‘‘

HALL OF QUEENS

{agents[1].name} - Voice AI

{/* Pylon 3 */}
setActiveRoom("pylon3")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "pylon3" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
βš–οΈ

PYLON OF MAAT

{agents[7].name} - Quality

{/* Pylon 2 */}
setActiveRoom("pylon2")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "pylon2" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
🐦

PYLON OF THOTH

{agents[3].name} - Research

{/* Hypostyle Hall */}
setActiveRoom("hypostyle")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "hypostyle" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
β›«

HYPOSTYLE HALL

Conference - Standups

{/* Courtyard */}
setActiveRoom("courtyard")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "courtyard" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
πŸ›οΈ

COURTYARD

Ptah πŸ”¨ | Seshat πŸ“ | Sekhmet 🦁

{/* Entrance */}
setActiveRoom("entrance")} className={`p-3 rounded-xl border-2 cursor-pointer transition-all ${ activeRoom === "entrance" ? "border-yellow-400 bg-yellow-500/20" : "border-amber-700/50 bg-stone-800/50 hover:border-amber-500" }`} >
πŸ•

AVENUE OF SPHINXES

{agents[2].name} - Reception

{/* Center Column - Active Room Details */}

{templeRooms.find(r => r.id === activeRoom)?.name}

{activeRoom === "sanctuary" && ( <>
πŸ‘οΈ

HORUS

Master Orchestrator

πŸ—£οΈ Current Task:

{agents[0].currentTask}

847

Tasks Done

99.9%

Uptime

)} {activeRoom === "hall2" && ( <>
πŸ‘‘

CLEOPATRA

Voice AI / Sales

Live on AnveVoice

πŸ—£οΈ Welcome Message:

"Hola! Soy Cleopatra, tu asistente de ventas de HostPioneers. Como puedo ayudarte hoy?"

234

Conversations

89%

Lead Capture

πŸ“Š View AnveVoice Dashboard )} {activeRoom === "courtyard" && ( <>
πŸ›οΈ

THE WORKING HEART

Where the heart beats strong

πŸ”¨

Ptah - Dev/Ops

{agents[5].currentTask}

πŸ“

Seshat - Content

{agents[6].currentTask}

🦁

Sekhmet - Trading

{agents[7].currentTask}

)} {activeRoom === "hypostyle" && ( <>
β›«

MEETING HALL

Where decisions are made

πŸ“… Next Standup

⏰

9:00 AM - Daily Standup

All agents gather

πŸ“‹ Sprint Status

Progress 72%
)} {activeRoom === "entrance" && ( <>
πŸ•

ANUBIS

Guardian of Leads

🎯 Lead Pipeline

New Today 23
Qualified 8
Conversion 34%
)} {(activeRoom === "pylon2" || activeRoom === "pylon3") && ( <>
{activeRoom === "pylon2" ? "🐦" : "βš–οΈ"}

{activeRoom === "pylon2" ? "THOTH" : "MAAT"}

{activeRoom === "pylon2" ? "Knowledge Keeper" : "Quality Guardian"}

{activeRoom === "pylon2" ? "πŸ”¬ Research" : "βœ“ Quality Metrics"}

{activeRoom === "pylon2" ? ( <>
Market Analysis Complete
Competitor Report In Progress
) : ( <>
Code Coverage 94%
Bugs Fixed 12
)}
)}
{/* Right Column - All Agents */}

πŸ‘₯ Divine Council

{agents.map(agent => (
setActiveRoom(agent.location === "Entrance" ? "entrance" : agent.location === "Hall 2" ? "hall2" : agent.location === "Pylon 2" ? "pylon2" : agent.location === "Pylon 3" ? "pylon3" : agent.location === "Courtyard" ? "courtyard" : "sanctuary")} >
{agent.symbol}

{agent.name}

{agent.role}

{getStatusText(agent.status)}

{agent.currentTask}

))}
{/* Cleopatra's Voice Widget */}

πŸŽ™οΈ Cleopatra Voice

Test Cleopatra's voice AI on AnveVoice:

Open Voice Dashboard
{/* Footer */}

πŸ›οΈ Temple of AI - Ancient Wisdom Meets Machine Intelligence

Powered by HostPioneers | Built on OpenClaw & AnveVoice

); }