diff --git a/app/bots/page.tsx b/app/bots/page.tsx index 199b3c1..0d136af 100644 --- a/app/bots/page.tsx +++ b/app/bots/page.tsx @@ -3,108 +3,6 @@ import Link from 'next/link'; import bots from '@/data/bots'; import { getChatPathFromBotSlug } from '@/data/professionals'; -// Bot display data with detailed explanations -const botDetails: Record< - string, - { - name: string; - type: string; - emoji: string; - tagline: string; - whatItDoes: string; - inputData: string; - output: string; - useCases: string[]; - } -> = { - 'legal-expert': { - name: 'Lex', - type: 'Legal Assistant', - emoji: '⚖️', - tagline: 'Your AI-powered legal companion', - whatItDoes: - 'Analyzes legal cases, matches you with expert lawyers, and provides secure collaborative workspaces', - inputData: 'Legal documents, case descriptions, jurisdiction info', - output: 'AI case analysis, lawyer matches, secure data room', - useCases: ['Immigration cases', 'Employment disputes', 'Real estate contracts', 'Business law'], - }, - 'swiss-german-teacher': { - name: 'Heidi', - type: 'Swiss German Teacher', - emoji: '🇨🇭', - tagline: 'Master Schwyzerdütsch naturally', - whatItDoes: - 'Provides contextual Swiss German learning with cultural insights and canton-specific variations', - inputData: 'Your German level, target canton, learning goals', - output: 'Personalized lessons, pronunciation guides, cultural context', - useCases: [ - 'Moving to Switzerland', - 'Work in Swiss companies', - 'Connect with locals', - 'Canton-specific dialects', - ], - }, - 'research-assistant': { - name: 'Nerd', - type: 'Research Assistant', - emoji: '🧠', - tagline: 'Accelerate your research workflow', - whatItDoes: - 'Organizes research materials, tracks citations, finds relevant papers, and synthesizes findings', - inputData: 'Research papers, notes, queries, data sets', - output: 'Literature reviews, citation networks, summaries, insights', - useCases: [ - 'Academic research', - 'Market analysis', - 'Patent research', - 'Technical documentation', - ], - }, - 'medical-expert': { - name: 'Imhotep', - type: 'Medical Expert', - emoji: '⚕️', - tagline: 'Evidence-based health insights', - whatItDoes: - 'Analyzes medical literature, symptoms, and data to provide evidence-based health information', - inputData: 'Symptoms, medical history, lab results, research papers', - output: 'Evidence-based insights, specialist recommendations, treatment options', - useCases: [ - 'Second opinions', - 'Research rare conditions', - 'Treatment comparisons', - 'Clinical studies', - ], - }, - 'artistic-advisor': { - name: 'Artr', - type: 'Creative Assistant', - emoji: '🎨', - tagline: 'Your creative co-pilot', - whatItDoes: - 'Analyzes art styles, generates creative concepts, and provides artistic feedback and guidance', - inputData: 'Art references, style preferences, project briefs', - output: 'Style analysis, creative concepts, technical feedback', - useCases: [ - 'Style exploration', - 'Concept development', - 'Art history research', - 'Portfolio review', - ], - }, - 'product-manager': { - name: 'Trident', - type: 'Product Manager', - emoji: '🔱', - tagline: 'Strategic product development', - whatItDoes: - 'Analyzes market data, user feedback, and competitive landscape to guide product strategy', - inputData: 'User feedback, market data, feature requests, analytics', - output: 'Product roadmaps, prioritization, competitive analysis', - useCases: ['Feature prioritization', 'Market analysis', 'User research', 'Roadmap planning'], - }, -}; - export default function BotsList() { // Only mark bots as "ready" if they have actual working try links // Currently only Heidi (swiss-german-teacher) has a GPT link @@ -160,19 +58,24 @@ export default function BotsList() { {/* Bots Grid */}
{bots.map((bot) => { - const details = botDetails[bot.slug] || { - name: bot.title, - type: bot.slug + // Derive display data from bot.display with sensible fallbacks + const display = bot.display || { + tagline: bot.description, + whatItDoes: bot.overview, + inputData: 'Your data', + output: 'AI insights', + useCases: bot.features.slice(0, 4), + }; + + // Derive name/type/emoji from nav or fallback + const name = bot.nav?.navTitle || bot.title; + const type = + bot.nav?.navDescription?.replace(/^AI\s+/, '') || + bot.slug .split('-') .map((word) => word.charAt(0).toUpperCase() + word.slice(1)) - .join(' '), - emoji: '🤖', - tagline: 'AI-powered assistant', - whatItDoes: 'Helps with various tasks', - inputData: 'Your data', - output: 'Helpful insights', - useCases: [], - }; + .join(' '); + const emoji = bot.nav?.emoji || '🤖'; const isReady = readyBots.includes(bot.slug); @@ -192,14 +95,14 @@ export default function BotsList() {
- {details.emoji} + {emoji}
-

{details.name}

-

{details.type}

+

{name}

+

{type}

-

"{details.tagline}"

+

"{display.tagline}"

{/* What It Does */} @@ -207,7 +110,7 @@ export default function BotsList() {

What it does

-

{details.whatItDoes}

+

{display.whatItDoes}

{/* Data Flow */} @@ -216,24 +119,24 @@ export default function BotsList() {
📥 Input
-
{details.inputData}
+
{display.inputData}
📤 Output
-
{details.output}
+
{display.output}
{/* Use Cases */} - {details.useCases && details.useCases.length > 0 && ( + {display.useCases && display.useCases.length > 0 && (

Perfect for

- {details.useCases.slice(0, 3).map((useCase, idx) => ( + {display.useCases.slice(0, 3).map((useCase, idx) => (

AI Assistants

    -
  • - - Lex (Legal) - -
  • -
  • - - Imhotep (Health) - -
  • -
  • - - Nerd (Research) - -
  • -
  • - - Heidi (Language) - -
  • -
  • - - Muse (Creative) - -
  • -
  • - - Trident (Business) - -
  • + {bots + .filter((b) => b.nav) + .map((bot) => { + // Extract short category from navDescription (e.g., "AI Legal Assistant" -> "Legal") + const category = + bot.nav!.navDescription?.replace(/^AI\s+/, '').replace(/\s+Assistant$/, '') || + 'Assistant'; + return ( +
  • + + {bot.nav!.navTitle} ({category}) + +
  • + ); + })}
diff --git a/data/bots.ts b/data/bots.ts index 4330d16..c91800e 100644 --- a/data/bots.ts +++ b/data/bots.ts @@ -16,6 +16,14 @@ export interface Bot { accentColor: BotAccentColor; menuItems: BotMenuItem[]; }; + // Display metadata for bots list page (optional with fallbacks) + display?: { + tagline: string; + whatItDoes: string; + inputData: string; + output: string; + useCases: string[]; + }; } const bots: Bot[] = [ @@ -49,6 +57,19 @@ const bots: Bot[] = [ { id: 'waitlist', label: 'Join Waitlist', icon: '📝', section: 'waitlist' }, ], }, + display: { + tagline: 'Master Schwyzerdütsch naturally', + whatItDoes: + 'Provides contextual Swiss German learning with cultural insights and canton-specific variations', + inputData: 'Your German level, target canton, learning goals', + output: 'Personalized lessons, pronunciation guides, cultural context', + useCases: [ + 'Moving to Switzerland', + 'Work in Swiss companies', + 'Connect with locals', + 'Canton-specific dialects', + ], + }, }, { slug: 'research-assistant', @@ -84,6 +105,19 @@ const bots: Bot[] = [ { id: 'roadmap', label: 'Roadmap', icon: '🗺️', section: 'roadmap' }, ], }, + display: { + tagline: 'Accelerate your research workflow', + whatItDoes: + 'Organizes research materials, tracks citations, finds relevant papers, and synthesizes findings', + inputData: 'Research papers, notes, queries, data sets', + output: 'Literature reviews, citation networks, summaries, insights', + useCases: [ + 'Academic research', + 'Market analysis', + 'Patent research', + 'Technical documentation', + ], + }, }, { slug: 'medical-expert', @@ -113,6 +147,19 @@ const bots: Bot[] = [ { id: 'vision', label: 'Vision', icon: '🚀', section: 'vision' }, ], }, + display: { + tagline: 'Evidence-based health insights', + whatItDoes: + 'Analyzes medical literature, symptoms, and data to provide evidence-based health information', + inputData: 'Symptoms, medical history, lab results, research papers', + output: 'Evidence-based insights, specialist recommendations, treatment options', + useCases: [ + 'Second opinions', + 'Research rare conditions', + 'Treatment comparisons', + 'Clinical studies', + ], + }, }, { slug: 'legal-expert', @@ -142,6 +189,14 @@ const bots: Bot[] = [ { id: 'get-started', label: 'Join Waitlist', icon: '✨', section: 'get-started' }, ], }, + display: { + tagline: 'Your AI-powered legal companion', + whatItDoes: + 'Analyzes legal cases, matches you with expert lawyers, and provides secure collaborative workspaces', + inputData: 'Legal documents, case descriptions, jurisdiction info', + output: 'AI case analysis, lawyer matches, secure data room', + useCases: ['Immigration cases', 'Employment disputes', 'Real estate contracts', 'Business law'], + }, }, { slug: 'artistic-advisor', @@ -171,6 +226,19 @@ const bots: Bot[] = [ { id: 'get-started', label: 'Get Started', icon: '🚀', section: 'get-started' }, ], }, + display: { + tagline: 'Your creative co-pilot', + whatItDoes: + 'Analyzes art styles, generates creative concepts, and provides artistic feedback and guidance', + inputData: 'Art references, style preferences, project briefs', + output: 'Style analysis, creative concepts, technical feedback', + useCases: [ + 'Style exploration', + 'Concept development', + 'Art history research', + 'Portfolio review', + ], + }, }, { slug: 'product-manager', @@ -205,6 +273,14 @@ const bots: Bot[] = [ { id: 'get-started', label: 'Get Started', icon: '🚀', section: 'get-started' }, ], }, + display: { + tagline: 'Strategic product development', + whatItDoes: + 'Analyzes market data, user feedback, and competitive landscape to guide product strategy', + inputData: 'User feedback, market data, feature requests, analytics', + output: 'Product roadmaps, prioritization, competitive analysis', + useCases: ['Feature prioritization', 'Market analysis', 'User research', 'Roadmap planning'], + }, }, ]; diff --git a/data/menuItems.ts b/data/menuItems.ts index f6a73fd..a5f228e 100644 --- a/data/menuItems.ts +++ b/data/menuItems.ts @@ -1,5 +1,49 @@ -import type { MenuItem } from '@/types/navigation'; +import type { MenuItem, MenuChildItem } from '@/types/navigation'; import type { Route } from 'next'; +import bots from '@/data/bots'; + +/** + * Map bot slug to professional category path + * This mapping allows bots to link to their corresponding professional page + */ +const BOT_TO_PROFESSIONAL_PATH: Record = { + 'legal-expert': 'legal', + 'medical-expert': 'health', + 'research-assistant': 'research', + 'swiss-german-teacher': 'language', + 'artistic-advisor': 'creative', + 'product-manager': 'business', +}; + +/** + * Generate professional menu children from bots.ts + * SSOT: Bot data drives navigation + */ +const generateProfessionalChildren = (): MenuChildItem[] => { + const allProfessionals: MenuChildItem = { + label: 'All Professionals', + path: '/professionals' as Route, + description: 'Browse all AI professionals.', + icon: '👥', + }; + + const botItems: MenuChildItem[] = bots + .filter((b) => b.nav) + .map((bot) => { + const professionalPath = BOT_TO_PROFESSIONAL_PATH[bot.slug] || bot.slug; + // Extract short category from navDescription (e.g., "AI Legal Assistant" -> "Legal") + const category = + bot.nav!.navDescription?.replace(/^AI\s+/, '').replace(/\s+Assistant$/, '') || 'Assistant'; + return { + label: `${bot.nav!.navTitle} (${category})`, + path: `/professionals/${professionalPath}` as Route, + description: bot.description, + icon: bot.nav!.emoji, + }; + }); + + return [allProfessionals, ...botItems]; +}; /** * Main site navigation menu items @@ -14,50 +58,7 @@ export const menuItems: MenuItem[] = [ { label: 'Professionals', path: '/professionals' as Route, - children: [ - { - label: 'All Professionals', - path: '/professionals' as Route, - description: 'Browse all AI professionals.', - icon: '👥', - }, - { - label: 'Dr. Lex (Legal)', - path: '/professionals/legal' as Route, - description: 'AI legal advisor for contracts and legal questions.', - icon: '⚖️', - }, - { - label: 'Dr. Imhotep (Health)', - path: '/professionals/health' as Route, - description: 'AI health advisor for wellness guidance.', - icon: '⚕️', - }, - { - label: 'Prof. Nerd (Research)', - path: '/professionals/research' as Route, - description: 'AI research assistant for academic work.', - icon: '🔬', - }, - { - label: 'Heidi (Language)', - path: '/professionals/language' as Route, - description: 'AI language coach for German learning.', - icon: '🇨🇭', - }, - { - label: 'Artr (Creative)', - path: '/professionals/creative' as Route, - description: 'AI creative advisor for artistic projects.', - icon: '🎨', - }, - { - label: 'Trident (Business)', - path: '/professionals/business' as Route, - description: 'AI business strategist for planning.', - icon: '🔱', - }, - ], + children: generateProfessionalChildren(), megaMenu: { columns: 2, header: {