Wachato CRM: versión marca blanca configurable por entorno

CRM de WhatsApp, Instagram, Messenger y TikTok de Wachato, basado en Vocero
CRM (MIT), listo para desplegar un negocio por instancia:

- Marca blanca: nombre, color, moneda y giro del negocio desde el .env
  (BRAND_NAME, BRAND_ACCENT, BRAND_CURRENCY, BUSINESS_DESCRIPTION); se
  aplican una vez y luego manda Ajustes → Marca.
- Superadmin sembrado al arrancar (SUPERADMIN_*), idempotente.
- Servicios y precios, campos personalizados, exportación a Excel/PDF,
  respaldos, agenda, atribución de anuncios y transcripción de notas de voz.
- Diseño con contraste AAA, tema claro y oscuro.
- Despliegue: docker compose (Caddy opcional), plantillas para paneles con
  reverse proxy (deploy/aapanel), imagen publicada en GHCR por la CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andres Corazon Santana AquinoandClaude Opus 5.5 committed 2026-12-04 15:54:58 -04:00
commit 6edc6020d5
1316 files changed
+308543

No files matched your search

@@ -0,0 +1,53 @@
---
name: whatsapp-saas-meta-infra
description: Implement and troubleshoot WhatsApp SaaS infrastructure on Meta Graph API and WhatsApp Cloud API. Use when building Embedded Signup, OAuth callbacks, webhook verification, message status handling, data deletion or deauthorize callbacks, Supabase persistence, or Vercel deployment for a product where each customer connects their own WhatsApp Business account.
---
# WhatsApp SaaS Meta Infra
Use this skill to build the infrastructure layer of a WhatsApp SaaS, not just isolated API calls.
## Workflow
1. Identify the missing layer:
- Meta app configuration,
- Embedded Signup,
- token exchange,
- webhook ingestion,
- Supabase schema,
- message sending,
- or data deletion / deauthorize handling.
2. Read the matching reference file:
- `references/architecture.md` for the overall system design
- `references/implementation-sequence.md` for the recommended build order
- `references/meta-config.md` for Meta app settings, callback URLs, and review-facing config
- `references/api-blueprint.md` for backend route contracts and responsibilities
- `references/supabase-schema.md` for SQL and data modeling
3. Implement the missing layer in the user's stack.
4. Validate the full chain, not only the isolated endpoint.
## Guardrails
- Keep secrets server-side.
- Do not equate `accepted` with `delivered`.
- Save enough identity data to support deauthorize callbacks later.
- Make webhooks idempotent and upsert by `message_id`.
- Revalidate local connection state against Meta when assets may have been deleted.
## Minimum infrastructure standard
Treat these as the baseline:
- a real OAuth or Embedded Signup completion path,
- a backend code exchange endpoint,
- a webhook with GET verification and POST ingestion,
- Supabase tables for connections and message events,
- real message send actions,
- message status persistence,
- a deauthorize or data deletion path for compliance.
## Output style
- Favor architecture and implementation order over scattered snippets.
- Show which part runs in frontend, backend, Meta, and database.
- When writing code, produce production-leaning defaults rather than demo-only code.