TThis project automates the process of generating and refining creative ideas for marketing campaigns. It leverages various AI models to create, refine, and visualize campaign concepts, demonstrating the integration of multiple AI tools and APIs.
- Generate initial marketing campaign ideas based on product input
- Refine ideas using a choice of AI models (Claude 3.5 Sonnet, GPT-3.5/4, Gemma 2, or Llama)
- Create visual representations of refined ideas using DALL-E
- Compile results into a formatted PDF report
- Python 3.7+
- OpenAI API key
- Anthropic API key (for Claude)
- DALL-E API key
- Additional API keys or model weights for Gemma 2 and Llama (if using)
-
Clone this repository:
git clone https://github.com/yourusername/marketing-campaign-generator.git cd marketing-campaign-generator
-
Install required packages:
pip install openai anthropic requests fpdf
-
Set up your API keys:
- Create a
.env
file in the project root - Add your API keys:
OPENAI_API_KEY=your_openai_api_key ANTHROPIC_API_KEY=your_anthropic_api_key DALL_E_API_KEY=your_dall_e_api_key
- Create a
-
Run the script:
python marketing_campaign_generator.py
-
Enter the product details when prompted.
-
Choose the AI model for idea refinement (default is Claude 3.5 Sonnet).
-
The script will generate ideas, refine them, create a visual representation, and compile a PDF report.
- Input product details
- Generate initial ideas (GPT-3.5)
- Refine ideas (Choice of Claude 3.5 Sonnet, GPT-3.5/4, Gemma 2, or Llama)
- Create visual representation (DALL-E)
- Compile results into a PDF report
- To use Gemma 2 or Llama, implement the respective functions in the script and add necessary API calls or model inference code.
- Adjust prompts in the
generate_initial_ideas
and refinement functions to tailor the output to your needs. - Modify the
compile_report
function to change the format or content of the final report.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.