system-prompts-and-models-o.../salesflow-saas/backend/app
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
..
agents fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
ai chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
api feat(dealix): email HTML + language detection + config fixes — 40/40 tests pass 2026-04-25 18:43:40 +00:00
core fix(db): prevent duplicate audit seed on repeated init_db() calls 2026-04-20 06:38:40 +00:00
flows chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00
integrations feat(dealix): email HTML + language detection + config fixes — 40/40 tests pass 2026-04-25 18:43:40 +00:00
intelligence fix(intelligence): contact_phone fix + Apollo/PDL enrichment + CSV export + stats endpoints 2026-04-22 05:30:14 +00:00
middleware feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
models feat(dealix): full automation outreach system — draft queue + pipeline + send 2026-04-25 17:33:30 +00:00
observability feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
openclaw feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
schemas feat(dealix): Tier-1 closure program — 10 tracks complete 2026-04-16 13:08:26 +00:00
services feat(dealix): multi-provider WhatsApp with auto-fallback chain 2026-04-25 18:10:50 +00:00
utils feat(dealix): D0 launch hardening — DLQ, PostHog, circuit breaker, pricing, runbook 2026-04-23 10:32:53 +00:00
workers fix(dealix): resolve Python deps, SQLAlchemy metadata, JWT, and frontend CI 2026-04-12 10:32:05 +00:00
__init__.py Add SalesMatic AI Sales SaaS Platform - Complete Foundation 2026-03-28 03:06:53 +00:00
config.py feat(dealix): email HTML + language detection + config fixes — 40/40 tests pass 2026-04-25 18:43:40 +00:00
database_rls.py feat(dealix): close ALL 4 Tier-1 runtime gaps (Programs E, F, G, K, J) 2026-04-17 10:12:04 +00:00
database.py chore(dealix): launch runbooks, staging env templates, SQLite init on startup, product journey test 2026-04-12 11:01:09 +00:00
main.py fix(health): add root /health for Railway healthcheck 2026-04-23 17:13:44 +03:00
sqlite_patch.py chore: snapshot Dealix salesflow phase2 for audit worktree 2026-04-04 18:04:21 +03:00