Published at: 2026-09-17

Web channel access settings


Scenario

Configure web plugins and access customer consultation sessions.

Before you begin

Technicians who have prepared website pages and performed front-end code deployment.

Configuration steps

Step 1: Add a web plug-in

ShareCRM Online customer service will automatically generate a piece of code when adding a web page plug-in. The enterprise can embed the code in front of its own web page tag to open the entrance for customer consultation on the website. It also supports you to make some personalized configurations for the web consultation entrance and chat box, such as workbench icons, button names, button styles and window theme colors. After adjusting the personalized configuration information, you can view the page effect in real time in the preview window on the right.
Screenshot: web channel access settings
Screenshot: web channel access settings
The key capabilities and characteristics of web channels are as follows:
- Custom Plugin style, adapted to customer web page style, supports real-time preview.
- Automatically generate plug-in code, copy and paste it to embed it into the specified web page.
-Customer service plug-in embedded in web pages, supporting regular functions such as text, expressions, pictures, attachments, etc.
-Each enterprise supports access to multiple web pages at the same time.
- The customer service plug-in is simultaneously compatible with Web and mobile terminals.
- Compatible with two modes: unidentified tourists and identified customers. Scenario examples:
  • Unidentified visitors: When the web visitor is not logged in, online consultation is initiated; such as the official website;
  • Identified customers: After logging in, the web visitor initiates an online consultation, and the login account has been mapped with the interface data of the ShareCRM system; for example, in an online mall, the logged in user corresponds to the customer data in the ShareCRM system.
The effect of web plug-in access is as shown below Screenshot: web channel access settings Screenshot: web channel access settings

Step 2: Configure session allocation rules

In the previous step, the session channel entrance has been configured. Next, session allocation rules need to be configured. Customer sessions will be transferred between customer service groups and personnel according to the set allocation rules. The configuration path is: Online Customer Service ->Web Access Settings->Session Allocation Rules. The main setting items of session allocation rules are as follows:
Screenshot: web channel access settings - The name of the custom settings session assignment rule.
- When there are multiple web page access channels, you can check the web page channel to which this rule applies. This rule will only take effect in the selected channel.
- Customize the access welcome message. When the session is accessed, the welcome message will be actively sent to the customer.
- Promotional slogan: After the session is connected, you can Auto Send promote the slogan to realize automatic marketing to customers.
-Maximum number of sessions handled by customer service: After the maximum number of sessions is exceeded, new sessions for this channel will not be assigned to the customer service.
-User identity recognition: After identity recognition is turned on, users need to verify their Internet identity before accessing the session.
Allocation rules for assigning sessions to customer service groups: When a new session needs to be assigned to a group, two session assignment methods, “rule assignment” and “specified group”, are supported.
① Rule allocation: You can configure the conditions for web visitor sessions to enter the corresponding customer service group.
  • All web visitors: All web visitor sessions can enter the selected customer service group.
  • Filter by visitor information: Only web visitor sessions that meet the filter can enter the selected customer service group.
  • Filter by pre-inquiry form: Sessions that match the information in the pre-inquiry form can enter the specified group.
- For a session that does not match the session allocation rule, the system will Auto Assign the session into the bottom group.
② Specified grouping: Before the session is accessed, a prompt will be pushed to the user to allow the user to select a service group, such as pre-sales grouping/after-sales grouping.
Session allocation rules within the group:
  • Load distribution, giving priority to support agents with the smallest number of real-time sessions;
  • Circular allocation, all support agents included in the selected customer service group will be allocated in turn in order;
  • Idle rate allocation, priority is given to the support agents with the fewest number of sessions on the day;
  • Assigned by the person in charge of the customer, the messages sent by the user can be pushed to the person in charge of the corresponding customer;
  • Assigned by the person in charge of the contact, messages sent by the user can be pushed to the person in charge of the corresponding contact.
Note: When assigning by contact person/customer person in charge, the person in charge needs to be maintained in the customer service group in advance; it is recommended to add by department. The system will automatically add/remove the corresponding person according to changes in department members. 
When customer service cannot handle the conversation in real time, customers need to be reminded and emotionally comforted. For situations where the customer service is all busy, none of the customer service is online, or none of the customer service is available during service hours, the enterprise can customize whether to send a prompt. If a prompt is sent, the content of the prompt can be set.
When the support agent is busy, the message function can be turned on, allowing users to leave messages first, and wait for the support agents to process the messages when they are free. Enterprises can customize message templates and collect the message information they want to collect.
Screenshot: web channel access settings
Screenshot: web channel access settings

Step 3: Configure user information collection

User information collection is used to pass information such as the source of web visitors, search terms, and pages visited along with the session into Online Customer Service to help support agents understand the visitor’s current consultation background.
Screenshot: web channel access settings
Related information can be configured through the script parameter of the web plug-in or the global variable script. script parameters have higher priority than global variables.
window.FSImChatParams = { webImId: ‘2447060116862665016’, autoOpen: 3000, serviceSessionParams: {} }
Parameter name illustrate Example
autoOpen The time to automatically open the web plug-in dialog box, in milliseconds. It takes effect when the value is greater than 0. 10000
serviceSessionParams The business parameters attached when sending session messages can be used to record the user source. Search terms, keywords, source websites, landing pages, consultation pages
In consult_page, information such as consult_page, consult_page, consult_page, consult_page and consult_page can be passed in according to the actual fields of the enterprise.
The web plug-in also provides the following methods and events to facilitate self-developed websites to control the session window and receive status changes according to actual scenarios:
type name illustrate
method openChatDialog Open the web plug-in dialog box.
method updateParams Update the web plug-in initialization parameters.
event subscription $on Continuously listen to the specified event.
event subscription $once Listen to the specified event only once.
event subscription $off Removes the specified event or all event handlers.
Can monitor RECEIVE_MESSAGE event judgment plug-in Completed initialization; can monitor RECEIVE_MESSAGE event to receive the number of new messages.

Step 4: Configure third-party identity verification

Web channels are generally used on the official website. If a user logs in to the official website, the customer’s identity information will be collected on the official website. If the company needs to accurately identify the customer’s information in ShareCRM, it can turn on the identity verification function and pass the parameters as required in the customer service plug-in code to open the Online Customer Service and customer identity information verification channel in the third-party web page.
  • Configuration steps before development access
  1. Generate identity verification key: Click “Generate Key” to generate the key. After the page is refreshed, the secret key will be masked and displayed. You can click the View Secret Key button to view the key again.
Screenshot: web channel access settings
  1. Configure visitor identity verification fields: In ShareCRM, all users who start a consultation are stored as visitor records (object API name: WebImVisitorObj). To match visitors from your custom website with visitor records in ShareCRM, configure the fields used for identity verification. You can define these fields for your organization. In most cases, a name and mobile number identify a unique visitor. If no match is found, ShareCRM creates a visitor record from the supplied parameters.
Screenshot: web channel access settings
  1. Associate visitors with CRM accounts and contacts: By default, agents manually associate visitors who enter ShareCRM from an Online Customer Service consultation with CRM accounts and contacts. To associate users from your custom website automatically, import the website user information into CRM accounts and contacts, then enable Automatically associate accounts and contacts. Select the fields that a visitor record uses to find and match contacts. Use a mobile number, or a name and mobile-number combination, whenever possible to improve matching accuracy.
Screenshot: web channel access settings
  • Identity verification development access instructions 1. Generate the visitor verification field json string. The example parameters are as follows: {"full_name":"Zhang San","phone":"15912345678"} 2. Use the key generated by the identity verification to encrypt the visitor verification field json string using the AES algorithm to obtain the encrypted string A 3. Append the produced string A to the customParams parameter of the web page plug-in
Encryption algorithm: AES Working mode: ECB Padding method: PKCS5Padding
Encryption sample code (java)
public static String encrypt(String data, String key) {
    try {
//Key conversion SecretKey secretKey = toKey(key); byte[] enCodeFormat = secretKey.getEncoded(); SecretKeySpec k = new SecretKeySpec(enCodeFormat, “AES”); Cipher cipher = Cipher.getInstance(“AES/ECB/PKCS5Padding”); cipher.init(Cipher.ENCRYPT_MODE, k); byte[] dataArray = data.getBytes(“utf-8”); byte[] encode = cipher.doFinal(dataArray); // ciphertext conversion return bytesToHexString(encode); } catch (Exception e) { LOGGER.error(“failed to encrypt, data={}, key={}”, data, key, e); return null; } }
private static `SecretKey` toKey(String key) throws Exception {
    byte[] data = Base64.decodeBase64(key);
    `SecretKey` `secretKey` = new `SecretKeySpec`(data, "AES");
    return `secretKey`;
}

private static final String `bytesToHexString`(byte[] bArray) {

    `StringBuffer` sb = new `StringBuffer`(bArray.length);
    String sTemp;
    for (int i = 0; i < bArray.length; i++) {
        sTemp = Integer.`toHexString`(0xFF & bArray[i]);
        if (sTemp.length() < 2)
        sb.append(0);
        sb.append(sTemp.`toUpperCase`());
    }
    return sb.toString();
}

Expected Result

  1. Open a guest window on the test page where the web plug-in has been deployed.
  2. Fill in the pre-query information and send a test message.
  3. Confirm that the corresponding session is generated in the Customer Service Workbench and that the session is allocated according to rules.

FAQ and troubleshooting

Submit Feedback