Skip to main content

Rex AI COO

Rex is the AI Chief Operating Officer — the primary conversational interface for Business Revolution. Rex understands natural language, classifies intents, delegates to specialized Pantheon agents, and presents results in a coherent conversation flow.

Capabilities

  • Multi-turn conversations: Maintains context across messages within a session
  • Intent classification: Routes to 1 of 14 domain categories using ACP AI Router
  • Agent delegation: Dispatches to the appropriate Pantheon agent
  • Cross-domain reasoning: Can coordinate multiple agents for complex queries
  • Voice support: Accepts voice input, returns SSML-formatted responses
  • Navigation awareness: Can direct users to specific Founder Shell tabs

Conversation Flow

User: "How did we do this month?"

Rex:
1. Classify intent → "finance" + "operations"
2. Delegate to Pluto (Finance) → Get revenue, expenses, profit
3. Delegate to Saturn (Operations) → Get store performance
4. Synthesize results
5. Return: "This month revenue is $1.2M (+8% MoM). All 12 locations
operational. Tampa store leading at $142K."

API Endpoints

Chat

POST /api/v1/agent/founder/chat

{
"message": "What's our revenue this quarter?",
"conversation_id": "uuid",
"context": {
"current_tab": "finance",
"tenant_id": "uuid"
}
}

Voice

POST /api/v1/agent/founder/voice

{
"audio_url": "https://...",
"conversation_id": "uuid"
}

Returns SSML-formatted response for text-to-speech rendering.

Quick Actions

GET /api/v1/agent/founder/quick-actions

Returns contextual quick action suggestions based on current state.

KPI Summary

GET /api/v1/agent/founder/kpi-summary

Returns real-time KPI dashboard data.

Flutter Integration

The Rex AI command panel (founder_ai_command_panel.dart) provides:

  • Chat input with send button
  • Message history with sender attribution (user vs Rex)
  • Typing indicator during agent processing
  • Inline data visualizations in responses
  • Navigation links that jump to relevant tabs

Configuration

Rex's behavior can be customized per organization via the Settings tab:

  • Response verbosity (concise, detailed, executive summary)
  • Preferred language
  • Default time zone for data queries
  • Alert threshold preferences