# Employee relations

# I. Function profile

Labor relationship function, support and Weixin Mini Program have a labor relationship between the user and the corresponding Mini Program binding.After binding,

  1. Weixin Mini Program Can push employment message notifications to bound users
  2. Bound users will be able to receive employment message notifications in the WeChat "Weixin Mini Program assistant"

This feature ensures that Weixin Mini Program is efficiently accessible to key business information in the use scenario. image.png

# II. Function Details

Support base library versions: 3.10.0 +

Support WeChat version: 8.0.62 or above

# 1. Turn on the function

  • This function only supports non-personal subjects under logistics services / medical services / government livelihood / financial industry / education services / transportation services / real estate services / life services / IT technology / catering services / travel services / business services / Weixin Mini Program

  • Under these categories, you can log in to the WeChat public platform , meet the category requirements, find "employment relationship" in the sidebar, click open, fill in the application content, and wait for the review (average review time < 24h).

# 2. Add a new job messaging template

After the WeChat public platform opened the employment relationship function, you can add the required employment message template, template can be used after the audit. image.png

# 3 Employee relationship management interface

  • Binding employment relationship interface: wx.bindEmployeeRelation

    Developers can use the interface to invoke a subscription pop-up for users with a Weixin Mini Program work relationship, allowing users to receive a binding system message in the Mini Program-helper plug-in.

  • Unbound interface: UnbindUserB2CAuthInfo

    Developers can directly unbind users who have a working relationship with Weixin Mini Program through the interface, and users can receive the unbound system message in the "Mini Programs assistant" plug-in.

  • Check relational interface: wx.checkEmployeeRelation

    Developers can check the binding between the Weixin Mini Program labor relationship function and the user through the interface

# 4 Subscribe to employment messages

There are two occasions to start a job messaging subscription.

  1. After the user confirms the employment relationship, the user can directly subscribe to the message, detailed in the technical documentation wx.bindEmployeeRelation .
  2. After the employment relationship is bound, the callable interface lets the user subscribe to the message, detailed in the technical documentation wx.requestSubscribeEmployeeMessage .

# 5. Send employment messages

If the user is bound to an employment relationship and subscribes to the corresponding employment message, the developer can use the SendEmployeeRelationMsg Send a job message to the user.The user will receive the corresponding message in the "Weixin Mini Program assistant."

# III. PRECAUTIONS

Be sure to use this feature correctly.

  • This feature only supports Weixin Mini Program message delivery requests in work scenarios, and if misused in other scenarios for developers, the feature will be recycled.
  • Both the binding relationship window and the subscription message window are strongly monitoring behavior scenarios. Please inform the user of the employment relationship in advance to ensure the binding window passes.Do not abuse messages to users who do not have a worker relationship. Abuse will recycle the feature.