# Operation
We integrate announcements, guides, news, etc. with the customer service system at the same entrance, greatly improving the efficiency of information dissemination, so that users can understand the latest product trends more conveniently, and communicate with the customer service team more directly and efficiently.
# API
# ShowOperation()
You can call the AIHelp operation module by calling this function:
AIHelpSupport.ShowOperation();
Or, you could customize the Operation module as you need:
ConversationConfig operationConversationConfig = ConversationConfig.Builder()
.SetAlwaysShowHumanSupportButtonInBotPage(true)
.SetWelcomeMessage("This is a welcome message for operation.")
.build();
OperationConfig config = OperationConfig.Builder()
.SetConversationTitle("Hi, there")
.SetSelectIndex(2)
.SetConversationConfig(operationConversationConfig)
.build();
AIHelpSupport.ShowOperation(config);
# Definition
# operationConfig
- Type:
OperationConfig
- Default:
null
- Details: Configuration for Operation module
# conversationConfig
- Type:
ConversationConfig
- Default:
null
- Details: Configuration for customer service comes from Operation module
# selectIndex
- Type:
int
- Default:
0
- Details: Default select tab index in operation
# conversationTitle
- Type:
string
- Default:
HELP
- Details: The tab title for customer service in operation
# conversationIntent
- Type:
ConversationIntent
- Default:
ConversationIntent.BOT
- Details: Intent for customer service display
# alwaysShowHumanSupportButtonInBotPage
- Type:
boolean
- Default:
false
- Details: Entrance visibility for human support button in bot page
# welcomeMessage
- Type:
string
- Default:
''
- Details: Custom welcome message for human support
# storyNode
- Type:
string
- Default:
''
- Details: Entrance node for specific story line, a.k.a: story lines' user say
# Scenario
Let’s assume a scenario where the application has different support and care schemes for different levels of users.
1、For users with level > 50, conversation tab is selected by default, and configure their conversation title to "Support";
2、At the same time, these users can choose to contact the manual customer service directly, and there is a special welcome message for them.
Then, the code example for this scenario is as follows:
public void showOperation(int level) {
OperationConfig.Builder operationBuilder = new OperationConfig.Builder();
if (level > 50) {
operationBuilder.SetSelectIndex(Integer.MAX_VALUE);
operationBuilder.SetConversationTitle("Support");
operationBuilder.SetConversationConfig(new ConversationConfig.Builder()
.SetAlwaysShowHumanSupportButtonInBotPage(true)
.SetWelcomeMessage("CUSTOM WELCOME MSG FROM OPERATION")
.build()
);
} else {
operationBuilder.SetSelectIndex(0);
}
AIHelpSupport.ShowOperation(operationBuilder.build());
}
# Page Example
Page examples based on the above scenario are as follows: