CCC_CrossCulture-Copywriter:基于 AI Agent 的跨文化营销文案生成平台

让小语种品牌的海外文案,像本地人写的一样地道

Branch2Tags0
FilesLast commitLast update
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago

English | 中文

CrossCulture Copywriter

Warning: This is an AI Agent project.


Cross-Cultural Marketing Copywriting Agent

Make overseas copy for Chinese brands sound like authentic marketing expressions used in local markets.


📋 Table of Contents


🌟 Project Overview

CrossCulture Copywriter is an AI Agent-powered cross-cultural marketing copy generation platform, designed specifically for global businesses and independent developers. It's more than just a translation tool—it's an intelligent assistant that deeply understands target market cultures, helping you generate high-quality copy that aligns with local cultures, platform rules, and marketing goals with one click.

Core Philosophy: More than just translation, true localization.


✨ Features

🌍 Cultural Awareness

  • Deep analysis of target market cultural backgrounds and consumer habits
  • Identification and avoidance of potential cultural sensitivities
  • Provides marketing insights tailored to local markets

📝 Intelligent Workflow (8 Steps to Authentic Copy)

  1. Product Understanding - Deep analysis of product selling points and core advantages
  2. Market Insight - Research on target market cultural preferences
  3. Literal Translation - Provides basic translation as reference
  4. Copy Strategy - Develops localized marketing strategies
  5. Localized Copy - Generates authentic target language copy
  6. Rewrite Notes - Explains the reasoning behind localization
  7. Risk Review - Automatically identifies potential cultural risks
  8. A/B Testing - Provides multi-version comparison testing suggestions

🖼️ Smart Image Recognition

  • Supports product image uploads
  • AI automatically identifies product labels and keywords
  • Image information automatically integrated into copy generation

🎯 Multi-Platform Adaptation

Supports major e-commerce and social platforms:

  • TikTok Shop
  • Amazon
  • Shopify
  • Shopee
  • Lazada
  • eBay
  • Instagram
  • Facebook

🌐 Multi-Language Support

Supports 8 major languages:

  • English
  • Spanish
  • French
  • German
  • Japanese
  • Korean
  • Portuguese
  • Arabic

📊 Target Market Coverage

Covers 10+ major global markets:

  • United States
  • United Kingdom
  • Southeast Asia
  • Europe
  • Japan
  • Korea
  • Middle East
  • Latin America
  • Australia

🛠️ Tech Stack

Backend

  • Framework: Flask 3.1.3 (using Flask open-source web framework to implement network services)
  • AI Service: GMI Cloud Inference Engine
  • Models:
    • deepseek-ai/DeepSeek-V4-Pro
    • openai/gpt-4o-mini
    • openai/gpt-4o

Frontend

  • Native: JavaScript, CSS3, HTML5
  • Features: SSE streaming output, responsive design

🚀 Quick Start

Requirements

  • Python 3.8+
  • pip

Installation Steps

  1. Clone Repository
git clone <repository-url>
cd CCC_CrossCulture-Copywriter
  1. Create Virtual Environment
python -m venv .venv
  1. Activate Virtual Environment

Windows:

.\.venv\Scripts\Activate.ps1

Linux/Mac:

source .venv/bin/activate
  1. Install Dependencies
pip install -r requirements.txt
  1. Configure Environment Variables
cp .env.example .env

Edit the .env file and fill in your GMI Cloud API Key:

GMI_API_KEY=your_real_api_key_here
  1. Run Application
python run.py
  1. Access Application

Open your browser and visit: http://localhost:5000


⚙️ Configuration

GMI Cloud Configuration

Configuration Description Default
GMI_API_KEY GMI Cloud API key Required
GMI_API_BASE_URL API base URL https://api.gmi-serving.com/v1
GMI_MODEL_DEFAULT Default inference model deepseek-ai/DeepSeek-V4-Pro
GMI_MODEL_CREATIVE Creative copy model openai/gpt-4o-mini
GMI_MODEL_REVIEW Risk review model openai/gpt-4o
GMI_MODEL_IMAGE Image recognition model openai/gpt-4o-mini
GMI_MAX_TOKENS Max tokens 2048
GMI_TIMEOUT_SECONDS Request timeout 120
GMI_FORCE_MOCK Force mock mode 0 (off)

