# Customer Service News
# Use customer service messages on the page
The need to button assembly open-type The value of the contact, when the user clicks on it will enter the customer service session. If the user clicks on the Mini Program message in the session, it will return to the Mini Program. Developers can access the Mini Program through the bindcontact Event callback to get the page path to the message the user clicked path And the corresponding parameters query。
# sample code
<button open-type="contact" bindcontact="handleContact"></button>
Page({
handleContact (e) {
console.log(e.detail.path)
console.log(e.detail.query)
}
})
# Return Parameter Dxplaination
| parameter | type | Introductions |
|---|---|---|
| path | String | Path specified by the Mini Program message |
| query | Object | Query parameters specified by the Mini Program message |
# Background access message service
When the user sends a message to the Mini Program customer service, or enters a conversation, etc., the server configuration filled by the developer URL / Cloud development cloud function / [Cloud Hosting Services](https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun /src/Guide/Weixin/push.html)Messages and events will be pushed by WeChat servers, and developers can respond according to their own business logic. For access and use, please refer toMessage Push。