AI-Powered Marketing Campaign Generator with Location-Based Visual Intelligence
AdHubby is a comprehensive marketing assistant that creates tailored marketing campaigns by combining AI-driven strategic analysis with location-specific visual generation. Perfect for businesses looking to create professional marketing materials with local relevance.
- AI-Powered Briefing Generation: Creates structured marketing analysis including problem identification, market facts, objectives, and target audience profiling
- Dual-Tone Intelligence: Combines AI-recommended visual styles with user preferences for optimal brand positioning
- Local Integration: Automatically identifies and incorporates 5 relevant local landmarks/hotspots into marketing visuals
- Strategic Enhancement: Deep competitive landscape and demographic analysis
Choose from 9 professional marketing formats:
- Social Media Carousels
- Static Social Ads
- Billboard/Poster Design
- Email Newsletter Design
- Print Brochure/One-Pager
- Website Banner/Hero Image
- Copy Deck
- Press Kit (Media Kit)
- Point-of-Sale Display Mockups
- Anime Style: Vibrant colors, stylized characters, dynamic compositions
- Cartoon Style: Playful, colorful, family-friendly with bold outlines
- Minimalist Illustration: Clean lines, simple shapes, modern aesthetic
- Watercolor Art: Soft, flowing colors with organic, artistic feel
- Vintage Poster: Retro design elements, classic typography, nostalgic appeal
- Python 3.8+
- Streamlit
- OpenAI Python client
- PIL (Pillow)
- Requests
- Clone the repository
git clone https://github.com/your-username/adhubby.git
cd adhubby
- Install dependencies
pip install streamlit openai pillow requests pathlib
- Configure API Keys -- we can get the CUSTOM BASE URL from (https://app.koyeb.com/services)
# Set environment variables
export OPENAI_API_KEY="fake" #leave it fake as it is not needed
export CUSTOM_BASE_URL="https://your-custom-llm-endpoint.com/v1"
export HF_TOKEN="your_hugging_face_token"
Or modify the constants in the code:
OPENAI_API_KEY = "fake" #leave it fake as it is not needed
CUSTOM_BASE_URL = "https://your-custom-endpoint.com/v1"
HF_TOKEN = "your_hugging_face_token"
streamlit run app.py
Navigate to http://localhost:8501
in your browser.
- Enter your business name, type, and location
- Be specific about location for better local integration
- Choose exactly 2 marketing deliverables from 9 available options
- Each deliverable is optimized for specific use cases
- Generates comprehensive marketing analysis
- Includes problem identification, market facts, objectives, and target audience
- Provides AI-recommended visual tone
- Choose your preferred visual style
- System combines your choice with AI recommendation
- Deep market analysis with local hotspot identification
- Competitive landscape insights
- Brand positioning strategy
- Generates tailored image prompts
- Optimized for your selected marketing formats
- Incorporates local landmarks as background elements
- Creates professional marketing visuals
- Download high-quality images for immediate use
Custom LLM API
- Model:
meta-llama/Llama-3.1-8B-Instruct
- Temperature: 0.7
- Max Tokens: 800-900 (depending on function)
Image Generation
- Service: Hugging Face Inference API
- Model:
stabilityai/stable-diffusion-xl-base-1.0
- Timeout: 60 seconds
adhubby/
โโโ app.py # Main Streamlit application
โโโ AdHubby_logo.png # Application logo
โโโ README.md # This file
โโโ requirements.txt # Python dependencies
- Restaurant
- Cafe
- Retail Store
- Service Business
- Tech Company
- Healthcare
- Fitness/Wellness
- Education
- Real Estate
- Entertainment
- Professional Services
- E-commerce
- Other
generate_marketing_briefing()
: Creates structured marketing analysisreason_and_enhance_briefing()
: Performs strategic enhancement with local insightsgenerate_deliverable_specific_prompt()
: Creates optimized image generation promptsgenerate_image()
: Handles visual creation via Hugging Face API
initialize_openai_client()
: Sets up custom LLM connectioncall_custom_llm()
: Handles API calls with error management
- API Connection Issues: Automatic retry logic with user feedback
- Image Generation Failures: Model loading detection and status updates
- Token Validation: Environment variable validation with setup guidance
- Input Validation: Business details and deliverable selection validation
- API keys stored as environment variables
- No data persistence between sessions
- Local image processing and download
- Secure API endpoint communication
- Session State Management: Efficient step-by-step processing
- Lazy Loading: Components load only when needed
- Error Recovery: Graceful handling of API timeouts
- Memory Management: Optimized image handling
- Quick professional marketing materials
- Location-specific campaign development
- Multi-format asset creation
- Client campaign development
- Rapid prototyping
- Location-based marketing strategies
- Brand development
- Market entry strategies
- Cost-effective marketing solutions
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For support, email [email protected] or create an issue in this repository.
- Additional visual style options
- Multi-language support
- Advanced analytics integration
- Batch processing capabilities
- API rate limiting optimization
- Custom brand template uploads
Name | |
---|---|
Tiffany | |
Ed Chin | |
Sindhu | |
Nihar |
Built with โค๏ธ by the AdHubby team
Made with Streamlit and powered by AI ๐คโจ