Discordant is a production-ready Discord-style communication platform with extensible n8n workflow automation. Built with Next.js 15, Prisma, MySQL, and LiveKit, it provides real-time chat, video/audio conferencing, and chat-driven AI workflows.
Each deployment creates a private communication hub with secure channels, file sharing, and intelligent automation. Perfect for consulting firms, agencies, and service providers who need AI-powered workflows in controlled environments.
- Main AI Agent (
discordant_agent_0011.json
) - Comprehensive business intelligence with Calendar, Search, Research, Gmail, YouTube, and Database tools - Image Processing (
discordant_images_flow_0001.json
) - Advanced image analysis and generation with GPT-4o Vision and DALL-E - Async Processing - All workflows run asynchronously with proper error handling and fallback mechanisms
- Extensible Architecture - Easy to add new specialized workflows for specific use cases
- Discord-style server and channel layout
- Live video, audio, and screen sharing via LiveKit
- Secure file uploads with UploadThing
- Advanced message search with member activity tracking
- Clerk authentication (production-grade)
- Frontend: Next.js 15 + Tailwind + shadcn/ui + Framer Motion
- Backend: Prisma ORM + MySQL
- Real-time: LiveKit WebRTC + Socket.IO
- Automation: n8n workflows with comprehensive tool integration
- Auth: Clerk.dev with role-based access
- Main AI Agent - Business intelligence with 15+ integrated tools
- Image Processing - Analysis, generation, and OCR capabilities
- Voice Integration - VAPI voice-to-chat processing
- Database Intelligence - Direct SQL execution with schema awareness
- Cold Start Resilience - Robust error handling and recovery
The workflow architecture supports advanced scenarios like:
- PDF Processing Pipelines - Extract images from tax documents, process individually, create research manuals
- Video Content Analysis - Extract keyframes, analyze in context, generate companion textbooks
- Document Intelligence - OCR with context awareness for comprehensive analysis
- Business Intelligence - Real-time data analysis with multiple data sources
- KISS Principle - Simple, descriptive naming without unnecessary complexity
- One Week Productivity - Comprehensive setup documentation for quick onboarding
- Memory-Optimized Development - PowerShell script for 8GB memory allocation
- HTTPS Development - Proper certificates for WebRTC and real-time features
- Share AI Responses - Public links for AI-generated content
- Rich Message Format - Support for both text and structured JSON metadata
- Perfect Markdown - Code blocks, tables, and syntax highlighting
- Workflow Inheritance - Server and channel-level automation configuration
- Advanced Search (Ctrl+S) - Content, member, date, and activity filters
- Member Presence - Real-time online status and activity tracking
- Smart Content - Auto-collapse long messages with "Show More"
- Enhanced Editor - Rich text with emoji picker and keyboard shortcuts
Simple, scalable foundation:
- Next.js 15 frontend with app router
- Prisma ORM + MySQL database
- LiveKit for WebRTC video/audio
- Clerk for authentication and sessions
- UploadThing for secure file handling
- n8n for workflow automation (self-hosted or cloud)
πΉ Alternative Payload CMS version available at spaces.kendev.co
- Node.js 18+ (8GB memory recommended for development)
- MySQL 8.0+
- n8n instance (local or hosted)
- Clerk account
- UploadThing account
- LiveKit account
git clone https://github.com/your-org/discordant.git
cd discordant
npm install
# .env.local
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_key
CLERK_SECRET_KEY=your_clerk_secret
UPLOADTHING_SECRET=your_uploadthing_secret
UPLOADTHING_APP_ID=your_uploadthing_app_id
LIVEKIT_API_KEY=your_livekit_key
LIVEKIT_API_SECRET=your_livekit_secret
NEXT_PUBLIC_LIVEKIT_URL=your_livekit_url
NEXT_PUBLIC_SITE_URL=https://localhost:3000
DATABASE_URL=mysql://user:password@localhost:3306/discordant
N8N_API_URL=http://localhost:5678
N8N_API_TOKEN=your_n8n_token
npx prisma db push
Import these workflows from /docs/workflows/
:
discordant_agent_0011.json
- Main AI agent with comprehensive toolsdiscordant_images_flow_0001.json
- Image analysis and generation
Windows (Recommended):
.\start-dev.ps1
Standard:
npm run dev:https-auto
Visit https://localhost:3000
- Ctrl+S - Advanced message search
- Enter - Send message
- Shift+Enter - New line
- Escape - Cancel/close
Comprehensive business intelligence with:
- π Calendar Management - View, create, update, delete events
- π Database Intelligence - Direct SQL execution with schema awareness
- π Web Research - Tavily AI for real-time market intelligence
- π§ Email Integration - Gmail and SMTP for communications
- π¬ YouTube Processing - Video transcript analysis and insights
- π’ Client Research - GSA qualification and business analysis
- π Server Analytics - Member management and activity tracking
Advanced visual intelligence with:
- π Image Analysis - GPT-4o Vision for detailed analysis
- π¨ Image Generation - DALL-E for custom image creation
- π OCR Processing - Text extraction from documents
- π Chart Analysis - Business intelligence from visual data
- π Auto-Detection - Smart routing between analysis and generation
The architecture supports advanced use cases:
- Document Processing - PDF β Image extraction β Individual analysis β Research manual
- Video Intelligence - Keyframe extraction β Context analysis β Companion textbook
- Business Intelligence - Multi-source data β Analysis β Actionable insights
/docs/workflows/ # n8n workflow configurations
βββ discordant_agent_0011.json # Main AI agent
βββ discordant_images_flow_0001.json # Image processing
/components/ # React components
/app/ # Next.js 15 app router
/lib/ # Utilities and services
/prisma/ # Database schema
start-dev.ps1 # Memory-optimized dev script
- Client Communication Portals - Private Discord-style environments
- AI-Powered Business Intelligence - Automated research and analysis
- Voice-Enabled Workflows - VAPI integration for voice commands
- Document Processing - Image analysis and OCR capabilities
- Team Collaboration - Real-time chat with workflow automation
- Tax Document Processing - PDF β Image extraction β Analysis β Research manual
- Video Content Analysis - Keyframe extraction β Context analysis β Textbook generation
- Advanced OCR Workflows - Context-aware document processing
- Multi-Modal Intelligence - Combined text, image, and voice processing
Ready to deploy Discordant in your environment?
I can help with:
- Private deployment and infrastructure setup
- Custom workflow development for your specific use cases
- n8n integration and automation design
- Voice AI implementation with VAPI
- Advanced document processing pipelines
- White-label customization and branding
π§βπ» Connect on LinkedIn for consulting and implementation services.
Originally inspired by Code with Antonio, evolved into an enterprise-grade platform for conversational automation and intelligent workflow processing.
Built with the KISS principle - keeping it simple, scalable, and extensible.