Get the automatic reply rules of the official account


Get the automatic reply rules of the public account

Developers can use this interface to obtain the automatic reply rules currently used by public accounts, including automatic reply after following and automatic reply to messages (60 minutes (triggered once within 2 seconds), keyword automatic reply.

Please note:

1. Third-party platform developers can use this interface to immediately detect the automatic reply configuration of the official account after its official account authorizes the business to you. And set the automatic reply rules for the public account again through the interface to improve the business experience of the public account operator.
2. This interface can only obtain the automatic reply rules set by the official account in the automatic reply function of the official website of the public platform. If the official account develops automatic reply by itself, or implements it through a third-party platform developer, it cannot be obtained.
3. Certified/uncertified service accounts/subscription accounts, and interface test accounts all have this interface permission.
4. From the third-party platform’s public account login authorization mechanism, this interface belongs to the message and menu permission set.
5. The pictures/voices/videos returned in this interface are temporary materials (temporary materials are different each time they are obtained and are valid within 3 days. These materials can be obtained through the Material Management-Get Temporary Materials interface). The pictures returned by this interface are Text messages are permanent materials (obtain these materials through the Material Management-Get Permanent Materials interface).

Interface call request description

http request method: GET (please use https protocol)

https://api .weixin.qq.com/cgi-bin/get_current_autoreply_info?access_token=ACCESS_TOKEN

Return result description

Returned JSON format sample: (note that json before formatting uses ‘\’ as the escape character)


  "is_add_friend_reply_open": 1, 
  "is_autoreply_open": 1, 
  "add_friend_autoreply_info": { 
      "type": "text", 
      "content": "Thanks for your attention!"
  }, 
  "message_default_autoreply_info": { 
      "type": "text", 
      "content": "Hello, this is autoreply!"
  }, 
  "keyword_autoreply_info": { 
      "list": [ 
          { 
              "rule_name": "autoreply-news", 
              "create_time": 1423028166, 
              "reply_mode": "reply_all", 
              "keyword_list_info": [ 
                  { 
                      "type": "text", 
                      "match_mode": "contain", 
                      "content": "news测试"//此处content即为关键词内容
                  }
              ], 
              "reply_list_info": [ 
                  { 
                      "type": "news", 
                      "news_info": { 
                          "list": [ 
                              { 
                                  "title": "it's news", 
                                  "author": "jim", 
                                  "digest": "it's digest", 
                                  "show_cover": 1,  "cover_url": "http://mmbiz.qpic.cn/mmbiz/GE7et87vE9vicuCibqXsX9GPPLuEtBfXfKbE8sWdt2DDcL0dMfQWJWTVn1N8DxI0gcRmrtqBOuwQH

  euPKmFLK0ZQ/0", 
                                  "content_url": "http://mp.weixin.qq.com/s?__biz=MjM5ODUwNTM3Ng==&mid=203929886&idx=1&sn=628f964cf0c6d84c026881b6959aea8b#rd", 
                                  "source_url": "http://www.url.com"
                              }
                          ]
                      }
                  }, 
                  { 
                      "type": "news",
                      "content":"KQb_w_Tiz-nSdVLoTV35Psmty8hGBulGhEdbb9SKs-o", 
                      "news_info": { 
                          "list": [ 
                              { 
                                  "title": "MULTI_NEWS", 
                                  "author": "JIMZHENG", 
                                  "digest": "text", 
                                  "show_cover": 0, 
                                  "cover_url": "http://mmbiz.qpic.cn/mmbiz/GE7et87vE9vicuCibqXsX9GPPLuEtBfXfK0HKuBIa1A1cypS0uY1wickv70iaY1gf3I1DTszuJoS3lAVLv

hTcm9sDA/0", 
                                  "content_url": "http://mp.weixin.qq.com/s?__biz=MjM5ODUwNTM3Ng==&mid=204013432&idx=1&sn=80ce6d9abcb832237bf86c87e50fda15#rd", 
                                  "source_url": ""
                              },
                              { 
                                  "title": "MULTI_NEWS4", 
                                  "author": "JIMZHENG", 
                                  "digest": "MULTI_NEWSMULTI_NEWSMULTI_NEWSMULTI_NEWSMULTI_NEWSMULT", 
                                  "show_cover": 1, 
"cover_url": "http://mmbiz.qpic.cn/mmbiz/GE7et87vE9vicuCibqXsX9GPPLuEtBfXfKbE8sWdt2DDcL0dMfQWJWTVn1N8DxI0gcRmrtqBOuwQ

HeuPKmFLK0ZQ/0", 
                                  "content_url": "http://mp.weixin.qq.com/s?__biz=MjM5ODUwNTM3Ng==&mid=204013432&idx=5&sn=b4ef73a915e7c2265e437096582774af#rd", 
                                  "source_url": ""
                              }
                          ]
                      }
                  }
              ]
          }, 
          { 
              "rule_name": "autoreply-voice", 
              "create_time": 1423027971, 
              "reply_mode": "random_one", 
              "keyword_list_info": [ 
                  { 
                      "type": "text", 
                      "match_mode": "contain", 
                      "content": "voice测试"
                  }
              ], 
              "reply_list_info": [ 
                  { 
                      "type": "voice", 
                      "content": "NESsxgHEvAcg3egJTtYj4uG1PTL6iPhratdWKDLAXYErhN6oEEfMdVyblWtBY5vp"
                  }
              ]
          }, 
          { 
              "rule_name": "autoreply-text", 
              "create_time": 1423027926, 
              "reply_mode": "random_one", 
              "keyword_list_info": [ 
                  { 
                      "type": "text", 
                      "match_mode": "contain", 
                      "content": "text测试"
                  }
              ], 
              "reply_list_info": [ 
                  { 
                      "type": "text", 
                      "content": "hello!text!"
                  }
              ]
          }, 
          { 
              "rule_name": "autoreply-video", 
              "create_time": 1423027801, 
              "reply_mode": "random_one", 
              "keyword_list_info": [ 
                  { 
                      "type": "text", 
                      "match_mode": "equal", 
                      "content": "video测试"
                  }
              ], 
              "reply_list_info": [ 
                  { 
                 "type": "video", 
"content": "http://61.182.133.153/vweixinp.tc.qq.com/1007_114bcede9a2244eeb5ab7f76d951df5f.f10.mp4?vkey=7183E5C952B16C3AB1991BA8138673DE1037CB82A29801A504B64A77F691BF9DF7AD054A9B7FE683&sha=0&save=1"
                  }
              ]
          }
      ]
  }
}

