Editing mode for WeChat official account development

Source: Internet
Author: User

.

Author:The dust of the world

Reprinted please indicate the source: Http://blog.csdn.net/shulianghan/article/details/20306735.

.


My public account (subscription number):Han shuliang

--Second (second) Second: Sorry, I cannot apply for it.Service number% >_<%, Subscription numbers are inconvenient. The editing mode does not have a custom menu function. The development mode will be enabled tomorrow;

--Follow public account:






Two mutually exclusive modes: Editing mode and development mode, which cannot be used at the same time;


Edit mode: The editing mode is mainly set through interface editing.Automatic replyAndCustom menuThese settings can be directly completed on the public platform;


Editing mode:

--No development capability: Public accounts used for brand promotion, news media, and self-service customer service;

--Development Capability: Use the editing mode before developmentQuick prototyping, Development ModeFaultSwitch to the editing mode;


Edit Mode EnabledFor example, function> advanced function> edit mode;



1. automatic reply settings


.

Automatic reply: In the automatic reply module, you can set the automatic reply function to reply to messages including text, images, and voice;

--Added Automatic reply: The information sent by the public when the user is added for the first time;

--Automatic Message reply: Information automatically returned to the user when the user sends a message to the public account;

--Keyword Automatic reply: When a user sends a specific keyword, the user replies to the corresponding content;


Enable automatic reply: Automatic reply is disabled by default. You need to manually move the Enable button to use it;




1. Add automatic reply passively



Add automatic reply passively: When a user adds a public account, the message is automatically returned to the user;

--Reply to Common Content:Welcome Speech,Features,Operation GuideAnd so on;


Recommended reply type: Automatic reply can be text, image, and video speech, but text is recommended here, which saves the user traffic;


Set some reply content to my public account.: Mobile website is made of Baidu light app \ (^ o ^ )/~, Very useful;

Welcome to add Han shuliang public account O (Region _ Region) O ~ Android IOS Embedded Reconstruction Design Mode UML learning communication mo-OK currently learning development and Baidu light application... welcome to my blog: -- CSDN blog: http://blog.csdn.net/shulianghan -- PC version: www.hanshuliang.com -- Mobile Phone version: http://mobile.hanshuliang.com contact mailbox: 13241153187@163.com


Add example:


Effect:




2. Automatic Message reply



Automatic Message reply function: Users send messages to the publicUnidentifiable messageThis automatic reply will be sent to the user, and the format of automatic message reply can also include text, image, video, and voice;

--Use Cases: When a server fault occurs in development mode or the public account has just been activated and no keyword auto-reply settings are set, you can set Automatic Message reply;


Set content:

Reply to Android, IOS, embedded, refactoring, and design mode to go to the prompt. Reply to public account development, Baidu light application to view development details.


Setting Method:



Effect:




3. Automatic keyword reply



Keyword reply: When a user sends a matching keyword, the user will reply to the corresponding content based on the keyword;


Automatic reply RuleA keyword automatic reply Rule consists of three parts: Rule name, keyword, and reply;

--Rule name: The rule name does not mean anything. It can be repeated. It is mainly used to facilitate memory display;

--Keywords: There are two matching methods:Not all matchedAndAll matched, Which is not fully matchedMatch as long as the content contains keywords, All matched isOnly the content sent by the user is identical can match;

--Reply: After the keyword match is successful, the content corresponding to the sent keyword can be text, image, and video speech;



Relationship between keywords and responses:

--Not all matched: The keyword "refactoring" is not fully matched. As long as the reply content contains the word "refactoring", the related content will be replied, such as setting:


--Not fully matched:


--All matched: The corresponding information will be sent only when the keyword exactly matches;


--Fully matched results:


--One-to-multiple relationship: One keyword matches multiple items. For example, one keyword corresponds to Multiple replies. If you select "reply all", both replies will be sent;

--Multi-to-one relationship: Match one item with multiple keywords. For example, if you do not select this option, both keywords will send a reply;



4. automatic response priority Determination



Priority of automatic message reply: No matter what type of message the user sends, as long as the public account receives the message, it will automatically reply. If the user sends a reply rule that matches the keyword, the reply Rule will be given priority;


Automatic keyword reply priority: If the information sent by the user matches multiple keywords, a random message is sent;


Keyword reply priority> automatic message reply priority


.


Ii. Case study-rebuilding the dictionary



1. Rebuilding dictionary Design


(1) Functional Design


Function: Users can send and reply messages to the public account,Query refactoring knowledgeFor example, querying Bad Smell and Refactor Method details;

--Added Automatic reply: When a user pays attention to the public account, the user will be automatically replied with a message, which is one-time, and the reply will be indicated hereReconstruction2-character orAny unidentifiable contentThe directory list is displayed;

--Automatic Message reply: When the user sends an unidentifiable message, it will replyRefactor related directories;

--Automatic keyword reply: The subject of the case. Here we will send the corresponding reconstruction method based on the refactoring details, such as the bad taste of the Code.Refactoring content details;


(2) Data Preparation


First, list several concepts and explain them in a rough way. The summary will be completed and improved in the future;


Bad code taste:

--Duplicate code: The same code structure appears at more than one location;

--Too long Function: Code that is too long in the function;

--Too large class: A single class has too many functions and many member variables are defined internally;

--Too long parameter Column: Too many parameters are input by the function;

--Divergent changes: To add a module, You need to modify the two functions in one class. To add another module, You need to modify the three functions in the same class. It is better to separate the classes;

--Elastic Modification: To add a module, You need to modify multiple classes. It is better to combine multiple classes into one class;


(3) design keyword rules


Keywords: Refactoring (exact match)

--Corresponding reply content: List the directories for refactoring, list 22 bad code tastes in detail, and list all refactoring methods;


Keywords: Bad code taste (not fully matched)

--Corresponding reply content: List 22 bad codes;


Keywords: Name of the bad taste of the Code (exact match );

--Corresponding reply content: Reply the specific information of this bad taste;



2. Effect







.

Author:The dust of the world

Reprinted please indicate the source: Http://blog.csdn.net/shulianghan/article/details/20306735.

.


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.