Follow and reply multiple messages on WeChat official account (text, picture, video, jump to applet)

Follow and reply multiple messages on WeChat official account (text, picture, video, jump to applet)

For the development that has never paid attention to replying to multiple messages, there is no idea of ​​​​realization. It took a day to research, write codes, and test. Now make a record

train of thought

  1. The background configuration of the official account can only be configured with one type of auto-reply (text, picture, audio, video, and dynamic video account)
    insert image description here
    . Close the automatic reply, click to view the details, and the following prompt will appear.
    insert image description here
    The developer needs to complete the following two steps to develop the automatic reply.
    Read the interface document of the access guide, and set the callback URL and Token in the developer center
    . When user information, you can reply through the code according to your needs.
    See the above information, if you want to realize it, you must start with the callback URL interface

  2. Search for 'send messages' in the official website documents
    insert image description here
    insert image description here
    and read them one by one until you open the customer service message -> send a message. After opening it, you can find that you can send 3 messages within 1 minute after following the official account.
    insert image description here

  3. First open the customer service service in the background of the official account.
    Specific operation: official account -> find it in the bottom corner of the left +新的功能-> not activated -> advertising and service -> customer service -> go to activate -> activate -> confirm and wait for
    1-2 minutes to refresh the page ( Some may be very slow, log out and log in again and refresh)
    insert image description here
    Click on the customer service menu -> add customer service
    insert image description here
    insert image description here
    to fill in the customer service WeChat account (the WeChat account must follow this official account), after adding and adding, the corresponding WeChat mobile phone will receive a WeChat public platform Invitation notification message, click on details to enter 'confirm binding'

  4. Enter the callback URL interface interface to follow the message and modify it

  • Asynchronous execution of 'customer service message'
  • The callback interface directly returns an empty string or "success"
  • Steps for customer service to send messages (according to requirements, my requirement is that the first message sends a plain text welcome message, the second message sends a picture of the operation steps, and the third message sends a text message that can jump to the applet) 1. Use customer service to send plain
    text Welcome interface
    used and
    insert image description here
    reference document
    2. To send a picture,
    the picture needs to call the interface in advance to upload to the material library. Temporary material or permanent material can be used. Refer to document
    3. Send a text message with a jump applet,
    insert image description here
    and this is done.

Guess you like

Origin blog.csdn.net/qq_41070393/article/details/130570723