Order information generation and sending method and device, equipment and storage medium
By automatically obtaining and screening logistics order information, matching logistics outlets and generating order information, the problem of low efficiency in logistics SMS transmission is solved, and customer satisfaction and logistics management efficiency is improved.
Patent Information
- Application Number
- CN202411363022.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-10
AI Technical Summary
In the prior art, logistics SMS transmission efficiency is low, affecting timeliness and accuracy.
Automatically obtain target user order information through the construction information acquisition script, clean and filter, obtain logistics trajectory, match the pre-built outlet database according to the sign-up status, generate order information and send.
It improves the accuracy and timeliness of customer service interactions and improves customer satisfaction.
Smart Images

Figure CN119295008A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of logistics information technology, and in particular to a method, device, equipment and storage medium for generating and sending order information. Background Art
[0002] With the development and popularization of Internet technology, more and more people choose to shop online. This way of shopping has become a part of daily life. Logistics services are an important part of business strategies. Effective logistics services can not only improve customer satisfaction, but also help businesses improve efficiency. Among them, the role of sending SMS to users for feedback in business application scenarios such as logistics distribution is becoming more and more important. In the prior art, when configuring SMS, the staff sets the SMS template and its sending rules in the background system; when sending SMS, the background system obtains the SMS template and sends SMS to customers based on the SMS template. However, with the expansion of business scenarios, there are problems of large workload and low efficiency, which affects the timeliness and accuracy of SMS sending.
[0003] It can be seen that the existing technology still needs to be improved and enhanced. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a method, device, equipment and storage medium for generating and sending order information, aiming to solve the technical problem of low efficiency in sending logistics SMS in the prior art.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] The first aspect of the present invention provides a method for generating and sending order information, comprising the following steps: constructing an information acquisition script, and obtaining target user order information through the information acquisition script; cleaning and screening the obtained multiple target user order information to obtain information to be processed, and obtaining the logistics track of the target user order information from the information to be processed; obtaining the receipt status of the target user order information, extracting the most recent logistics node information from the logistics track according to the receipt status, matching the logistics node information with a pre-constructed network database, and obtaining a logistics network matching result; pre-constructing a SMS template, generating order information according to the logistics network matching result and the SMS template, and sending the order information to the user.
[0007] Optionally, in a first implementation method of the first aspect of the present invention, constructing an information acquisition script and acquiring target user order information through the information acquisition script specifically includes: establishing user screening rules and constructing a basic script according to the user screening rules; testing and optimizing the basic script to obtain the information acquisition script; acquiring exogenous order information and filtering the exogenous order information through the information acquisition script to obtain target user order information.
[0008] Optionally, in a second implementation method of the first aspect of the present invention, the obtained multiple target user order information is cleaned and screened to obtain information to be processed, and the logistics track of the target user order information is obtained from the information to be processed, specifically including: parsing the obtained multiple target user order information, and performing data cleaning on the parsed target user order information; screening the cleaned multiple target user order information to filter out target user order information that has not sent text messages within a limited time range, and obtaining screening results; establishing data screening rules, and performing secondary screening on the screening results according to the data screening rules to obtain information to be processed; obtaining the information to be processed, and extracting the logistics track in the information to be processed.
[0009] Optionally, in a third implementation method of the first aspect of the present invention, the data screening rules are established, and the screening results are screened for the second time according to the data screening rules to obtain information to be processed, specifically including: obtaining the screening results, extracting the waybill number segment, marking interface, work order system and customer attributes in the screening results; establishing data screening rules, and filtering out the target user order information with specific fields in the waybill number segment in the screening results according to the data screening rules to obtain a first result; filtering out the target user order information containing a specific marking interface in the first result according to the data screening rules to obtain a second result; filtering out the target user order information belonging to a specific work order system in the second result according to the data screening rules to obtain a third result; filtering out the target user order information belonging to specific customer attributes in the third result according to the data screening rules to obtain information to be processed.
[0010] Optionally, in a fourth implementation method of the first aspect of the present invention, the receipt status of the target user's order information is obtained, the most recent logistics node information is extracted from the logistics track according to the receipt status, and the logistics node information is matched with a pre-built outlet database to obtain a logistics outlet matching result, specifically including: obtaining the receipt status of the target user's order information, and judging the receipt status; if the receipt status is normal, filtering out the target user's order information; if the receipt status is abnormal, extracting the most recent logistics node information from the logistics track, and using a machine learning algorithm to match the logistics node information with a pre-built outlet database to obtain a logistics outlet matching result.
[0011] Optionally, in a fifth implementation method of the first aspect of the present invention, the pre-constructed SMS template generates order information according to the logistics network matching result and the SMS template, and sends the order information to the user, specifically including: establishing multiple SMS templates of different types, obtaining user historical data, using a pre-constructed preference prediction model, predicting the preference of the order user according to the user historical data to obtain a preference prediction result; obtaining the preference prediction result, matching the SMS template type to the order user according to the preference prediction result; generating order information according to the logistics network matching result and the SMS template type, and sending the order information to the user.
[0012] Optionally, in a sixth implementation method of the first aspect of the present invention, establishing multiple different types of SMS templates, obtaining user historical data, using a pre-built preference prediction model, and predicting the preference of order users based on the user historical data to obtain a preference prediction result, specifically includes: obtaining user feedback data, and establishing multiple different types of SMS templates based on the user feedback data; obtaining historical order data, selecting an initial model, and training the initial model using the historical order data as a training set to obtain a preference prediction model; obtaining user historical data, using a preference prediction model, and predicting the preference of order users based on the user historical data to obtain a preference prediction result.
[0013] The second aspect of the present invention provides an order information generation and sending device, including: an acquisition module, used to construct an information acquisition script, and obtain target user order information through the information acquisition script; a screening module, used to clean and screen multiple target user order information obtained to obtain information to be processed, and obtain the logistics track of the target user order information from the information to be processed; a matching module, used to obtain the receipt status of the target user order information, extract the most recent logistics node information from the logistics track according to the receipt status, match the logistics node information with a pre-constructed network database, and obtain a logistics network matching result; a generation module, used to pre-construct an SMS template, generate order information according to the logistics network matching result and the SMS template, and send the order information to the user.
[0014] Optionally, in a first implementation method of the second aspect of the present invention, the acquisition module includes: a script construction unit, used to establish user screening rules and construct a basic script according to the user screening rules; an optimization unit, used to test and optimize the basic script to obtain an information acquisition script; an acquisition unit, used to obtain exogenous order information, and filter the exogenous order information through the information acquisition script to obtain target user order information.
[0015] Optionally, in a second implementation of the second aspect of the present invention, the screening module includes: a cleaning unit, used to parse the acquired multiple target user order information, and perform data cleaning on the parsed target user order information; a first screening unit, used to screen the cleaned multiple target user order information to filter out the target user order information that has not sent text messages within a limited time range, and obtain screening results; a second screening unit, used to establish data screening rules, and perform secondary screening on the screening results according to the data screening rules to obtain information to be processed; an extraction unit, used to obtain the information to be processed, and extract the logistics track in the information to be processed.
[0016] Optionally, in a third implementation of the second aspect of the present invention, the second screening unit includes: an extraction subunit, used to obtain screening results, and extract waybill number segments, marking interfaces, work order systems, and customer attributes in the screening results; a first screening subunit, used to establish data screening rules, and screen out target user order information with specific fields in the screening results according to the data screening rules to obtain a first result; a second screening subunit, used to screen out target user order information containing a specific marking interface in the first result according to the data screening rules to obtain a second result; a third screening subunit, used to screen out target user order information belonging to a specific work order system in the second result according to the data screening rules to obtain a third result; and a fourth screening subunit, used to screen out target user order information belonging to specific customer attributes in the third result according to the data screening rules to obtain information to be processed.
[0017] Optionally, in a fourth implementation method of the second aspect of the present invention, the matching module includes: a judgment unit, used to obtain the receipt status of the target user's order information and determine the receipt status; a processing unit, used to screen out the target user's order information if the receipt status is normal; and a first matching unit, used to extract the most recent logistics node information from the logistics track if the receipt status is abnormal, and use a machine learning algorithm to match the logistics node information with a pre-built outlet database to obtain a logistics outlet matching result.
[0018] Optionally, in a fifth implementation of the second aspect of the present invention, the generation module includes: a prediction unit, used to establish multiple different types of SMS templates, obtain user historical data, and use a pre-built preference prediction model to predict the preference of the order user based on the user historical data to obtain a preference prediction result; a second matching unit, used to obtain the preference prediction result, and match the SMS template type to the order user based on the preference prediction result; a generation unit, used to generate order information based on the logistics network matching result and the SMS template type, and send the order information to the user.
[0019] Optionally, in a sixth implementation of the second aspect of the present invention, the prediction unit includes: an establishment subunit for obtaining user feedback data, and establishing multiple different types of SMS templates based on the user feedback data; a construction subunit for obtaining historical order data, selecting an initial model, and training the initial model using the historical order data as a training set to obtain a preference prediction model; a prediction subunit for obtaining user historical data, using a preference prediction model, and predicting the preference of order users based on the user historical data to obtain a preference prediction result.
[0020] The third aspect of the present invention provides an order information generating and sending device, comprising a memory and at least one processor, wherein the memory stores computer-readable instructions; the at least one processor calls the computer-readable instructions in the memory to execute the various steps of the order information generating and sending method as described above.
[0021] A fourth aspect of the present invention provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a processor, implement the various steps of the order information generating and sending method described above.
[0022] Beneficial effects: The present invention provides a method for generating and sending order information, which first automatically obtains target user order information through an information acquisition script, then cleans and screens the obtained multiple target user order information to obtain information to be processed, and then obtains the logistics track of the target user order information from the information to be processed, without the need to manually screen the target user, thereby improving accuracy and efficiency; then obtains the receipt status of the target user order information, extracts the most recent logistics node information from the logistics track according to the receipt status, matches the logistics node information with a pre-built network database, and obtains a logistics network matching result; finally, generates order information according to the logistics network matching result and a pre-built SMS template, and sends the order information to the user. The present invention obtains user information in an automated manner, automatically screens demand customers after data analysis, and triggers SMS sending, thereby improving the accuracy and timeliness of customer service interaction and improving customer satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A first flow chart of a method for generating and sending order information provided by an embodiment of the present invention;
[0024] Figure 2 A second flow chart of the method for generating and sending order information provided by an embodiment of the present invention;
[0025] Figure 3 A third flow chart of the method for generating and sending order information provided by an embodiment of the present invention;
[0026] Figure 4 A fourth flow chart of the method for generating and sending order information provided by an embodiment of the present invention;
[0027] Figure 5 A fifth flow chart of the method for generating and sending order information provided by an embodiment of the present invention;
[0028] Figure 6 A sixth flow chart of the method for generating and sending order information provided by an embodiment of the present invention;
[0029] Figure 7 A seventh flow chart of the method for generating and sending order information provided by an embodiment of the present invention;
[0030] Figure 8 A schematic diagram of the structure of an order information generating and sending device provided in an embodiment of the present invention;
[0031] Fig. 9 Another structural schematic diagram of the device for generating and sending order information provided by an embodiment of the present invention;
[0032] Fig.10 A schematic diagram of the structure of an order information generating and sending device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The present invention provides a method, device, equipment and storage medium for generating and sending order information. The present invention first constructs a script to automatically obtain target user order information, cleans and screens the obtained target user order information, and then proposes the logistics track therein; then extracts the most recent logistics node information from the logistics track according to the receipt status, and matches it with a pre-built network database to obtain a logistics network matching result; finally, combines the logistics network matching result and the SMS template to generate order information, and sends the order information to the user. The whole process is completed automatically, the target group is screened by a data analysis method, and the SMS is triggered after screening, thereby improving the accuracy and timeliness of customer service interaction.
[0034] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] For ease of understanding, the specific process of the embodiment of the present invention is described below. It should be noted that the relevant steps of obtaining user personal information in the present invention are all performed with the user's authorization.
[0036] See also Figure 1 The first embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0037] S101. Construct an information acquisition script, and obtain the target user's order information through the information acquisition script;
[0038] Specifically, in this embodiment, the e-commerce platform can be accessed through the system, and the API interface can be called using Python and the requests library to obtain user order information. The information acquisition script can be run regularly through cron (Linux system) or Task Scheduler (Windows system), and the communicated users can be automatically and regularly screened out to obtain the target user order information. Obtaining order information through automated scripts can greatly save the time and cost of manual operations. It is easy to make input errors or omissions when manually processing order information, and automated scripts can collect data in a consistent and accurate manner, reducing the probability of errors. In addition, by building scripts that meet security standards, it can be ensured that only authorized personnel can access order information, reducing the risk of data leakage. Furthermore, the requirements of data protection and privacy regulations (such as GDPR, CCPA, etc.) can also be incorporated into the script design to ensure that the data processing and storage processes comply with relevant laws and regulations and avoid legal risks caused by illegal operations.
[0039] S102. Cleaning and screening the obtained multiple target user order information to obtain information to be processed, and obtaining the logistics track of the target user order information from the information to be processed;
[0040] There may be duplicate information and erroneous information in the multiple target user orders obtained. Data cleaning can delete duplicate information, correct existing errors, and provide data consistency. Data cleaning includes processing missing values, outliers, duplicate values, etc. in the data set, as well as data format conversion and data standardization.
[0041] In addition, the multiple target user orders obtained also include users under the charge of multiple different departments. Target user orders that are not within the service scope need to be eliminated to avoid overlapping service scopes and conflicts.
[0042] S103. Obtain the receipt status of the target user's order information, extract the most recent logistics node information from the logistics track according to the receipt status, match the logistics node information with the pre-built network database, and obtain the logistics network matching result;
[0043] In this embodiment, the location of the package can be known by obtaining the most recent logistics node information. When the package has an abnormal signature, the system can automatically arrange for the nearest logistics outlet to follow up according to the location of the package. No manual allocation is required, which can effectively improve the allocation efficiency.
[0044] For example, Mr. Zhang bought a laptop computer on an e-commerce platform and chose the standard express delivery service. After the package was sent from the seller's warehouse, it passed through multiple logistics nodes and finally arrived at Mr. Zhang's city. During this process, the logistics system will record and update the information of each logistics node of the package in real time, including key nodes such as shipment, transit, and arrival. When the package was successfully delivered to the delivery address specified by Mr. Zhang, Mr. Zhang was unable to sign for it in time due to a temporary business trip. After the courier tried to contact Mr. Zhang to no avail, he marked the package as "abnormal signing" according to the process. At this time, the system uses the built-in intelligent algorithm to calculate the logistics outlet closest to the package and with the strongest processing capacity based on the current location of the package and the distribution of all logistics outlets in Mr. Zhang's city, and assigns the follow-up task to the selected nearby logistics outlet.
[0045] S104. Pre-build a SMS template, generate order information according to the logistics network matching result and the SMS template, and send the order information to the user.
[0046] Once the logistics outlet responsible for follow-up is determined, the system can generate order information based on the SMS template and the logistics outlet responsible for follow-up, and promptly inform the user of the subsequent delivery service arrangements, ensuring that the user can always grasp the latest status of the package and improve the user's satisfaction with the logistics service. Through the automated and intelligent generation and sending of order information, not only the logistics efficiency is improved, the unnecessary delays and task reallocation caused by abnormal receipt are reduced, but also the user experience is greatly improved.
[0047] The present invention automatically acquires the target user's order information by constructing an information acquisition script, cleans and screens the target user's order information to obtain the information to be processed, and then acquires the logistics track of the target user's order information from the information to be processed without manual operation, and the data acquisition efficiency is higher and the security is better. After the logistics track is determined, the present invention extracts the most recent logistics node information from the logistics track according to the receipt status, matches the logistics node information with a pre-constructed network database to obtain a logistics network matching result, and finally generates order information according to the logistics network matching result and a text message template, sends the order information to the user, and realizes automatic task allocation and sending of service information for the target user order information to be processed, thereby improving the logistics management efficiency, allowing users to be informed of subsequent service notifications in a timely manner, and improving user satisfaction.
[0048] See also Figure 2 The second embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0049] S201. Establish user screening rules and construct a basic script according to the user screening rules;
[0050] Before building the basic script, it is necessary to determine the user screening rules so that the construction of the basic script can proceed in a targeted manner. This embodiment mainly arranges follow-up services at nearby outlets for users who have communicated with each other. Therefore, the user screening rules need to be specified to screen and obtain user order information corresponding to users who have communicated with each other from the cooperating e-commerce platform.
[0051] S202. Testing and optimizing the basic script to obtain an information acquisition script;
[0052] Basic script testing includes executing unit tests, integration tests, etc. to ensure the quality and stability of the code. During testing, you should also pay attention to collecting test results: including successful and failed test cases, as well as possible error messages. After the test is completed, the compiled code, resource files, configuration files, etc. should be packaged into the final product format. Finally, compressing and optimizing the final product can reduce the volume and increase the script loading speed, so that the information acquisition script can run faster and the data processing efficiency is higher.
[0053] S203. Obtain external order information, and filter the external order information through the information acquisition script to obtain target user order information.
[0054] Information acquisition scripts can be used to filter external order information and accurately filter data according to preset rules and logic, avoiding human errors and omissions. The automated screening process significantly reduces the need for manual intervention, thereby speeding up data processing. In addition, scripts can process large amounts of data in parallel, making them more efficient than manual operations. When dealing with different scenarios and data sources, information acquisition scripts can adjust the screening conditions and logic at any time according to business needs, providing greater flexibility and scalability than fixed data processing processes.
[0055] See also Figure 3 The third embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0056] S301. Parsing the acquired multiple target user order information, and performing data cleaning on the parsed target user order information;
[0057] By parsing the acquired data, it can be converted into a format that is easy to process and analyze. Specifically, different modules can be used to parse different types of data. For example, for JSON data, Python's json module or pandas' read_json function can be used for parsing; for XML data, Python's xml.etree.ElementTree module can be used for parsing; for CSV / Excel files, pandas' read_csv or read_excel functions can be used for parsing. After parsing the data, it is also necessary to clean the data. The cleaning steps usually include processing missing values, outliers, duplicate values, etc. The cleaned data can avoid duplicate values, outliers, etc., and can effectively avoid the allocation of repeated tasks and the repeated sending of order information or sending of wrong information to users, which affects the image of the logistics company.
[0058] S302. Filter the cleaned multiple target user order information to filter out the target user order information that has not sent SMS within a limited time range to obtain the screening results;
[0059] In specific applications, you can set up to filter out the order information of target users who have not sent text messages within 3 days or 2 days. In this embodiment, for users who have not sent order information for communication and feedback in time, they can also be covered by setting the time range, ensuring that the system can promptly feedback the logistics order status and subsequent follow-up outlets to users, thereby improving user satisfaction with logistics services.
[0060] S303. Establish data screening rules, and perform secondary screening on the screening results according to the data screening rules to obtain information to be processed;
[0061] In this embodiment, the data screening rules are used to further screen out user order information that is not within the service scope of the system. Even if the user order information belongs to the same logistics company, it will be followed up by different departments due to different service scopes. By performing a secondary screening on the screening results, it is possible to avoid confusion such as overlapping services, repeated sending of order information, and repeated follow-up by service personnel from different departments.
[0062] S304. Obtain the information to be processed, and extract the logistics track in the information to be processed.
[0063] By extracting the logistics trajectory, the system can locate the current area and position of the logistics package, which is convenient for allocating service points in subsequent steps.
[0064] See also Figure 4 The fourth embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0065] S401. Obtain the screening results, extract the waybill number segment, marking interface, work order system and customer attributes in the screening results;
[0066] In the management of logistics companies, different waybill number segments, marking interfaces, work order systems and customer attributes can be used as service identification, and different departments can provide services respectively. By establishing data screening rules, the system can accurately screen the data and obtain the data that needs to be processed.
[0067] S402. Establish data screening rules, and filter out the target user order information with specific fields in the waybill number segment in the screening results according to the data screening rules to obtain the first result;
[0068] For example, you can set up to filter out target user order information with waybill numbers starting with 76, 77, 56, and 3146, and push it to fixed outlets for processing.
[0069] S403. Filter out the target user order information containing the specific marking interface in the first result according to the data screening rule to obtain the second result;
[0070] For example, you can set up to filter out the target user order information whose marking interface is Intercity Pass and Intercity Pass Query Order, and push it to the corresponding department for processing;
[0071] S404. Filter out the target user order information belonging to the specific work order system in the second result according to the data screening rule to obtain a third result;
[0072] For example, you can set up a system to filter out target user order information that belongs to a specific work order system and push it to the corresponding responsible site for processing;
[0073] S405. Filter out the target user order information belonging to specific customer attributes in the third result according to the data screening rules to obtain information to be processed.
[0074] For example, the order information of target users with VIP customer attributes is screened out and pushed by the system to a VIP user-specific service platform for processing.
[0075] By screening out different types of data in turn, we can avoid overlapping service scopes or mismatched services, thereby improving user satisfaction with logistics services.
[0076] See also Figure 5 The fifth embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0077] S501. Obtain the receipt status of the target user's order information and determine the receipt status;
[0078] S502. If the receipt status is normal, filter out the target user's order information;
[0079] If the order is signed normally, no further processing is required and the logistics service process is completed.
[0080] S503. If the receipt status is abnormal, extract the most recent logistics node information from the logistics track, use a machine learning algorithm to match the logistics node information with a pre-built network database to obtain a logistics network matching result.
[0081] If an order shows an abnormal receipt, it is necessary to extract the most recent logistics node information from the logistics track. The logistics node information can reflect the area where the logistics package is located. Once the area is determined, the nearby logistics outlets can be further searched for tracking services based on the area.
[0082] Specifically, the system selects the latest record from the logistics track, that is, the most recent logistics node information. For example, this record may show that the package last appeared at "XX Logistics Station, XX District, XX City". Logistics companies or e-commerce platforms maintain a pre-built network database that contains detailed information on all logistics outlets, including location (latitude and longitude, address), service scope, processing capacity, etc. The network information in the database is formatted in a form that can be processed by machine learning algorithms, such as feature vectors or tabular data. The system uses machine learning algorithms (such as K-nearest neighbor algorithms, decision trees, support vector machines, etc.) to process the most recent logistics node information. The algorithm takes logistics node information (such as address or longitude and latitude) as input and compares it with the data in the network database. By calculating similarity or distance (such as Euclidean distance, Manhattan distance, etc.), the algorithm finds the logistics network that best matches the logistics node information. In this example, the algorithm may identify several logistics outlets near "XX Logistics Station, XX District, XX City" and select the one with the strongest service capability and the shortest distance as the matching result.
[0083] See also Figure 6 The sixth embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0084] S601. Establish multiple different types of SMS templates, obtain user historical data, use the pre-built preference prediction model, predict the order user's preference based on the user's historical data, and obtain the preference prediction result;
[0085] In order to improve the user experience, in this embodiment, multiple different types of SMS templates are pre-established. Different SMS templates have different styles, which can give users different reading experiences, thereby deepening the user's impression of the logistics company's services. The preference prediction model is used to predict the order user's preference, which can improve the accuracy of the results, and no manual participation is required, which is efficient and can improve customer satisfaction.
[0086] S602. Obtain preference prediction results, and match SMS template types to order users according to the preference prediction results;
[0087] S603. Generate order information according to the logistics network matching result and SMS template type, and send the order information to the user.
[0088] The preference prediction results reflect the user's preference for different types of SMS templates. Matching the user with the most appropriate SMS template based on the preference can deepen the user's impression of the order information. For users who originally have negative emotions, if they receive a SMS with a language style that matches their preferences, their emotions can be effectively improved.
[0089] See also Figure 7 The seventh embodiment of the method for generating and sending order information in the embodiment of the present invention includes:
[0090] S701. Obtain user feedback data, and establish multiple different types of SMS templates based on user feedback data;
[0091] In order to establish SMS templates that are preferred by most users, this embodiment can obtain user feedback by initiating questionnaires in advance, optimize the language style and layout of the SMS module based on user feedback, and adjust the number and types of SMS templates to cover all user groups as much as possible.
[0092] S702. Obtain historical order data, select an initial model, and train the initial model using the historical order data as a training set to obtain a preference prediction model;
[0093] Specifically, historical order data includes user orders, order information sent to users, and user satisfaction with the order information. By obtaining partial data to train the initial model, the resulting preference prediction model can predict which style or type of order information the user is more satisfied with.
[0094] S703. Obtain user historical data, adopt a preference prediction model, and predict the order user's preference based on the user's historical data to obtain a preference prediction result.
[0095] After the preference prediction model is constructed, the preferences of different users can be predicted by obtaining their historical data, so as to know which type of SMS template the user may prefer.
[0096] The above describes the method for generating and sending order information in the embodiment of the present invention. The following describes the device for generating and sending order information in the embodiment of the present invention. Figure 8 In one embodiment of the present invention, an order information generating and sending device includes:
[0097] An acquisition module 10 is used to construct an information acquisition script, and acquire the target user's order information through the information acquisition script;
[0098] A screening module 20 is used to clean and screen the obtained multiple target user order information to obtain information to be processed, and obtain the logistics track of the target user order information from the information to be processed;
[0099] The matching module 30 is used to obtain the receipt status of the target user's order information, extract the most recent logistics node information from the logistics track according to the receipt status, match the logistics node information with the pre-built network database, and obtain the logistics network matching result;
[0100] The generation module 40 is used to pre-build a SMS template, generate order information according to the logistics network matching result and the SMS template, and send the order information to the user.
[0101] See also Fig. 9 In one embodiment of the present invention, an order information generating and sending device includes:
[0102] An acquisition module 10 is used to construct an information acquisition script, and acquire the target user's order information through the information acquisition script;
[0103] A screening module 20 is used to clean and screen the obtained multiple target user order information to obtain information to be processed, and obtain the logistics track of the target user order information from the information to be processed;
[0104] The matching module 30 is used to obtain the receipt status of the target user's order information, extract the most recent logistics node information from the logistics track according to the receipt status, match the logistics node information with the pre-built network database, and obtain the logistics network matching result;
[0105] A generating module 40 is used to pre-build a SMS template, generate order information according to the logistics network matching result and the SMS template, and send the order information to the user;
[0106] In this embodiment, the acquisition module 10 includes:
[0107] A script construction unit 11 is used to establish user screening rules and construct a basic script according to the user screening rules;
[0108] An optimization unit 12, used for testing and optimizing the basic script to obtain an information acquisition script;
[0109] An acquisition unit 13 is used to acquire external order information, and filter the external order information through the information acquisition script to obtain the target user order information;
[0110] In this embodiment, the screening module 20 includes:
[0111] A cleaning unit 21 is used to parse the acquired multiple target user order information and perform data cleaning on the parsed target user order information;
[0112] The first screening unit 22 is used to screen the cleaned multiple target user order information to screen out the target user order information that has not sent a short message within a limited time range to obtain a screening result;
[0113] The second screening unit 23 is used to establish a data screening rule and perform a secondary screening on the screening result according to the data screening rule to obtain information to be processed;
[0114] An extraction unit 24, used to obtain the information to be processed and extract the logistics track in the information to be processed;
[0115] In this embodiment, the second screening unit 23 includes:
[0116] The extraction subunit 231 is used to obtain the screening results and extract the waybill number segment, marking interface, work order system and customer attributes in the screening results;
[0117] The first screening subunit 232 is used to establish a data screening rule, and screen out the target user order information with a specific field in the waybill number segment in the screening result according to the data screening rule to obtain a first result;
[0118] A second screening subunit 233 is used to screen out the target user order information containing the specific marking interface in the first result according to the data screening rule to obtain a second result;
[0119] A third screening subunit 234 is used to screen out the target user order information belonging to the specific work order system in the second result according to the data screening rule to obtain a third result;
[0120] The fourth screening subunit 235 is used to screen out the target user order information belonging to the specific customer attribute in the third result according to the data screening rule to obtain information to be processed;
[0121] In this embodiment, the matching module 30 includes:
[0122] The judging unit 31 is used to obtain the receipt status of the target user's order information and to judge the receipt status;
[0123] The processing unit 32 is used to filter out the target user's order information if the receipt status is normal;
[0124] The first matching unit 33 is used to extract the most recent logistics node information from the logistics track if the receipt status is abnormal, and use a machine learning algorithm to match the logistics node information with a pre-built network database to obtain a logistics network matching result;
[0125] In this embodiment, the generating module 40 includes:
[0126] The prediction unit 41 is used to establish multiple different types of SMS templates, obtain user historical data, use a pre-built preference prediction model, and predict the preference of the order user according to the user historical data to obtain a preference prediction result;
[0127] The second matching unit 42 is used to obtain a preference prediction result and match a short message template type to the order user according to the preference prediction result;
[0128] The generating unit 43 is used to generate order information according to the logistics network point matching result and the SMS template type, and send the order information to the user.
[0129] In this embodiment, the prediction unit 41 includes:
[0130] Establishing subunit 411, used for obtaining user feedback data, and establishing multiple different types of SMS templates according to the user feedback data;
[0131] A construction subunit 412 is used to obtain historical order data, select an initial model, and train the initial model using the historical order data as a training set to obtain a preference prediction model;
[0132] The prediction subunit 413 is used to obtain user historical data, adopt a preference prediction model, and predict the preference of the order user according to the user historical data to obtain a preference prediction result.
[0133] The order information generating and sending device of the present invention is connected to the e-commerce platform through the system, and automatically obtains the target user order information; then, by cleaning the obtained target user order information, and intelligently identifying the logistics track and matching the logistics outlet closest to the most recent logistics node information, finally forming the order information corresponding to the logistics outlet, and sending the order information to the user in time, and sending service SMS to the order user with problems in time, thereby improving the accuracy and timeliness of customer service interaction and improving customer satisfaction.
[0134] The above is a detailed description of the order information generating and sending device in the embodiment of the present invention from the perspective of modular functional entities. The following is a detailed description of the order information generating and sending device in the embodiment of the present invention from the perspective of hardware processing.
[0135] Fig.10 A schematic diagram of the structure of an order information generation and sending device provided in an embodiment of the present invention, the order information generation and sending device 900 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage medium 930 can be temporary storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the order information generation and sending device 900. Furthermore, the processor 910 can be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the order information generation and sending device 900 to implement the steps of the order information generation and sending method provided in the above-mentioned method embodiments.
[0136] The order information generating and sending device 900 may also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input and output interfaces 960, and / or one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Fig.10 The structure of the order information generating and sending device shown does not constitute a limitation of the order information generating and sending device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0137] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the order information generating and sending method.
[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the equipment or device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0140] It is understandable that those skilled in the art can make equivalent substitutions or changes based on the technical solution and inventive concept of the present invention, and all these changes or substitutions should fall within the protection scope of the claims attached to the present invention.
Claims
1. A method for generating and sending order information, characterized in that: The steps include: Construct an information acquisition script, and obtain target user order information through the information acquisition script; Cleaning and screening the obtained multiple target user order information to obtain information to be processed, and obtaining the logistics track of the target user order information from the information to be processed; Obtaining the receipt status of the target user's order information, extracting the most recent logistics node information from the logistics track according to the receipt status, matching the logistics node information with a pre-built network database, and obtaining a logistics network matching result; A SMS template is pre-built, order information is generated according to the logistics network matching result and the SMS template, and the order information is sent to the user.
2. The method for generating and sending order information according to claim 1, characterized in that: The information acquisition script is constructed to acquire the target user's order information through the information acquisition script, specifically including: Establish user screening rules, and construct basic scripts according to the user screening rules; Testing and optimizing the basic script to obtain an information acquisition script; Acquire external order information, and filter the external order information through the information acquisition script to obtain target user order information.
3. The method for generating and sending order information according to claim 1, characterized in that: The step of cleaning and screening the acquired multiple target user order information to obtain the information to be processed, and obtaining the logistics track of the target user order information from the information to be processed specifically includes: Parsing the acquired multiple target user order information, and performing data cleaning on the parsed target user order information; The cleaned order information of multiple target users is screened to screen out the order information of target users who have not sent SMS within a limited time range to obtain the screening result; Establishing data screening rules, and performing secondary screening on the screening results according to the data screening rules to obtain information to be processed; The information to be processed is obtained, and the logistics track in the information to be processed is extracted.
4. The method for generating and sending order information according to claim 3, characterized in that: The establishing of data screening rules and performing secondary screening on the screening results according to the data screening rules to obtain information to be processed specifically includes: Get the screening results and extract the waybill number segment, marking interface, work order system and customer attributes in the screening results; Establishing a data screening rule, and filtering out the target user order information having a specific field in the waybill number segment in the screening result according to the data screening rule, to obtain a first result; According to the data screening rule, the target user order information containing the specific marking interface in the first result is screened out to obtain the second result; Filter out the target user order information belonging to the specific work order system in the second result according to the data screening rule to obtain a third result; The target user order information belonging to the specific customer attribute in the third result is screened out according to the data screening rule to obtain the information to be processed.
5. The method for generating and sending order information according to claim 1, characterized in that: The step of obtaining the receipt status of the target user's order information, extracting the most recent logistics node information from the logistics track according to the receipt status, matching the logistics node information with a pre-built network database, and obtaining a logistics network matching result specifically includes: Obtain the receipt status of the target user's order information and determine the receipt status; If the receipt status is normal, the target user's order information is filtered out; If the receipt status is abnormal, the most recent logistics node information is extracted from the logistics track, and a machine learning algorithm is used to match the logistics node information with a pre-built network database to obtain a logistics network matching result.
6. The method for generating and sending order information according to claim 1, characterized in that: The pre-built SMS template generates order information according to the logistics network point matching result and the SMS template, and sends the order information to the user, specifically including: Establish multiple different types of SMS templates, obtain user historical data, use the pre-built preference prediction model to predict the order user's preference based on the user's historical data, and obtain the preference prediction results; Obtaining preference prediction results, and matching SMS template types to order users according to the preference prediction results; Generate order information based on the logistics network matching result and SMS template type, and send the order information to the user.
7. The method for generating and sending order information according to claim 6, characterized in that: The method of establishing multiple different types of SMS templates, obtaining user historical data, and using a pre-built preference prediction model to predict the preference of order users based on the user historical data to obtain a preference prediction result specifically includes: Obtain user feedback data and create multiple different types of SMS templates based on the user feedback data; Acquire historical order data, select an initial model, and train the initial model using the historical order data as a training set to obtain a preference prediction model; Obtain user historical data, adopt a preference prediction model, and predict the order user's preference based on the user's historical data to obtain a preference prediction result.
8. An order information generating and sending device, characterized in that: include: An acquisition module is used to construct an information acquisition script, and acquire the target user's order information through the information acquisition script; A screening module is used to clean and screen the obtained multiple target user order information to obtain information to be processed, and obtain the logistics track of the target user order information from the information to be processed; A matching module is used to obtain the receipt status of the target user's order information, extract the most recent logistics node information from the logistics track according to the receipt status, match the logistics node information with the pre-built network database, and obtain a logistics network matching result; The generation module is used to pre-build a SMS template, generate order information according to the logistics network matching result and the SMS template, and send the order information to the user.
9. An order information generating and sending device, characterized in that: comprising a memory and at least one processor, wherein the memory has computer-readable instructions stored therein; The at least one processor calls the computer-readable instructions in the memory to execute the various steps of the method for generating and sending order information as described in any one of claims 1-7.
10. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the various steps of the method for generating and sending order information as described in any one of claims 1 to 7 are implemented.