AI-powered prompt generator for creating architecturally sound web application prompts. Uses LLM function calling to conduct an intelligent interview and generate structured requirements.
- Natural conversation with adaptive follow-up questions
- LLM function calling for intelligent completion detection
- Generates prompts with architectural best practices
- One-click copy to clipboard
- Session persistence
Prerequisites: Node.js 18+, OpenAI or Anthropic API key
-
Install dependencies:
yarn install
-
Configure API key:
cp .env.local.example .env.local
Edit
.env.local:LLM_PROVIDER=openai OPENAI_API_KEY=sk-your-key
-
Run:
yarn dev
Build and run:
docker build -t prompt-o-matic .
docker run -p 8080:8080 -e OPENAI_API_KEY=sk-your-key prompt-o-maticOr use an env file:
docker run -p 8080:8080 --env-file .env prompt-o-maticThis is one suggested deployment approach. The app can be deployed to any container platform.
# Build for linux/amd64
docker build --platform=linux/amd64 --no-cache -t gcr.io/your-gcp-project/prompt-o-matic .
# Push to GCR
docker push gcr.io/your-gcp-project/prompt-o-matic
# Deploy to Cloud Run
gcloud run deploy prompt-o-matic \
--image gcr.io/your-gcp-project/prompt-o-matic:latest \
--platform managed \
--region us-east4 \
--allow-unauthenticated \
--update-secrets="OPENAI_API_KEY=YOUR_OPENAI_SECRET_KEY:latest"Note: Requires GCP project, gcloud CLI, and API key in Secret Manager. For Anthropic, use ANTHROPIC_API_KEY and set LLM_PROVIDER=anthropic.
The AI conducts a natural interview (5-7 questions) about your project and uses function calling to determine when it has enough information. It then generates a structured prompt with architectural best practices included.
- Architecture: See
ARCHITECTURE.mdfor detailed layer separation - Function Calling: See
FUNCTION_CALLING.mdfor implementation details - Quick Start: See
QUICKSTART.mdfor 5-minute setup guide
MIT