WhatsApp SaaS Meta Infra
Use this skill to build the infrastructure layer of a WhatsApp SaaS, not just isolated API calls.
Workflow
- Identify the missing layer:
- Meta app configuration,
- Embedded Signup,
- token exchange,
- webhook ingestion,
- Supabase schema,
- message sending,
- or data deletion / deauthorize handling.
- Read the matching reference file:
references/architecture.mdfor the overall system designreferences/implementation-sequence.mdfor the recommended build orderreferences/meta-config.mdfor Meta app settings, callback URLs, and review-facing configreferences/api-blueprint.mdfor backend route contracts and responsibilitiesreferences/supabase-schema.mdfor SQL and data modeling
- Implement the missing layer in the user's stack.
- Validate the full chain, not only the isolated endpoint.
Guardrails
- Keep secrets server-side.
- Do not equate
acceptedwithdelivered. - 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.