An AI-powered COO Assistant that orchestrates multiple agents to analyze business data and provide actionable recommendations with continuous learning capabilities.
- Parallel Analysis: Runs multiple analysis agents simultaneously
- Data Synthesis: Combines insights from reviews and metrics
- Smart Recommendations: Generates prioritized, actionable recommendations
- Continuous Learning: Tracks outcomes and improves over time
- Demo Mode: Simulates the learning process for demonstrations
-
Get Orkes Credentials
- Sign up at https://developer.orkescloud.com/ for free
- Or get credentials from the Orkes booth at the hackathon
- You'll need both API Key and Secret Key
-
Configure Environment
cp .env.example .env # Edit .env and add: # - ORKES_API_KEY (your API key ID) # - ORKES_SECRET_KEY (your API secret)
-
Install Dependencies
npm install
# Quick demo - single analysis
npm run demo
# Continuous improvement demo - shows learning over time
npm run demo:continuous# Start the API server - listens for events
npm run server
# The server will start on port 3000 (or PORT env variable)
# API endpoints:
# - POST /api/analyze - Trigger analysis
# - POST /api/webhook/:source - Receive webhooks
# - GET /api/metrics - Get learning metrics
# - GET /api/recommendations - Get recommendation history
# - GET /api/queue/status - Check event queue statusnpm startThe agent consists of:
-
Workflow Definition (
src/workflows/coo-assistant-workflow.js)- Defines the orchestration flow
- Manages parallel task execution
-
Workers (
src/workers/)DataCollectorWorker: Gathers data from sourcesReviewAnalyzerWorker: Analyzes customer reviewsMetricsAnalyzerWorker: Analyzes product metricsSynthesisWorker: Combines insightsRecommendationWorker: Generates recommendations
-
Learning Coordinator (
src/learning/learning-coordinator.js)- Tracks recommendations and outcomes
- Calculates improvement metrics
- Manages continuous learning loop
The agent is designed to integrate with:
- Bright Data: For review scraping (Engineer 2)
- Mixpanel: For product analytics (Engineer 3)
- Dashboard: For displaying recommendations (Engineer 3)
When running in production mode, trigger analysis via API:
const result = await conductorClient.workflowResource.startWorkflow({
name: 'coo_assistant_analysis',
version: 1,
input: {
startup_id: 'your_startup_id'
}
});The workflow executes in this order:
- Collect Data (from multiple sources)
- Parallel Analysis (reviews + metrics)
- Synthesize Insights
- Generate Recommendations
- Track for Learning
The agent tracks:
- Recommendation success rate
- Improvement trends
- Confidence levels
- Time to impact