WorkflowStudio is a sophisticated multi-agent AI system that coordinates multiple specialized AI agents to complete complex tasks and workflows. The system features a modern web interface for managing missions and building custom agent workflows.
- Multi-Agent Coordination: Five specialized AI agents working together
- Web Search Integration: Real-time information gathering from the web
- Custom Workflows: Visual workflow builder for creating custom agent sequences
- Real-time Monitoring: Live updates on agent status and task progress
- Modern Web Interface: Clean, dark-themed web UI with real-time updates
- π― Manager: Coordinates missions and manages team workflow
- π Researcher: Gathers information using web search capabilities
- π Analyst: Analyzes data and provides insights
- βοΈ Writer: Creates high-quality content and documentation
- ποΈ Reviewer: Reviews work quality and validates results
The system is built with:
- Backend: Python with Flask and SocketIO for real-time communication
- Frontend: Modern JavaScript with WebSocket integration
- AI Engine: Ollama for local LLM inference
- Web Search: Google Search and BeautifulSoup for web research
- Communication: Real-time updates via WebSockets
Before running WorkflowStudio, ensure you have:
- Python 3.8+ installed
- Ollama installed and running locally
- Required AI Models downloaded in Ollama:
llama3.2:latest(primary model)qwen3:latest(alternative model)- Whichever model you prefer for your tasks
# Install Ollama (macOS)
brew install ollama
# Start Ollama service
ollama serve
# Download required models
ollama pull llama3.2:latest
ollama pull qwen3:latestgit clone <repository-url>
cd WorkflowStudiopip install -r requirements.txtMake sure Ollama is running on http://localhost:11434:
curl http://localhost:11434/api/version# Option 1: Use the automated startup script
python start_web.py
# Option 2: Start manually
python web_server.pyThe web interface will be available at http://localhost:7777
- Design Your Workflow:
- Drag agents from the palette to the canvas
- Configure each agent's task and parameters
- Set custom prompts for specialized behavior
- Choose specific AI models for each agent
- Save and Execute: Save your workflow and run it with custom missions
- Business Plan Development: Complete business plan creation workflow
- Content Marketing Campaign: End-to-end marketing campaign development
- Market Research Analysis: Comprehensive market research and competitor analysis
- Product Launch Strategy: Full product launch planning and execution
- Blog Post Creation: Simple content creation workflow
The system uses a centralized configuration file that contains all shared constants and settings:
# Server configuration
SERVER_PORT = 7777
SERVER_HOST = '0.0.0.0'
# Ollama configuration
OLLAMA_BASE_URL = "http://localhost:11434"
OLLAMA_API_VERSION = "/api/version"
OLLAMA_API_TAGS = "/api/tags"
OLLAMA_TIMEOUT = 5
# Default model configuration
DEFAULT_MODEL = "llama3.2:latest"
# Web interface configuration
SECRET_KEY = 'infinitybench_ai_secret_2024'
TEMPLATES_AUTO_RELOAD = True
# Workflow storage configuration
WORKFLOWS_DIR = 'workflows'
# Logging configuration
MAX_LOGS_DISPLAY = 50{
"ollama": {
"base_url": "http://localhost:11434",
"model": "qwen3:latest",
"temperature": 0.7,
"top_p": 0.9,
"max_tokens": 1000
},
"agents": {
"manager": { "enabled": true, "max_memory": 100 },
"researcher": { "enabled": true, "max_memory": 100 },
"analyst": { "enabled": true, "max_memory": 100 },
"writer": { "enabled": true, "max_memory": 100 },
"reviewer": { "enabled": true, "max_memory": 100 }
}
}To modify system settings, edit the config.py file:
- Server Port: Change
SERVER_PORTto use a different port - Ollama Connection: Update
OLLAMA_BASE_URLfor different Ollama instances - Default Model: Modify
DEFAULT_MODELto use your preferred AI model - Workflow Storage: Change
WORKFLOWS_DIRfor custom workflow location
You can override configuration with environment variables:
OLLAMA_BASE_URL: Ollama server URLDEFAULT_MODEL: Default AI model to use
- Planning Phase: Manager analyzes the mission and creates execution plan
- Research Phase: Researcher gathers information using web search
- Analysis Phase: Analyst processes data and identifies insights
- Content Creation: Writer creates comprehensive content
- Quality Review: Reviewer validates and provides feedback
- Agents maintain memory of previous interactions
- Context is shared between agents for continuity
- Real-time status updates through WebSocket connection
The Researcher agent can:
- Perform Google web searches
- Extract and summarize web content
- Cite sources in research reports
WorkflowStudio/
βββ main.py # Core multi-agent system
βββ web_server.py # Flask web server
βββ start_web.py # Automated startup script
βββ config.py # Centralized configuration settings
βββ config.json # Additional configuration settings
βββ requirements.txt # Python dependencies
βββ static/ # Web assets (CSS, JS)
βββ templates/ # HTML templates
βββ workflows/ # Pre-built workflow definitions
POST /api/start_mission- Start a new missionPOST /api/run_custom_workflow- Execute custom workflowGET /api/ollama/models- Get available AI models
log_update- Real-time log messagesagent_status_update- Agent status changesmission_completed- Mission completionmission_error- Error notifications
Ollama Connection Failed
# Check if Ollama is running
curl http://localhost:11434/api/version
# Start Ollama if not running
ollama serveModel Not Found
# Download required models
ollama pull llama3.2:latest
ollama pull qwen3:latestWeb Search Not Working
- Ensure you have internet connectivity
- Check if Google search dependencies are installed:
pip install googlesearch-python beautifulsoup4Port 7777 Already in Use
# Kill process using port 7777
lsof -ti:7777 | xargs kill -9
# Or modify the port in config.py
# Edit config.py and change SERVER_PORT = 7777 to your preferred port- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter issues or have questions:
- Check the troubleshooting section above
- Review the console logs for error messages
- Ensure all prerequisites are properly installed
- Open an issue on the repository with detailed information
Future enhancements planned:
- Integration with additional AI models
- Advanced workflow branching and conditionals
- Multi-language support
- Cloud deployment options
- Enhanced collaboration features
- API integrations for external services
WorkflowStudio - Unleashing the power of coordinated AI agents for complex task completion! π