system-prompts-and-models-o.../salesflow-saas/backend
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
..
alembic feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
app feat(dealix): email HTML + language detection + config fixes — 40/40 tests pass 2026-04-25 18:43:40 +00:00
knowledge_base 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
scripts feat(dealix): k6 smoke test, SLO definition, fault-injection tests, env update 2026-04-23 10:46:57 +00:00
tests feat(dealix): follow-ups + outreach stats + 14 automation tests (40/40 pass) 2026-04-25 17:44:02 +00:00
.env.phase2.example chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
alembic.ini Add SalesMatic AI Sales SaaS Platform - Complete Foundation 2026-03-28 03:06:53 +00:00
campaign_results.json 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
Dockerfile fix(docker): CPU-only torch + multi-stage build to fix Railway 4GB limit 2026-04-23 13:33:09 +00:00
main.py feat(intelligence): Revenue Intelligence OS — Lead Machine complete 2026-04-20 06:35:59 +00:00
pyproject.toml feat(dealix): execute ALL automatable blueprint tasks 2026-04-17 10:39:21 +00:00
pytest.ini fix(ci): restore pytest.ini to match passing commit + clean CI YAML 2026-04-17 05:54:32 +00:00
railway.toml fix(docker): CPU-only torch + multi-stage build to fix Railway 4GB limit 2026-04-23 13:33:09 +00:00
requirements-dev.txt fix(ci): pin pytest==8.3.4 + pytest-asyncio==0.24.0 exact versions 2026-04-17 05:02:44 +00:00
requirements.txt fix(ci): add import diagnostics + pin pytest-cov + verbose error output 2026-04-17 05:46:10 +00:00
seed_database.py 🚀 Complete Dealix AI Sales Empire Update - Security Scrubbed, Lead Engine & Multi-Channel Ready 2026-04-02 17:17:13 +03:00
update_requirements.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00