# wx.openCustomerServiceChat(Object object)

Start from base library version 2.19.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Not supported

Open WeChat customer service. For more information, you can refer toWeChat Customer Service Introduction

# parameter

# Object object

attribute type Default values Required Introductions
extInfo Object yes Customer Service Information
corpId String yes Enterprise ID
showMessageCard Boolean false no Send Mini Program bubble message
sendMessageTitle String no Bubble Message Title
sendMessagePath String no Bubble message Mini Program path
sendMessageImg String no Bubble Message Picture
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Interface calls the end of the callback function (call success or failure will be executed)

object.extInfo Structure

attribute type Default values Required Introductions
url String yes Customer Service Link

# sample code

wx.openCustomerServiceChat({
  extInfo: {url: ''},
  corpId: '',
  success(res) {}
})