customer_support.json


Overview

The customer_support.json file defines a comprehensive intelligent customer service workflow system. Its primary function is to process user queries by classifying their intent via a large language model (LLM) and directing the requests to specialized agents for tailored responses. This system supports multilingual titles and descriptions (English and Chinese) and is designed to simulate a professional, empathetic, and context-aware customer support experience.

The workflow is structured as a directed graph of interconnected components including:

This modular design enables flexible, multi-path processing of user intents and ensures that queries are handled by the most appropriate expert agent.


Detailed Component Descriptions

1. Begin Component


2. Categorize Component


3. Retrieval Component


4. Agent Components

Each Agent represents a specialized chatbot with distinct roles, system prompts, and LLM settings.


a) Agent: DullTownsHope ("Soothe mood")


b) Agent: KhakiSunsJudge ("Product info")


c) Agent: TwelveOwlsWatch ("Causal chat")


5. Message Components


a) Message: BreezyDonutsHeal


b) Message: GreatDucksArgue ("Response")


Global Variables


Workflow / Execution Flow

  1. Conversation Start: The begin node greets the user and collects their query.

  2. Intent Classification: The Categorize node classifies the user's intent into one of four categories.

  3. Routing:

    • If contact, respond with fixed messages (Message:BreezyDonutsHeal).

    • If casual, forward query to casual chat agent (Agent:TwelveOwlsWatch).

    • If complain, forward to empathetic agent (Agent:DullTownsHope).

    • If product related, retrieve relevant documents (Retrieval:ShyPumasJoke), then forward to product info agent (Agent:KhakiSunsJudge).

  4. Response Generation: Agents generate responses based on their respective roles and LLM prompts.

  5. Response Aggregation: Message:GreatDucksArgue aggregates outputs from the agents for final user output.

  6. End of Turn: The system awaits the next user input or ends the session.


Implementation Details and Algorithms


Interaction with Other System Components


Usage Example

Suppose a user inputs the query:

"How do I install the new model X100 on the wall?"

  1. begin greets and receives the query.

  2. Categorize classifies it as product related.

  3. Retrieval fetches relevant product documents related to "model X100 installation."

  4. Agent:KhakiSunsJudge uses the retrieved info and the query to compose an accurate, factual answer.

  5. The answer is combined with outputs from other agents (empty in this case) in Message:GreatDucksArgue.

  6. The final response is shown to the user.


Visual Diagram: Component Interaction Flowchart

flowchart LR
    Begin["Begin\n(Start Conversation)"]
    Categorize["Categorize\n(Intent Classification)"]
    ContactMsg["Message: BreezyDonutsHeal\n(Contact Replies)"]
    CasualAgent["Agent: TwelveOwlsWatch\n(Casual Chat)"]
    ComplainsAgent["Agent: DullTownsHope\n(Empathetic Support)"]
    Retrieval["Retrieval: ShyPumasJoke\n(Product Info Retrieval)"]
    ProductAgent["Agent: KhakiSunsJudge\n(Product Info Advisor)"]
    FinalMsg["Message: GreatDucksArgue\n(Response Aggregation)"]

    Begin --> Categorize

    Categorize -- contact --> ContactMsg

    Categorize -- casual --> CasualAgent
    Categorize -- complain --> ComplainsAgent
    Categorize -- product related --> Retrieval

    Retrieval --> ProductAgent

    CasualAgent --> FinalMsg
    ComplainsAgent --> FinalMsg
    ProductAgent --> FinalMsg

Summary

The customer_support.json file describes a modular, LLM-powered intelligent customer support workflow that classifies user intents and routes queries to specialized agents for empathetic, casual, contact-related, or product information responses. The workflow integrates a knowledge retrieval system and multiple finely tuned LLM prompts to ensure accurate, context-aware, and user-friendly interactions.

This file serves as the core orchestration layer for an AI-driven customer service system, enabling scalable and maintainable conversational experiences.


End of Documentation for customer_support.json