# 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:

[AIHelpSupportSDK showOperation];

Or, you could customize the Operation module as you need:

AIHelpOperationConfigBuilder *operationBuilder = [[AIHelpOperationConfigBuilder alloc] init];

AIHelpConversationConfigBuilder *conversationBuilder = [[AIHelpConversationConfigBuilder alloc] init];
conversationBuilder.alwaysShowHumanSupportButtonInBotPage = YES;
conversationBuilder.welcomeMessage = @"This is a welcome message for operation.";

operationBuilder.conversationTitle = @"Hi, there";
operationBuilder.selectIndex = 2;
operationBuilder.conversationConfig = conversationBuilder.build;

[AIHelpSupportSDK showOperation:operationBuilder.build];

# Definition

# operationConfig

  • Type: AIHelpOperationConfig
  • Default: nil
  • Details: Optional. Configuration for Operation module.

# conversationConfig

  • Type: AIHelpConversationConfig
  • Default: nil
  • Details: Optional. Configuration for customer service comes from Operation module.

# selectIndex

  • Type: int
  • Default: 0
  • Details: Optional. Default select tab index in operation.

# conversationTitle

  • Type: NSString
  • Default: HELP
  • Details: Optional. The tab title for customer service in operation.

# conversationIntent

  • Type: AIHelpConversationIntent
  • Default: AIHelpConversationIntentBotSupport
  • Details: Optional. Intent for customer service display.

# alwaysShowHumanSupportButtonInBotPage

  • Type: boolean
  • Default: false
  • Details: Optional. Entrance visibility for human support button in bot page.

# welcomeMessage

  • Type: NSString
  • Default: ''
  • Details: Optional. Custom welcome message for human support.

# storyNode

  • Type: NSString
  • Default: ''
  • Details: Optional. 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:

- (void)showOperation:(int)level {
    AIHelpOperationConfigBuilder *operationBuilder = [[AIHelpOperationConfigBuilder alloc] init];
    AIHelpConversationConfigBuilder *conversationBuilder = [[AIHelpConversationConfigBuilder alloc] init];
    if (level < 50) {
        operationBuilder.selectIndex = INT_MAX;
        operationBuilder.conversationTitle = @"Support";
        conversationBuilder.alwaysShowHumanSupportButtonInBotPage = YES;
        conversationBuilder.welcomeMessage = @"CUSTOM WELCOME MSG FROM OPERATION";
        operationBuilder.conversationConfig = conversationBuilder.build;
    }else {
        operationBuilder.selectIndex = 0;
    }
    [AIHelpSupportSDK showOperation:operationBuilder.build];
}

# Page Example

Page examples based on the above scenario are as follows:

Last Updated: 8/1/2023, 2:02:11 AM