An AI-powered copywriting assistant that generates marketing copy using Google's Gemini and ElevenLabs APIs.
This application helps marketers and content creators generate professional marketing copy for various campaign types. It uses Google's Gemini AI for text generation and ElevenLabs for voice command processing.
- Context-Aware Copy Generation: Upload brand guidelines, product information, or other context documents in PDF or TXT format
- Multiple Campaign Types: Generate copy for:
- Welcome Emails
- First Visit
- Intro Offers
- Lapsed Users
- Membership Upsells
- Voice Command Refinements: Upload audio files to refine your copy using voice commands
- Structured Output: All generated copy includes subject lines, preview text, headlines, body copy, and CTAs
- Python 3.7+
- Google Gemini API key (https://ai.google.dev/)
- ElevenLabs API key (https://elevenlabs.io/)
- Clone this repository
- Copy
.env.exampleto.envand fill in your API keys:cp .env.example .env - Install dependencies:
pip install -r requirements.txt - Run the app:
python app.py - Access the web interface at
http://localhost:5000or use the public URL provided by Gradio
- Upload Context: Start by uploading brand context files (PDF or TXT) to provide the AI with information about your brand, products, or services
- Select Campaign Type: Choose the type of marketing copy you want to generate from the available tabs
- Generate Copy: Click the "Generate" button to create copy based on your context and selected campaign type
- Refine with Voice: Optionally, upload an audio file with verbal instructions to refine the generated copy
app.py: Main application file with Gradio UI setuputils.py: Utility functions for API interactions and file processing.env: Environment variables for API keys (not committed to version control)requirements.txt: Python dependencies
- API Key Issues: Ensure your API keys are correctly set in the
.envfile - PDF Processing: Make sure the PDF files are text-based and not scanned images
- Voice Commands: Audio files should be clear and in MP3 or WAV format
- Never commit your
.envfile with real API keys to public repositories - The application uses environment variables to keep API keys secure
[Your license information here]