Multimodal Knowledge Fusion and Multi-Platform Architecture for Intelligent Customer Service Systems

    This article outlines a practical design for an intelligent customer service system that handles compound inquiries, builds and updates product knowledge from text, images, and video, improves response policies through feedback, and maintains consistent data boundaries and security controls across multiple channels. It describes a five-layer architecture, semantic understanding and compound-query decomposition, multimodal knowledge extraction and alignment, incremental updates, reinforcement-learning-based policy optimization, and staged rollout with safety constraints. Readers gain an architecture-level view of how the components fit together and where validation, fallback, and human review are required.

    1. Background and Problem Definition

    Enterprise customer service teams have long faced three types of pressure. First, inquiries are increasingly compound: a single sentence may contain questions about price, inventory, parameter comparisons, and after-sales terms at the same time. Second, product information is scattered across detail-page text, images, videos, and specification tables, which makes manual organization costly and updates prone to lag. Third, the same enterprise often operates multiple channels at once, so when users switch between platforms, service records are broken and repeated explanations occur frequently.

    To address these three problems, a practical intelligent customer service system needs to solve four things at the same time: accurately understand user intent, automatically produce and continuously update knowledge from source materials, improve response policies based on feedback, and maintain unified data boundaries and security controls in a multi-platform environment. The following sections break down the system design along these lines.

    2. Overall Architecture

    The system can be divided into five layers.

    • Access layer: uniformly receives messages from web pages, applications, mini-programs, and third-party instant messaging channels, and completes protocol conversion, identity recognition, and rate limiting.
    • Conversation orchestration layer: maintains multi-turn dialogue state and handles intent decomposition, slot filling, context trimming, and human-handoff decisions.
    • Capability engine layer: includes semantic understanding, knowledge retrieval, response generation, and policy optimization modules.
    • Knowledge layer: stores independent knowledge bases for multiple departments, structured product knowledge, and vector indexes.
    • Security and audit layer: handles authentication, encryption, permission checks, and operation logs.

    The diagram is as follows:

    1. [Multi-platform channels] -> [Unified access gateway] -> [Conversation orchestration] -> [Capability engines] -> [Knowledge layer]
    2. | |
    3. [Policy feedback loop] [Security and audit]

    The core value of the layered design is clear boundaries. Models can be replaced, knowledge bases can be scaled independently, and channel access can be added without changing the core logic of conversation state.

    3. Semantic Understanding and Compound Inquiry Parsing

    3.1 Why Compound Inquiries Are Difficult

    A single-intent classification model usually maps one sentence to one label. For a question such as “How many batteries does this device support, how long is the warranty, and can I get an invoice?”, it can cover only one of those items. The correct approach is to first split the intent, then retrieve and generate an answer for each sub-question separately, and finally merge them into a coherent response.

    3.2 Integrating Large Language Models

    Large language models are suitable for semantic summarization, coreference resolution, and understanding colloquial expressions. In engineering practice, it is advisable to integrate them through a unified model adapter layer. Prompt templates, output format validation, and timeout fallback should be placed inside the adapter layer, while business code depends only on standard interfaces. In this way, when the model version changes, the impact is limited to the adapter layer.

    The following is a simplified example of splitting a compound question:

    1. def split_compound_query(llm, query: str) -> list[dict]:
    2. prompt = (
    3. "Split the user question into independent sub-questions. "
    4. "Output a JSON array where each item contains intent and text fields.\n"
    5. f"User question: {query}"
    6. )
    7. raw = llm.complete(prompt)
    8. items = safe_parse_json(raw) # Validate structure; degrade to a single intent on failure
    9. return items if items else [{"intent": "general", "text": query}]

    This code reflects two points. First, model output must undergo structural validation and cannot be trusted directly. Second, there must be an explicit fallback path when parsing fails, so that the user can at least receive a usable answer.

    3.3 Multi-Turn Dialogue Management

    The difficulty of multi-turn dialogue lies in coreference and state continuation. When a user says “Can that one be cheaper?”, the system needs to determine which product in the preceding text “that one” refers to. A common approach is to maintain a conversation state object that records recently mentioned entities, confirmed slots, and unfinished sub-questions, and to set a context window. Historical content beyond the window retains only a summary, avoiding unlimited prompt growth.

    3.4 Evaluation Metrics

    Evaluation of compound-question recognition should be layered. Intent split accuracy measures whether sub-questions are complete, slot extraction accuracy measures whether key information is correct, and multi-turn consistency measures whether answers in the same conversation contradict each other. The evaluation set should cover long-tail phrasings from real logs rather than only template questions; otherwise, evaluation results will be noticeably optimistic.

    4. Multimodal Knowledge Fusion

    4.1 Data Sources and Challenges

    Product information is usually distributed across three types of carriers. The text portion includes titles, selling-point descriptions, and specification tables. The image portion includes parameter screenshots, packaging information, and product photos, where key parameters often appear as images. The video portion includes feature demonstrations and installation instructions. There are many cross-references among the three; for example, the body text may say “see Figure 2,” while Figure 2 is the dimension table.

    Parsing each modality separately would lose these reference relationships. Therefore, after parsing, cross-modal alignment is needed to associate references in the text with the corresponding images or video segments.

    4.2 Parsing Pipeline

    A multimodal knowledge fusion module usually includes the following steps:

    1. Crawling: obtain text nodes, image URLs, and video URLs according to the page structure, and record the source and crawl time.
    2. Cleaning: remove navigation, advertisements, and duplicate content, and unify units and encoding.
    3. Image understanding: perform text recognition on specification images, generate descriptions for product photos, and annotate each result with a confidence score.
    4. Video processing: extract key frames at fixed intervals and extract key points together with subtitles or speech transcription.
    5. Cross-modal alignment: associate references in the text with images and video segments to form an evidence chain.
    6. Structured output: write parameters, after-sales policies, and other information into a unified knowledge structure.

    4.3 Automatically Generating a Product Knowledge Base

    The key to knowledge base generation lies in the structured schema and validation rules. The following example defines a product parameter record:

    1. from dataclasses import dataclass, field
    2. @dataclass
    3. class ProductFact:
    4. product_id: str
    5. name: str # Parameter name, for example "rated power"
    6. value: str # Parameter value stored as a string with its unit
    7. source: str # Evidence source: page_text / image_ocr / video_frame
    8. confidence: float # Confidence between 0 and 1
    9. evidence_refs: list[str] = field(default_factory=list)
    10. def validate_fact(fact: ProductFact) -> bool:
    11. return bool(fact.value) and 0.0 <= fact.confidence <= 1.0

    Low-confidence facts should not enter the online knowledge base directly; instead, they should enter a human review queue. After-sales policy information especially needs this treatment, because incorrect return or exchange instructions can directly trigger complaints and disputes.

    4.4 Incremental Updates

    Product pages change frequently, so the knowledge base needs to support incremental updates. The hash value of a page snapshot can be used to determine whether the content has changed, and only the changed parts need to be parsed again. Historical versions should also be retained so that the materials behind a particular customer service answer can be traced.

    5. Feedback-Based Policy Optimization

    5.1 Problem Modeling

    Response policy optimization can be modeled as a reinforcement learning problem. The state includes the user question type, conversation turn, knowledge hit status, and user emotion signals. Actions include answering directly, asking a clarifying question, providing multiple candidate answers, and handing off to a human. The reward is determined by business outcomes.

    5.2 Reward Design

    The reward function determines the direction in which the system optimizes. If only “conversation ended” is rewarded, the system may learn to end conversations too early in order to reduce the statistical average duration. A more reliable approach is to combine multiple signals: whether the issue was resolved, whether the user repeated the same question within a short period, whether a human handoff was required, and the satisfaction score. The weight of each item should be adjusted according to the business stage and reviewed regularly.

    5.3 Safety Constraints and Rollout Process

    Online exploration carries risk. Before a policy is launched, it should first be evaluated on offline replay data, then released to a small traffic percentage in a canary rollout, and the resolution rate and transfer behavior should be observed.