All channel brains built and connected:
email_brain.py (194 lines):
- Inbound: classify (inquiry/support/complaint/partnership/unsubscribe)
- Outbound: cold intro, follow-up, demo, proposal, nurture sequence
- 8 Arabic email templates
linkedin_brain.py (147 lines) — ASSIST MODE ONLY:
- Connection request drafts (300 char limit)
- InMail drafts, post generation, outreach queue
- All outputs are DRAFTS for human review (LinkedIn policy compliant)
social_media_brain.py (176 lines):
- Instagram (2200 chars + 30 hashtags), TikTok (300 chars),
Twitter (280 chars), Snapchat (250 chars)
- Inbound DM handling, content generation, content calendar
- 5 Saudi content themes
channel_orchestrator.py (167 lines):
- Routes ANY inbound to the right brain automatically
- Multi-channel campaign generation (Email day 1 → LinkedIn day 3 → WhatsApp day 5)
- Unified contact timeline across all channels
- Channel health monitoring
channels.py (95 lines, 6 endpoints):
- POST /channels/inbound — smart routing
- POST /channels/outreach — generate for any channel
- POST /channels/campaign — multi-channel
- GET /channels/timeline/{contact_id} — unified history
- POST /channels/content — social content generation
- GET /channels/health — all channels status
Total: 7 AI brains (WhatsApp + Email + LinkedIn + Instagram + TikTok + Twitter + Snapchat)
NO COMPETITOR IN THE WORLD offers this.
https://claude.ai/code/session_01LsnvBa7HwF5hs99VZbgLGj
|
||
|---|---|---|
| .. | ||
| .claude | ||
| .github/workflows | ||
| affiliate-system | ||
| ai-agents | ||
| backend | ||
| docs | ||
| frontend | ||
| guarantee | ||
| knowledge-base | ||
| memory | ||
| nginx | ||
| openclaw | ||
| presentations | ||
| sales_assets | ||
| scripts | ||
| seeds | ||
| .env.example | ||
| .gitignore | ||
| absolute_sync.py | ||
| AGENTS.md | ||
| ai_outreach.py | ||
| ceo_campaign.py | ||
| check_server.py | ||
| CLAUDE.md | ||
| clean_restart.py | ||
| complete_fix.py | ||
| CONTRIBUTING.md | ||
| DEALIX_VISION.md | ||
| dealix-frontend.zip | ||
| deploy_keys_nginx.py | ||
| deploy_now.py | ||
| deploy_outreach.py | ||
| deploy_server.sh | ||
| direct_fix.py | ||
| docker-compose.yml | ||
| final_deploy.py | ||
| final_empire_fix.py | ||
| final_fix.py | ||
| fix_backend_final.py | ||
| fix_email_validator.py | ||
| fix_imports.py | ||
| fix_server.py | ||
| force_start.py | ||
| grand_launch_test_v2.py | ||
| launch.ps1 | ||
| LICENSE | ||
| Makefile | ||
| MASTER-BLUEPRINT.mdc | ||
| push_all.py | ||
| push_config.py | ||
| push_empire.py | ||
| push_updates.py | ||
| README.md | ||
| rebuild_containers.py | ||
| rebuild_now.py | ||
| SECURITY.md | ||
| set_ultramsg_keys.py | ||
| setup_ultramsg.py | ||
| simulation_grand_launch.py | ||
| status_check.py | ||
| surgical_fix.py | ||
| sync_all.py | ||
| test_all.py | ||
| true_final.py | ||
| upload_deps_rebuild.py | ||
| verify-launch.ps1 | ||
| wire_whatsapp.py | ||
Dealix - Saudi AI Revenue Operating System
AI-powered revenue operations platform built for the Saudi market. Dealix combines lead management, affiliate recruitment, sales automation, meeting scheduling, deal tracking, and commission processing into a single operating system driven by specialized AI agents.
Tech Stack
| Layer | Technology |
|---|---|
| Backend | FastAPI (Python 3.11+) |
| Frontend | Next.js 15 (React, TypeScript) |
| Database | PostgreSQL 15 |
| Cache / Broker | Redis 7 |
| Task Queue | Celery 5 |
| Reverse Proxy | Nginx |
| Containerization | Docker Compose |
Quick Start
git clone https://github.com/VoXc2/dealix.git
cd dealix
cp .env.example .env # fill in your secrets
docker-compose up --build
Backend: http://localhost:8000/docs
Frontend: http://localhost:3000
Customer onboarding (B2B): GET /api/v1/customer-onboarding/journey and docs/CUSTOMER_OS_ONBOARDING_AR.md. Dashboard tab: مسار التشغيل مع العميل.
Launch verification: see docs/LAUNCH_CHECKLIST.md. From salesflow-saas: copy frontend/.env.example to frontend/.env.local and set NEXT_PUBLIC_API_URL. Run .\verify-launch.ps1 -HttpCheck -SoftReady (use -BaseUrl if the API is not on port 8000).
CI: GitHub Actions workflow .github/workflows/dealix-ci.yml (repo root) runs backend pytest and frontend lint + build when salesflow-saas/** changes.
DB migrations: from backend, set PYTHONPATH to the backend folder (e.g. set PYTHONPATH=%CD% on Windows), then alembic upgrade head. For Postgres schema evolution, prefer alembic revision --autogenerate against a dev database after the baseline revision.
Project Structure
salesflow-saas/
backend/ # FastAPI application (routes, models, services, agents)
frontend/ # Next.js dashboard and client portal
ai-agents/ # AI agent definitions, prompts, and orchestration
affiliate-system/ # Affiliate recruitment, tracking, commissions
guarantee/ # Gold guarantee claim processing
knowledge-base/ # RAG knowledge articles and sector data
presentations/ # Proposal and pitch generation
nginx/ # Reverse proxy configuration
seeds/ # Database seed data
docs/ # Architecture, API map, data model, deployment notes
docker-compose.yml # Full-stack orchestration
Makefile # Developer shortcuts
Key Features
- Multi-Tenant - Isolated data per organization with role-based access
- Arabic-First - UI, AI prompts, and WhatsApp flows in Arabic with full English support
- WhatsApp Business API - Automated outreach, conversations, and booking via WhatsApp
- 18 AI Agents - Lead qualification, outreach, objection handling, compliance, fraud review, and more
- Affiliate System - Recruitment, onboarding, performance tracking, and tiered commissions
- Gold Guarantee - Claim processing, dispute resolution, and automated refunds
- Meeting Booking - AI-driven scheduling integrated with calendar providers
- Deal Pipeline - Stage-based tracking with revenue attribution
- Commission Engine - Automated calculation, payout scheduling, and dispute handling
- Sector Intelligence - Industry-specific strategies, assets, and scoring
What Is Excluded from This Repository
This is a public repository for visibility and version tracking. The following are never committed:
.envfiles and environment secrets- Private keys, certificates, and SSL materials (
.pem,.key,.crt) - Log files and runtime output
- Docker volumes and persistent data
- Third-party API credentials
See SECURITY.md for reporting vulnerabilities.
Safety Note
This repository is public. No secrets, credentials, or private customer data are stored here. All sensitive configuration is injected at deploy time via environment variables and secret managers.
Maintainer
Sami Assiri / VoXc2