dymond9159/AI-SaaS-Project-Api1 — reverse-engineered prompt
Reverse engineered prompt
Build me the backend for an AI SaaS product. I want an API where a web app can create customers, connect a WhatsApp chatbot, send user messages to OpenAI, save conversations in Postgres, and manage paid access through Stripe.
Please use NestJS with TypeScript, Prisma and PostgreSQL, and expose both REST endpoints and GraphQL where it makes sense. Keep it clean enough that I can plug a frontend into it later. Include database models, migrations, environment variables, example API calls, and simple error handling.
Add a basic health check and clear README steps so I can run it locally. For Stripe, set up subscriptions and webhooks at a practical starter level. For WhatsApp, make the webhook flow ready to receive and reply to messages. Look up current docs online if you need to.
Want more depth? Deep Reverse