Flask Configuration

Configuration Description Default
FLASK_ENV Runtime environment development
FLASK_DEBUG Debug mode 0 (off)
FLASK_HOST Listen address 0.0.0.0
FLASK_PORT Listen port 5000
SECRET_KEY Application secret key Randomly generated

Image Configuration

Configuration Description Default
IMAGE_MAX_UPLOAD_MB Max upload image size 10

📁 Project Structure

CCC_CrossCulture-Copywriter/
├── app/
│   ├── __init__.py          # Flask application factory
│   ├── agent_workflow.py    # Agent workflow core logic
│   ├── config.py            # Configuration management
│   ├── demo_data.py         # Demo data
│   ├── gmi_client.py        # GMI Cloud API client
│   ├── image_recognition.py # Image recognition service
│   ├── image_suggestions.py # Image suggestions generation
│   ├── prompt_templates.py  # Prompt template library
│   ├── routes.py            # Route definitions
│   ├── schemas.py           # Data models
│   ├── trace_logger.py      # Call logging
│   ├── static/
│   │   ├── script.js        # Frontend interaction logic
│   │   └── style.css        # Style file
│   ├── templates/
│   │   └── index.html       # Main page template
│   └── data/                # Runtime log directory
│       ├── .gitkeep
│       ├── runs.jsonl
│       └── traces.jsonl
├── docs/                    # Project documentation
│   ├── IMAGE_COPY_FIX_2026-05-24.md
│   ├── PROJECT_AUDIT_2026-05-24.md
│   └── REPAIR_SUMMARY.md
├── test/                    # Test scripts
├── .env.example             # Environment variable example
├── .gitignore               # Git ignore config
├── LICENSE                  # License
├── plan.md                  # Project plan
├── requirements.txt         # Python dependencies
├── run.py                   # Application entry point
├── README.md                # English documentation (this file)
└── README_CN.md             # Chinese documentation

🔌 API Usage

Generate Copy API

Endpoint: POST /api/generate

Content-Type: application/json

Request Body:

{
  "product_name": "Portable Juicer Cup",
  "category": "Small Appliances",
  "selling_points": "USB charging, 304 stainless steel blade, portable design",
  "target_market": "United States",
  "target_language": "English",
  "platform": "TikTok Shop",
  "goal": "conversion",
  "tone_style": "social",
  "image_base64": "base64 encoded image data (optional)"
}

Response: SSE streaming output

Event types:

  • step_start - Step started
  • token - Streaming token
  • result - Final result
  • error - Error message

Image Recognition API

Endpoint: POST /api/recognize-image

Content-Type: multipart/form-data

Request Parameter: file (image file)

Response:

{
  "success": true,
  "data": {
    "product_keywords": [...],
    "labels": [...],
    "scene_description": "...",
    "suggestions": {...}
  }
}

🏆 Competition Info

This project is an entry for the "Number One Builder" Global Challenge - Beijing Stop.

Event Information

  • Organizers: AtomGit × GMI Cloud
  • Competition Time: May 2026

Project Highlights

  1. API Call Quality: Deep integration with GMI Cloud Inference Engine, using multi-model collaborative architecture
  2. Overseas Scene Value: Focused on global marketing scenarios, covering major global markets and platforms
  3. Product Completeness: Complete web application with frontend, backend, and full workflow
  4. Innovation: Smart image recognition + multi-step Agent workflow, providing true localization rather than simple translation

📄 License

This project is licensed under the MIT License.


👥 Team

CrossCulture Copywriter Development Team


📞 Contact

For questions or suggestions, please contact us via:

  • Submit an Issue
  • Send an email

Thank you for using CrossCulture Copywriter!


Introduction

让小语种品牌的海外文案,像本地人写的一样地道

Customize your domain