Parameter Description


## message_default_autoreply_infoMessage automatic reply informationkeyword_autoreply_infoKeyword automatic reply informationrule_name Rule namecreate_timeCreation timereply_modeReply mode , reply_all represents all replies, random_one represents a random reply to one of themkeyword_list_infomatching keyword listmatch_mode Matching mode, contain means that the message contains the keyword, equal means that the message content must be strictly the same as the keyword news_infoPicture and text Information of the messagetitleTitle of the graphic message##digestauthorshow_cover
ParametersDescription
is_add_friend_reply_openWhether automatic reply is turned on after following, 0 means not turned on , 1 represents open
is_autoreply_openWhether automatic reply to messages is enabled, 0 represents not enabled, 1 represents enabled
add_friend_autoreply_info Auto-reply information after following
typeType of automatic reply.The types of automatic reply after following and automatic reply to messages only support text (text), picture (img), voice (voice), and video (video). Keyword automatic reply also supports graphic messages (news)
contentFor text type, content is the text content. For image, text, picture, voice, and video types, content is mediaID
Summary
author
Whether to display the cover, 0 means not to display, 1 means to display
cover_urlThe URL of the cover image
content_urlThe URL of the main text
source_urlThe URL of the original text. If left blank, there will be no entry to view the original text
1474855753866111.jpg


##