mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 07:19:35 +00:00
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
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
from app.workers.celery_app import celery_app
|
|
|
|
|
|
@celery_app.task(name="app.workers.message_tasks.send_scheduled_messages")
|
|
def send_scheduled_messages():
|
|
"""Send messages that are scheduled for delivery."""
|
|
# TODO: Query pending messages
|
|
# TODO: Send via appropriate channel (WhatsApp, Email, SMS)
|
|
# TODO: Update message status
|
|
pass
|
|
|
|
|
|
@celery_app.task(name="app.workers.message_tasks.send_whatsapp")
|
|
def send_whatsapp(phone: str, message: str, tenant_id: str):
|
|
"""Send a WhatsApp message via Business API."""
|
|
# TODO: Call WhatsApp Business API
|
|
# TODO: Store message record
|
|
# TODO: Handle delivery status
|
|
pass
|
|
|
|
|
|
@celery_app.task(name="app.workers.message_tasks.send_email")
|
|
def send_email(to_email: str, subject: str, body: str, tenant_id: str):
|
|
"""Send an email via configured provider."""
|
|
# TODO: Send via SMTP or SendGrid
|
|
# TODO: Store message record
|
|
pass
|
|
|
|
|
|
@celery_app.task(name="app.workers.message_tasks.send_sms")
|
|
def send_sms(phone: str, message: str, tenant_id: str):
|
|
"""Send SMS via Unifonic."""
|
|
# TODO: Call Unifonic API
|
|
# TODO: Store message record
|
|
pass
|