Claude
|
1450cfa2c8
|
feat(dealix): email HTML + language detection + config fixes — 40/40 tests pass
Module 1 — Email sender enhanced:
- HTML wrapper with Arabic RTL support
- List-Unsubscribe header for compliance
- send_email_batch() with configurable delays (2s between each)
- Gmail app password auth error message
- Plain text + HTML multipart
- Unsubscribe line auto-appended (ar/en)
Module 2 — Bilingual email generation:
- language field added to EmailGenerateRequest (ar/en)
- _detect_language() auto-detects from website domain
- _generate_email_en() produces full English email set
(subject, body, 2 follow-ups, call script, LinkedIn msg)
- Arabic remains default for Saudi domains
- SECTOR_PAIN_MAP_EN for 4 key sectors
Module 3 — Config fixes:
- OLLAMA_BASE_URL + OLLAMA_MODEL (were referenced but missing)
- LLM_CACHE_ENABLED + LLM_CACHE_TTL
- GREEN_API_INSTANCE_ID + GREEN_API_TOKEN
- Outreach rate limits: WHATSAPP_DAILY_LIMIT=15,
EMAIL_DAILY_LIMIT=50, EMAIL_BATCH_SIZE=10
All 40 tests pass (20 D0 + 6 fault + 14 automation).
https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
|
2026-04-25 18:43:40 +00:00 |
|
Claude
|
7f57803b22
|
feat(dealix): D0 launch hardening — DLQ, PostHog, circuit breaker, pricing, runbook
Close 6 critical launch gates for Primitive Launch Completion:
- DLQ (Dead Letter Queue): Redis-backed failure capture with retry drain
and admin endpoints (/admin/dlq/queues, /admin/dlq/{queue}/purge)
- PostHog client: zero-dependency HTTP funnel tracker with 16 event types
(landing_view → deal_won → payment_succeeded)
- Circuit breaker: in-memory fault isolation for external integrations
with registry and admin status endpoint (/admin/circuit-breakers)
- Pricing router: 3-tier plans (Starter 990/Growth 2490/Enterprise custom)
with Moyasar invoice checkout and webhook handler
- Config: added POSTHOG_API_KEY, MOYASAR_SECRET_KEY, DLQ settings
- Wiring: PostHog + DLQ initialized in main.py lifespan, pricing router
in API router
- RUNBOOK.md: 5 incident scenarios (service down, DB down, LLM down,
DB restore, version rollback)
- LAUNCH_GATES.md: 33-gate checklist across 7 categories
- 20 tests: all passing (DLQ 7, PostHog 4, circuit breaker 5, pricing 4)
https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
|
2026-04-23 10:32:53 +00:00 |
|
Claude
|
5f3b0b9a20
|
Migrate SalesMatic to Dealix + Add complete affiliate recruitment & AI sales system
- Rename all SalesMatic references to Dealix (ديل اي اكس) across frontend, backend, configs, and SVG logos
- Add complete automated affiliate recruitment system with:
- Job posting templates (Arabic/English) with ad variations for social media, LinkedIn, job boards
- Full onboarding package: welcome guide, company profile, step-by-step guide, FAQ (60+ Q&A), targets & earnings
- Sales scripts: phone calls, WhatsApp, in-person, email templates, objection handling (15+), closing techniques
- Targeting guides: social media, AI tools, Google, LinkedIn, local business, referral strategies
- Legal agreements: freelance contract, employment offer (10+ deals/month auto-hire), commission structure
- AI chatbot for affiliates: config, knowledge base, conversation flows
- Add professional sector presentations for 10 industries (healthcare, real estate, restaurants, retail, education, beauty, automotive, legal, construction, e-commerce)
- Add Gold Guarantee system (30-day full refund) with terms and conditions
- Add AI Sales Agents system: lead generation, WhatsApp/voice/email outreach, lead scoring, auto-booking
- Add backend: Affiliate & AI Conversation models, API endpoints, Celery worker tasks
- Update landing page with Gold Guarantee, Affiliate CTA, and AI Agents sections
https://claude.ai/code/session_01KnJgK7RwyeCvRZTRThHtfU
|
2026-03-30 15:49:58 +00:00 |
|
Claude
|
f1852c1121
|
Add SalesMatic AI Sales SaaS Platform - Complete Foundation
Full-stack AI-powered sales automation platform for Saudi SMEs:
Backend (FastAPI + PostgreSQL):
- Multi-tenant architecture with row-level isolation
- JWT auth with RBAC (owner/manager/agent/admin)
- Lead, Customer, Deal, Pipeline, Activity, Message, Proposal models
- Dashboard analytics API (overview, pipeline, revenue)
- WhatsApp Business API, Email (SMTP/SendGrid), SMS (Unifonic) integrations
- Celery + Redis workers for automated follow-ups and scheduled messages
- Property model for Real Estate module (Riyadh districts)
- Hijri date utilities, Arabic/English localization
Frontend (Next.js + Tailwind):
- Professional Arabic RTL landing page with 10 sections
- Brand identity: SalesMatic (سيلزماتك) with custom SVG logo
- Color system: Trust Blue #0F4C81, Growth Teal #00BFA6, CTA Orange #FF6B35
- IBM Plex Sans Arabic + Inter typography
- Responsive design, dark hero section, pricing table, FAQ
Industry Templates:
- Healthcare/Clinics: pipeline stages, WhatsApp message templates, auto-workflows
- Real Estate Riyadh: 20 districts, property tours, payment plans, matching
Infrastructure:
- Docker Compose (PostgreSQL, Redis, Backend, Celery, Frontend, Nginx)
- Nginx reverse proxy config
- Makefile for common operations
https://claude.ai/code/session_01LLR7jzpyNRwDA9kojtT3CW
|
2026-03-28 03:06:53 +00:00 |
|