# wx.openCustomerServiceConversation(Object object)

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

Opens a Customer Service chat. This API is called only when the user touch event is triggered at least once. It is accessed in the same way as in Mini Program. For details, see Customer Service Message.

# Parameters

# Object object

Attribute Type Default Required Description
sessionFrom string '' No The source of the chat
showMessageCard boolean false No Specifies whether to display message cards in a chat. When this parameter is set to true, after the user enters a customer service chat, the system displays a notification "Mini Programs to be sent" in the lower right corner, and the user can tap it to send the Mini Program message card.
sendMessageTitle string '' No The title of the message card in the chat
sendMessagePath string '' No The path to the message card in the chat
sendMessageImg string '' No The path to the image of the message card in the chat
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)