Architecture Design and Implementation of a Multimodal E-commerce Image-Text Generator

    Producing e-commerce image-text materials involves multiple steps that often require repetitive communication and rework. Multimodal generation technology offers a way to streamline these workflows, but moving from a prototype to a reliable commercial system requires strict engineering constraints. This article explores the architecture design and implementation practices of a multimodal image-text generator, covering input design, pipeline orchestration, copy and image generation strategies, quality evaluation, and phased rollout. It emphasizes the separation of factual data from creative expression to ensure that generated materials are authentic, compliant, and ready for business delivery.

    E-commerce image-text production typically involves photography, retouching, selling point extraction, copywriting, layout design, and file management. For e-commerce teams with diverse product categories and frequent updates, the real time sink is not any single step, but the continuous transfer of information, result confirmation, and rework between these steps.

    Multimodal generation technology can link some of these workflows: users upload product images, provide the product name and verified information, and the system generates copy drafts and various visual solutions, followed by human review and publishing. However, “being able to generate” does not equal “being ready for commercial use.” A reliable image-text generator must integrate product authenticity, visual consistency, content compliance, and delivery completeness into a unified engineering workflow.

    This article discusses how to transition from a demo prototype to a sustainable business system by addressing these general technical challenges.

    1. Defining the Goal: Generating Material Drafts, Not Product Facts

    An image-text generator is suited for three types of tasks:

    The first is expression conversion. Transforming existing product materials into titles, body text, and tags of different lengths, tones, and scenarios.

    The second is visual ideation. Generating scenario drafts (e.g., home, promotional, hand-drawn) around the product subject and providing different compositions for designers to choose from.

    The third is delivery organization. Organizing images, copy, review records, and version information into a downloadable material package.

    These tasks share a common prerequisite: the core facts of the product must come from trusted inputs. A model cannot autonomously determine a lotion’s formula, target audience, or efficacy simply because a bottle appears in a photo; nor can it assume a beverage contains specific ingredients just because such flavors are common in that category.

    Therefore, the system should explicitly distinguish between the “fact layer” and the “expression layer.” The fact layer records the product name, specifications, ingredients, verified selling points, and approved marketing claims. The expression layer handles title organization, scenario descriptions, and visual styles. Expression can be rich, but facts must not be arbitrarily expanded.

    2. Input Design: Complementing Photos with Text

    2.1 Supporting both capture and local upload
    Camera capture is suitable for quickly recording physical objects, while local upload is ideal for using existing product images. Both entry points can feed into a unified image preprocessing pipeline, including file type checking, dimension checking, orientation correction, and necessary compression.

    If the input is intended for formal production, users should be prompted to check for image clarity, product occlusion, packaging glare, and background clutter. Low-quality images not only affect recognition but also increase the model’s need to guess details during generation.

    The upload process must also consider privacy. Photos may contain faces, addresses, order information, or other irrelevant content. The system should provide cropping and masking capabilities and clarify the storage duration and deletion methods for the materials.

    2.2 Product names should only serve as positioning clues
    When multiple objects appear in a single photo, a user inputting “body lotion” can help the system locate the target, but the name alone does not guarantee accurate recognition.

    A more robust interaction approach is for the system to provide candidate subjects or recognition summaries, allowing the user to confirm the target area. If there are multiple similar packages, the user should be required to make a selection rather than automatically initiating batch generation.

    Unrecognizable packaging text should be marked as unknown. Even if the model outputs seemingly plausible text, it should not be treated as verified product information.

    2.3 Reducing ambiguity with structured data
    Free text is easy to input but tends to mix product facts, industry background, and writing requirements. Developers can split these into distinct fields in the UI:

    • Product name and category;
    • Verified specifications, ingredients, and selling points;
    • Usage scenarios and target audience;
    • Desired expression style;
    • Forbidden words or unverified efficacy claims;
    • Image quantity, aspect ratio, and delivery requirements.

    These fields belong to the application layer design and do not represent proprietary parameters of any model. Their purpose is to make subsequent processing easier to validate and to help users trace the source of the content.

    3. Overall Architecture: Breaking Down Generation into Verifiable Stages

    A practical processing pipeline can be designed as follows:
    Input & Preprocessing -> Product Information Confirmation -> Content Planning -> Copy & Visual Generation -> Automated Checking -> Human Editing -> Material Export.

    It is not recommended to let the model complete all tasks via a single long prompt. While single-shot generation is convenient for demonstrations, it becomes difficult to pinpoint issues—such as factual errors, image distortion, or layout failures—and impossible to re-run only the failed components.

    A more reasonable approach is to first produce a “content plan.” For example, if the user needs five images, the system first determines the purpose of each:

    1. Highlighting the product subject.
    2. Showing the usage scenario.
    3. Presenting verified selling points.
    4. Providing stylized visuals.
    5. Supplying details or acting as a closing image.

    The key here is not fixing the number at five, but defining clear responsibilities for each material. The image count can vary, but it should not result in repeatedly generating identical compositions.

    A task orchestration layer manages the state of each stage. Copy tasks and some visual tasks can execute in parallel; tasks dependent on product confirmation results should wait for confirmation to complete. Using common components like message queues, object storage, logging services, and monitoring alerts can support asynchronous processing and fault tracing.

    4. Copy Generation: Fact-Checking Before Expression Optimization

    4.1 Establishing a citable fact list
    Before generating copy, the system should compile a verified list of product facts and clearly identify which content belongs solely to background knowledge.

    For instance, if the input describes common vanilla, cinnamon, or citrus flavors found in carbonated beverages, it does not mean the current product possesses all these flavors. The system should classify such descriptions under “category background” unless the user provides information confirming they apply to the current product.

    This distinction prevents a common issue: the model accurately captures keywords but mistakenly turns them into product selling points.

    4.2 Generating titles, body text, and tags separately
    Titles should serve to summarize information and guide reading, avoiding unprovable absolute claims. Body text needs to connect real selling points with specific usage scenarios. Tags should describe the product category, content theme, and applicable scenarios, avoiding unrelated trending keywords.

    The UI can provide individual editing and copying options, but editing actions should be saved as new content versions. This facilitates modifications by operations staff and allows tracing the differences before and after changes.

    4.3 No fabricated experiences or effects
    Without real user experience evidence, copy should not be written with first-person conclusions like “personally tested and effective” or “significantly improved after continuous use.” The system can generate product introductions or scenario-based suggestions, but it cannot fabricate experiences for the user.

    For products involving efficacy, health, or safety, stricter vocabulary checks and manual review rules must be set. Automated checks can only assist in identifying risks and cannot replace the business team’s confirmation of marketing claims.

    5. Image Generation: Product Consistency Over Visual Flair

    5.1 The product subject must not be stylized
    Scenario images can alter the background, lighting, and composition, but the product packaging, color, proportions, and key identifiers should remain consistent. Especially when the packaging itself serves product recognition, minor detail changes can be misleading.

    If the current generation approach cannot stably preserve the subject, a more conservative path can be adopted: extract the product subject first, generate the background next, and composite them last. This reduces the uncertainty introduced by the model redrawing the product.

    Post-composition, edges, shadows, and light source direction must still be checked. An image with a clear subject but an obvious “floating” effect is also unsuitable for direct delivery.

    5.2 White background images require a separate pipeline
    White background product images and scenario marketing images have different goals. The former emphasizes subject integrity, clean backgrounds, and dimension standards; the latter emphasizes atmosphere and visual storytelling.

    Therefore, white background images are better suited for completion via subject segmentation, edge refinement, solid color background composition, and necessary shadow adjustment, rather than relying entirely on open-ended image generation. Specific dimensions, margins, and background requirements for different publishing channels should be provided and configured by the business team; do not assume all channels use the same standard.

    Transparent packaging, hair-like edges, and highly reflective materials are difficult to segment and require manual review.

    5.3 Separating text and image processing
    Generated text in images may exhibit stroke anomalies, typos, or unnatural layouts. If selling point text carries important information, it is recommended to first generate a background image without text, and then overlay titles and descriptions using a deterministic layout process.

    The layout stage should check text length, contrast, line breaks, margins, and subject occlusion. For different aspect ratios, the layout must be recalculated rather than simply scaling the entire image.

    “Whether to display selling point text” can be a UI option, but a more advanced design keeps the text layer independent, allowing users to modify the copy without regenerating the background.

    6. Quality Evaluation: Verifying Correctness and Usability

    Picking a few good-looking images cannot prove the system has stable production capability. Test samples should cover different categories, packaging materials, shooting conditions, and levels of information completeness.

    It is recommended to check the following dimensions:

    • Factual accuracy: Does the copy contain selling points, specifications, or ingredients not supported by the input?
    • Subject consistency: Does the image alter the product’s appearance, or miss key components or packaging structures?
    • Image-text consistency: Do the title, body text, and image correspond? Is there a mismatch where the copy describes one scenario but the image shows another?
    • Visual usability: Is the subject clear, the background clean, the text readable, and the cropping reasonable?
    • Delivery completeness: Are the requested images and text complete, and can the files open normally?
    • Engineering stability: Can failed tasks be retried? Do local modifications affect other materials? Does repeated submission lead to duplicate generation?

    Efficiency must also be measured based on actual workflows. You can record the total time from submission to review approval, manual editing time, single task cost, and the ratio of final usable materials. Without a clear baseline, sample size, and statistical scope, one should not claim a specific multiple of efficiency improvement.

    7. Editing and Export: Integrating Results into Business Workflows

    Generation completion is merely an intermediate state; passing review is the delivery condition.

    The editing interface should support single-image regeneration, local copy modification, version switching, and review status marking. When a user modifies a selling point, the system should alert which images or body text still reference the old content, preventing inconsistent information within the same material package.

    The export package can include image files, copy text, a material list, and necessary usage instructions. File names should reflect the material’s purpose, sequence, and version to facilitate team collaboration. Files that fail review should be excluded or stored separately with a clear status.

    Additionally, generation tasks should be linked to input versions. If the user changes the product image or modifies specifications, old results cannot continue to be treated as official materials for the current version.

    8. Implementation Strategy: Addressing High-Frequency Needs First

    In the early stages, there is no need to cover all categories and visual styles. A more feasible path is to select a few high-frequency product categories and establish stable material templates, scenario templates, and review rules.

    The first phase validates the complete loop of input, generation, editing, and export; the second phase optimizes subject fidelity, text layout, and failure retries; the third phase introduces batch processing, permission management, cost tracking, and quality monitoring.

    The principle running through the entire process is: let the model handle flexible expression, let deterministic programs handle rules and delivery, and let humans handle key facts and final review.

    The value of a multimodal e-commerce image-text generator lies not in how many seemingly exquisite images it outputs at once, but in whether it can continuously produce authentic, editable, traceable, and business-compliant materials. Only by combining fact constraints, visual engineering, and content governance can generation capabilities be transformed into stable production efficiency.