WeChat customer service Message Send interface specify customer service send message problem

Source: Internet
Author: User
Tags openid
Customer Service interface-Send message

Interface Invocation Request Description

HTTP request mode: POST
Https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

Note that if you need to send a message with a customer service account (a custom avatar appears in 6.0.2 and above), you need to include the Customservice parameter in the second half of the JSON packet, such as sending a text message instead:
{

"touser":"OPENID","msgtype":"text","text":{     "content":"Hello World"},"customservice":{     "kf_account": "test1@kftest"}

}

Multi-service has been added, add customservice invalid, no use of designated customer service. Has anyone ever used it, ask for advice?

Find a solution:
Customservice put in front of reply content
{

"touser":"OPENID","msgtype":"text","customservice":{     "kf_account": "test1@kftest"},"text":{     "content":"Hello World"}

}
I'm drunk, too.

Reply content:

Customer Service interface-Send message

Interface Invocation Request Description

HTTP request mode: POST
Https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN

Note that if you need to send a message with a customer service account (a custom avatar appears in 6.0.2 and above), you need to include the Customservice parameter in the second half of the JSON packet, such as sending a text message instead:
{

"touser":"OPENID","msgtype":"text","text":{     "content":"Hello World"},"customservice":{     "kf_account": "test1@kftest"}

}

Multi-service has been added, add customservice invalid, no use of designated customer service. Has anyone ever used it, ask for advice?

Find a solution:
Customservice put in front of reply content
{

"touser":"OPENID","msgtype":"text","customservice":{     "kf_account": "test1@kftest"},"text":{     "content":"Hello World"}

}
I'm drunk, too.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.