# Customer Service

AIHelp has completely improved the service process of intelligent customer support.

Now, you can utilize the robotic process automation, also known as RPA, to provide better service for the end users.

# API

# show

You can set up a customer service entrance in AIHelp dashboard, and use the provided entrance ID to access AIHelp' customer service module:









 







<script src="https://cdn.aihelp.net/webchatv4/aihelp.js"></script>
<body>
  <script>
    (function () {
      let initConfig = {
        appKey: "THIS IS YOUR APP KEY",
        domain: "THIS IS YOUR APP DOMAIN",
        appId: "THIS IS YOUR APP ID",
        entranceId: 'THIS IS YOUR ENTRANCE ID'  
      };
      AIHelpSupport.init(initConfig);
      AIHelpSupport.show();
    })();
  </script>
</body>

Or, you could make your own configuration about AIHelp via the apiConfig property like this:









 
 
 
 







<script src="https://cdn.aihelp.net/webchatv4/aihelp.js"></script>
<body>
  <script>
    (function () {
      let initConfig = {
        appKey: "THIS IS YOUR APP KEY",
        domain: "THIS IS YOUR APP DOMAIN",
        appId: "THIS IS YOUR APP ID",
        apiConfig: {
          entranceId: 'THIS IS YOUR ENTRANCE ID', 
          welcomeMessage: 'THIS IS YOUR SPECIAL WELCOME MESSAGE',
        }  
      };
      AIHelpSupport.init(initConfig);
      AIHelpSupport.show();
    })();
  </script>
</body>

# URL

Or, you could implement the same function by the URL scheme:








 
 
 
 



<script>
  let appKey = "THIS IS YOUR APP KEY";
  let domain = "THIS IS YOUR APP DOMAIN";
  let appId = "THIS IS YOUR APP ID";
  let entranceId = "THIS IS YOUR ENTRANCE ID";
  let welcomeMessage = "THIS IS YOUR SPECIAL WELCOME MESSAGE";
  (function () {
    let baseUrl = `https://${domain}/webchatv4/#/appKey/${appKey}/domain/${domain}/appId/${appId}`;
    let params = `entranceId=${entranceId}&welcomeMessage=${welcomeMessage}`;
    let url = `${baseUrl}?${params}`;
    window.open(url);
  })();
</script>

# Definition

# apiConfig API

  • Type: object
  • Default: {}
  • Detail: Required. The configuration for customer service, which is the encapsulation of entrance id and welcome message.

# entranceId

  • Type: string
  • Detail: Optional. Entrance ID configured in AIHelp dashboard.

Entrance Configuration

Customer Service Configuration

# welcomeMessage

  • Type: string
  • Default: ''
  • Detail: Optional. Custom welcome message for customer service

# Page example

Page examples based on the above scenario are as follows:

Last Updated: 8/2/2023, 7:20:27 AM