customer_review_analysis.json


Overview

The customer_review_analysis.json file defines a sophisticated automated workflow designed for Customer Support purposes. Its primary function is to classify customer reviews automatically using a Large Language Model (LLM) and then route these classified reviews via email to the appropriate departments for handling.

This automation helps streamline customer feedback processing by:

The workflow is implemented as a Directed Acyclic Graph (DAG) of components, each representing a discrete step or action in the processing pipeline. These components interact via well-defined inputs and outputs.


Detailed Components Description

The file describes a DSL (Domain-Specific Language) workflow with multiple components interconnected. Below is a detailed explanation of each component and its parameters.


1. Begin Component (begin)

Usage Example:
User inputs a review text at this node to start the analysis.


2. Categorize Component: Categorize:RottenWallsObey

Usage Example:
Input: "I have issues with my product."
Output: category_name = "Negative review" → routes to further categorization.


3. Categorize Component: Categorize:FourTeamsFold

Usage Example:
Input: "The product easily broke down."
Output: category_name = "After-sales issues" → routes email to product experience department.


4. Email Components

There are three email components responsible for sending categorized review notifications to different departments:

All email components share a similar parameter structure:

Parameter

Type

Description

Default/Example

cc_email

string

CC recipient emails

"" (empty)

content

string

Email body content (from review input)

"{begin@1}"

email

string

Sender email address

"" (empty)

outputs

object

Contains success boolean indicating send status

true

password

string

SMTP password

"" (empty)

sender_name

string

Name of email sender

"" (empty)

smtp_port

number

SMTP server port

465

smtp_server

string

SMTP server address

"" (empty)

subject

string

Email subject

"" (empty)

to_email

string

Recipient email address

"" (empty)


5. StringTransform Component: StringTransform:FuzzySpiesTrain


6. Message Component: Message:ShaggyAnimalsWin


Important Implementation Details and Algorithms


Interaction with Other System Parts


Workflow Diagram

flowchart TD
    Begin["Begin\n(Input review)"] --> Categorize1["Categorize: RottenWallsObey\n(Positive / Negative)"]
    Categorize1 -- Negative review --> Categorize2["Categorize: FourTeamsFold\n(After-sales / Transportation)"]
    Categorize1 -- Positive review --> EmailPositive["Email: WickedSymbolsLeave\n(Positive review email)"]

    Categorize2 -- After-sales issues --> EmailAfterSales["Email: SharpDeerExist\n(After-sales email)"]
    Categorize2 -- Transportation issue --> EmailTransportation["Email: ChillyBusesDraw\n(Transportation email)"]

    EmailPositive --> StringMerge["StringTransform: FuzzySpiesTrain\n(Merge email success flags)"]
    EmailAfterSales --> StringMerge
    EmailTransportation --> StringMerge

    StringMerge --> Message["Message: ShaggyAnimalsWin\n(Display aggregated result)"]

Summary

The customer_review_analysis.json file defines a multi-stage automated customer review classification and routing workflow using a Large Language Model to categorize reviews and send corresponding emails. It is designed to improve customer support efficiency by automatically directing feedback to the relevant internal teams based on review sentiment and issue type.


Usage Example

Suppose a customer submits the review:

"The transportation is delayed too much. I can't find where is my order now."

Workflow Execution:

  1. Input the review in Begin.

  2. Categorize:RottenWallsObey identifies it as a Negative review.

  3. Categorize:FourTeamsFold further classifies it as a Transportation issue.

  4. An email is sent via Email:ChillyBusesDraw to the transportation department.

  5. Email success flags are merged and displayed in the final Message node.


This modular and extensible structure allows for easy updates, such as adding more categories or adjusting email parameters, to tailor the workflow to evolving business needs.