- Go to https://platform.openai.com/api-keys
- Create a new API key
- Copy the key (starts with
sk-)
- Open
backend/.envfile - Replace
your_openai_api_key_herewith your actual API key:OPENAI_API_KEY=sk-your-actual-key-here - Save the file
cd backend
python -m uvicorn main:app --reload --port 8000- Visit http://localhost:3000
- Submit a campaign for analysis
- You'll now get real AI-powered suggestions from GPT!
- If no API key is configured, the app automatically falls back to enhanced hardcoded suggestions
- The app works either way - perfect for demos without API costs!
Add your OpenAI API key as an environment variable in Vercel dashboard:
- Key:
OPENAI_API_KEY - Value:
sk-your-actual-key-here