evaluateCustomService

public abstract void evaluateCustomService(String kefuId, boolean isRobotResolved, String knowledgeId)

Evaluates the customer service bot for separate evaluation of human and bot interactions.

When establishing a customer service connection, if the returned is EVA_SEPARATELY, call this method to evaluate the human customer service.

Parameters

kefuId

The customer service ID, obtained after applying for activation on the RCdeveloper console.

isRobotResolved

Indicates whether the bot resolved the issue. true if resolved, false otherwise.

knowledgeId

The message ID for bot evaluation. This parameter is valid only when all of the following 4 conditions are met; otherwise, pass an empty string. When valid, the value of sid described in condition 4 should be passed as the knowledgeId:

1. Bot mode is enabled.

2. The message is newly received, not a historical message loaded from the database.

3. robotSessionNoEva is set to true in , which is a parameter returned in the onSuccess() callback of after the customer service is successfully started.

4. The Extra field of MessageContent contains both robotEva and sid fields.


public abstract void evaluateCustomService(String kefuId, int source, String suggest, String dialogId)

Evaluates the human customer service agent, used for separate evaluation of human and bot agents.

When establishing a customer service connection, if the returned is EVA_SEPARATELY, call this method to evaluate the human customer service agent.

Parameters

kefuId

The customer service agent ID, obtained after applying for and enabling the service on the RCdeveloper console.

source

The rating, ranging from 1 to 5, where 5 is the highest and 1 is the lowest.

suggest

The customer's feedback and suggestions for the human customer service agent.

dialogId

The conversation ID. This parameter is valid when the customer service backend actively pulls the evaluation; otherwise, pass an empty string. When the customer service actively pulls the evaluation, it will trigger the onPullEvaluation callback in and return the dialogId.


public abstract void evaluateCustomService(String kefuId, int source, CSEvaSolveStatus resolvestatus, String tagText, String suggest, String dialogId, String extra)

Evaluates the customer service bot, allowing separate evaluations for human and bot interactions.

When establishing a customer service connection, if the returned is EVA_SEPARATELY, this method is called to evaluate the human customer service representative.

Parameters

kefuId

The customer service ID, obtained after applying for and enabling the service on the RCdeveloper console.

source

The star rating, ranging from 1 to 5, where 5 is the highest and 1 is the lowest.

resolvestatus

The resolution status CustomServiceConfig.CSEvaSolveStatus.

tagText

Tags for ratings below 5 stars, separated by commas.

suggest

Customer feedback and suggestions for the human customer service representative.

dialogId

The conversation ID. This parameter is valid when the customer service backend actively requests an evaluation; otherwise, pass an empty string. When the customer service actively requests an evaluation, the onPullEvaluation callback is triggered, returning the dialogId.

extra

Reserved for future extensions; can be passed as null.


public abstract void evaluateCustomService(String kefuId, int source, CSEvaSolveStatus solveStatus, String suggest, String dialogId)

Evaluation for chatbot customer service, used for unified evaluation of both human and chatbot interactions.

When establishing a customer service connection, if the returned is EVA_UNIFIED, call this method to perform the evaluation.

Parameters

kefuId

The customer service ID, obtained after applying for activation on the RCdeveloper console.

source

The star rating, ranging from 1 to 5, where 5 is the highest and 1 is the lowest.

solveStatus

The problem resolution status . If there is no resolution status, any value can be passed here, and the SDK will not process it.

suggest

The customer's feedback and suggestions regarding the human customer service.

dialogId

The conversation ID. This parameter is valid when the customer service backend actively pulls the evaluation; otherwise, pass an empty string. When the customer service actively pulls the evaluation, it will trigger the onPullEvaluation callback in , and the dialogId will be returned.