Short video matrix management system private message group chat function source code development and sharing

       With the rise of short video customer acquisition tools, more and more companies and merchants are discovering more business opportunities. In addition to doing short video promotion to acquire customers, there are also many potential customers hidden in the comment area that we need to dig deeper. For some accounts with relatively high traffic, it is quite labor-intensive to find potential customers in thousands of comment areas, so an automated tool for customer acquisition is more important. Today, the editor will share with you the development of automated customer acquisition tools:

Function core:

1. It can realize the automatic reply of keyword customers in the comment area. For example, if there are customers asking how much money, price, contact information, etc. in the comment area, the system needs to automatically match and reply the information we set according to the keywords, quickly reach the intended customers, and not disturb the customers who do not trigger the keywords.

2. It is possible to realize the automatic private message of keyword customers in the comment area. For some potential customers with relatively high keyword matching, the system needs to respond in a timely manner and automatically reach the potential customers. For example, if it is convenient, you can leave your contact information, and I will contact you as soon as possible, or automatically private message the contact information of the customer service store, etc., to accurately convert potential customer leads.

3. It can realize the automatic reply of keywords in private messages. For many enterprises, there may be an operation position to manage the account, but manual labor cannot fully achieve 24 hours of 100% access. The system can achieve timely response, especially for non-working hours or at night. If a customer sends a message for consultation, we do not give a timely reply or response, and the customer is easily lost. Then when a reply is given through the system, the customer is likely to be deposited and finally converted by us.

Part of the function development logic:

Scope: item.comment needs to apply for permissions  and requires the user to authorize  this interface to reply to video comments. Only replies to videos posted by authorized users themselves .

Gallery does not currently support comments.

Status code troubleshooting

Enter 【Status Code Troubleshooting Tool】

request address

POST /item/comment/reply/

request header

  • Content-Type: application/json
  • access-token: The token generated by calling /oauth/access_token/, this token requires user authorization. Example: act.1d1021d2aee3d41fee2d2add43456badMFZnrhFhfWotu3Ecuiuka27L56lr

request parameters

URL request

parameter name Parameter Type Parameter Description parameter example Is it required?
open_id string Obtained through /oauth/access_token/, the unique identifier of the user ba253642-0590-40bc-9bdf-9a1334b94059 true

body request

parameter name Parameter Type Parameter Description parameter example Is it required?
item_id string video id @8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w== true
comment_id string If you need to reply to a comment, you need to pass the comment id @kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w== false
content string The specific content of the comment reply content true

sample request

cURL

curl --location --request POST 'https://open.douyin.com/item/comment/reply/?open_id=ba253642-0590-40bc-9bdf-9a1334b94059' \
--header 'access-token: act.1d1021d2aee3d41fee2d2add43456badMFZnrhFhfWotu3Ecuiuka27L56lr' \
--header 'Content-Type: application/json' \
--data-raw '{"content":"回复内容","item_id":"@8hxdhauTCMppanGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w==","comment_id":"@kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w=="}'

response parameters

parameter name Parameter Type Parameter Description parameter example Is it required?
extra struct false
data struct false

sample response

{
  "extra": {
    "sub_error_code": 0,
    "sub_description": "",
    "logid": "202008121419360101980821035705926A",
    "now": 1597213176393,
    "error_code": 0,
    "description": ""
  },
  "data": {
    "error_code": 0,
    "description": "",
    "comment_id": "@kj5k4hai123d22nGnM4ltGM780mDqPP+KPpR0qQOmLVAXb/T060zdRmYqig357zEBq6CZRp4NVe6qLIJW/V/x1w=="
  }
}

 

Guess you like

Origin blog.csdn.net/m0_71850852/article/details/128869795