Version: Phase 1 Foundation
Growth Forge is an AI-native marketing intelligence platform designed to automate and optimize digital marketing workflows.
The vision is to build an enterprise-grade system that combines:
- SEO intelligence
- Content automation
- Marketing campaign management
- Competitor analysis
- AI agents
- Analytics
- Autonomous marketing workflows
Growth Forge is designed as a platform where humans and AI agents collaborate to execute marketing strategies.
Growth Forge is built around a central concept:
Project Knowledge → AI Intelligence → Marketing Execution → Analytics Feedback
Every business, brand, website, campaign, keyword, and content asset becomes part of a connected knowledge system.
Future AI agents will use this knowledge to:
- Analyze competitors
- Discover keywords
- Generate content strategies
- Optimize SEO
- Create campaigns
- Monitor performance
- Recommend actions
Implemented:
- Spring Boot enterprise foundation
- Common architecture layer
- Database auditing framework
- Standard API response model
- Exception handling framework
- Repository abstraction
- Service abstraction
- Project management module foundation
- Flyway database migration setup
Growth Forge follows a:
Modular Monolith Architecture
The initial implementation uses a single Spring Boot application with clearly separated business modules.
This allows:
- Faster development
- Easier maintenance
- Clear domain boundaries
- Future microservice migration
API Gateway
|
Growth Forge Platform
|
------------------------------------------------
Project Engine
Brand Engine
SEO Engine
Content Engine
Marketing Engine
AI Engine
Analytics Engine
Automation Engine
------------------------------------------------
|
PostgreSQL + Vector Database
|
Local / Cloud AI Models
- Java 21+
- Spring Boot 3.x
- Spring Data JPA
- Spring Security
- Hibernate
- Lombok
- MapStruct
- Bean Validation
- PostgreSQL
- Flyway Migration
- Future pgvector integration
Planned:
- Ollama
- Local LLM models
- Embedding models
- Retrieval Augmented Generation (RAG)
- AI Agents
Current:
- Thymeleaf
- Bootstrap
Future:
- React
- Modern SPA dashboard
growthforgeplatform
common
|
├── config
├── entity
├── enums
├── exception
├── repository
├── response
├── service
└── util
project
|
├── controller
├── dto
├── entity
├── mapper
├── repository
└── service
The common module provides reusable enterprise components.
Location:
common/entity/BaseEntity
Purpose:
Every database entity inherits common fields.
Fields:
id
createdAt
updatedAt
createdBy
updatedBy
version
deleted
active
Benefits:
- Audit tracking
- Soft delete
- Optimistic locking
- Future AI actor tracking
Implemented using:
Spring Data JPA Auditing
Components:
AuditingConfig
ApplicationAuditorAware
BaseEntity
Automatically manages:
created_at
updated_at
created_by
updated_by
Current default actor:
system
Future:
human user
marketing agent
seo agent
automation service
All APIs follow a common response model.
Example:
{
"success": true,
"message": "Operation successful",
"data": {}
}Implemented:
ApiResponse
PageResponse
ErrorResponse
Centralized using:
@RestControllerAdvice
Implemented exceptions:
BusinessException
ResourceNotFoundException
All errors return standardized responses.
Implemented:
BaseRepository
Provides:
- Standard CRUD
- Soft delete support
- Active record filtering
Example:
ProjectRepository extends BaseRepository
Implemented:
BaseService
BaseServiceImpl
Purpose:
Provide consistent business layer patterns.
Every future module follows:
Controller
|
Service
|
Repository
|
Database
The Project module is the first business domain.
A Project represents a marketing initiative.
Examples:
Growth Forge Marketing Platform
YouTube Channel Growth
SEO Campaign
Brand Marketing Project
Table:
projects
Fields:
id
name
slug
description
website
industry
country
language
timezone
currency
status
created_at
updated_at
created_by
updated_by
version
deleted
active
Implemented endpoints:
POST /api/projects
GET /api/projects
GET /api/projects/{id}
PUT /api/projects/{id}
DELETE /api/projects/{id}
Implemented:
Example:
Input:
Growth Forge AI Marketing Platform
Generated:
growth-forge-ai-marketing-platform
Projects cannot have duplicate slugs.
Deletion does not remove data.
Instead:
deleted=true
This preserves history.
Database changes are controlled by Flyway.
Migration structure:
db/migration
V1__create_projects_table.sql
V2__add_audit_user_columns.sql
Hibernate mode:
ddl-auto=validate
Database schema is controlled only by migrations.
HTTP Request
|
ProjectController
|
ProjectService
|
ProjectMapper
|
ProjectEntity
|
Repository
|
PostgreSQL
Database
|
Entity
|
Mapper
|
Response DTO
|
API Response
Project | | 1 | +----------------------1 | BrandProfile | ----------------------------------- | | | | | | | | BrandVoice Audience Products BusinessGoals
Project (Aggregate Root) │ └── Brand (Aggregate Root) | │ | ├── BrandProfile (1:1) | ├── BrandVoice (1:1) | ├── TargetAudience (1:N) | ├── ProductService (1:N) | ├── BusinessGoal (1:N) | ├── Competitor (1:N) | │ | └── BrandKnowledgeService │ ├── Website (1:N) ├── SEO (1:N) ├── Content (1:N) └── Campaign (1:N)
- brand_profile
- brand_voice
- target_audience
- products
- customer_personas
Features:
- Brand knowledge base
- AI brand understanding
Table:
brand_profile
Fields:
id
name
slug
description
Table: brand_voice
Fields:
id
brand_id
tone
writing_style
reading_level
preferred_pronouns
avoid_words
preferred_words
emoji_usage
call_to_action_style
communication_style
Table: target_audience
Fields:
id
brand_id
persona_name
age_group
occupation
industry
pain_points
goals
interests
preferred_channels
country
language
Table: product_service
Fields:
id
brand_id
name
category
description
price
target_customer
unique_selling_points
status
Table: business_goal
Fields:
id
brand_id
goal_type
description
target_value
current_value
target_date
POST /api/brands
GET /api/brands/{id}
PUT /api/brands/{id}
DELETE /api/brands/{id}
POST /api/brands/{id}/voice
GET /api/brands/{id}/voice
POST /api/brands/{id}/audience
GET /api/brands/{id}/audience
POST /api/brands/{id}/products
GET /api/brands/{id}/products
Every AI prompt will automatically include the brand profile. Example:
System Prompt
Brand Name: Growth Forge
Industry: AI Marketing
Tone: Professional
Audience: Marketing Managers
Mission: Simplify AI-powered marketing automation.
Products: Growth Forge Platform
Features:
- Website management
- Crawling
- SEO audit
- Technical analysis
Tables:
- websites
- website_pages
- seo_audit
- broken_links
Features:
- Keyword research
- Competitor analysis
- Ranking tracking
- Topic clusters
Tables:
- keywords
- keyword_clusters
- backlinks
- rankings
Features:
- AI article generation
- Social posts
- Video scripts
- Content calendar
Tables:
- content
- content_versions
- templates
Features:
- Campaign management
- Funnels
- Email automation
- Customer journeys
AI Agents:
Responsibilities:
- Keyword discovery
- Ranking analysis
- SEO recommendations
Responsibilities:
- Generate articles
- Optimize content
Responsibilities:
- Campaign planning
- Audience targeting
Responsibilities:
- Performance monitoring
- Recommendations
Integrations:
- Google Analytics
- Search Console
- YouTube Analytics
- Social platforms
- Advertising platforms
Growth Forge becomes an autonomous marketing operating system.
The final architecture:
Business Knowledge
|
AI Agents
|
Marketing Actions
|
Performance Data
|
Continuous Optimization
The platform continuously learns and improves marketing outcomes.
Growth Forge follows:
- Domain-driven design
- Clean architecture
- Enterprise Java practices
- AI-first design
- Open-source technology
- Local AI capability
- Extensible modules
GitHub
│
│
┌─────────┴─────────┐
│ │
▼ ▼
Pull Request develop push
│ │
▼ ▼
CI Workflow CI Workflow
│ │
▼ ▼
Self-Hosted Mac Self-Hosted Mac
│ │
▼ ▼
Maven Verify Maven Verify
│ │
├── Unit Tests ├── Unit Tests
│ ├── Integration Tests
│ │ ├── PostgreSQL
│ │ ├── Redis
│ │ └── Flyway
│ │
└── Integration └── Docker Build
Tests │
▼
Docker Compose
│
┌────────────┼────────────┐
│ │ │
▼ ▼ ▼
PostgreSQL Redis Spring Boot
│ │ │
│ │ ▼
│ │ Health Check
│ │ │
└────────────┴────────────┘
│
▼
Local Deployment
#