International customer order management method, device and equipment and storage medium

The improved RNN model is used to verify and correct the receiving address in international customer orders, solving the problem of invalid addresses caused by address diversity and complexity in international logistics, and improving order accuracy and logistics process transparency.

CN118628002APending Publication Date: 2024-09-10SHANGHAI YUNDA HIGH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410624765.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Invalid or inaccurate addresses in international logistics orders due to address diversity and complexity increase the difficulty and cost of delivery, which may lead to undeliverable packages and customer complaints.

Method used

The improved RNN model is used to verify and correct the validity of the recipient address, and the address data is processed through the self-attention mechanism. It is combined with the address database and geocoding API to generate order confirmation information and update the order information.

Benefits of technology

It improves order accuracy, reduces logistics delays and costs caused by address errors, adapts to address formats in different countries and regions, and enhances the transparency of the logistics process and customer experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628002A
    Figure CN118628002A
Patent Text Reader

Abstract

The invention relates to the field of logistics, and discloses an international customer order management method, device and equipment and a storage medium, and the method is used for carrying out the validity verification and correction of a receiving address based on an improved RNN model, thereby optimizing the order management of international customers. The method comprises the following steps: receiving order data submitted by an international customer, and extracting initial order information; based on an improved RNN model, validity verification is carried out on the receiving address in the initial order information, and if the verification result is that the receiving address is invalid, the receiving address is corrected; on the basis of the initial order information and the corrected receiving address, order confirmation information is generated and sent to the international customer; and updating the initial order information according to the order confirmation result to obtain updated order information, respectively converting a final sending address and a final receiving address in the updated order information into a first geographic code and a second geographic code, adding the first geographic code and the second geographic code into the updated order information to obtain final order information, and generating a tracking code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics technology, and in particular to an international customer order management method, device, equipment and storage medium. Background Art

[0002] With the rapid development of the company's business, logistics companies are not only satisfied with deepening their presence in the domestic market, but have also turned their attention to the vast international market to seek more business opportunities. However, in the process of managing international logistics orders, logistics companies face an important and complex challenge - the handling of international addresses.

[0003] Due to the diversity and complexity of international addresses, their composition, format and naming conventions are often significantly different from those in China. This means that when international customers enter their addresses, they may enter invalid or inaccurate address information because they are unfamiliar with or do not understand local address specifications. These inaccurate addresses not only cause great trouble to delivery personnel, increase the difficulty and time cost of delivery, but may also result in the failure of successful delivery of packages, leading to complaints and dissatisfaction from customers.

[0004] The diversity and complexity of addresses are reflected in many aspects. The address naming rules of different countries and regions may vary greatly. Some regions use a combination of house numbers, street names, city names, province names and country names, while other regions may use different identification methods such as postal codes, community names, and region names. In addition, there may be multiple addresses with the same or similar names in the same region, which further increases the difficulty of address recognition.

[0005] Therefore, the existing technology still needs to be improved and developed. Summary of the invention

[0006] The present invention provides an international customer order management method, device, equipment and storage medium, which are used to verify and correct the validity of the recipient address based on an improved RNN model, thereby optimizing the order management for international customers.

[0007] A first aspect of the present invention provides an international customer order management method, which includes: receiving order data submitted by international customers, and parsing the order data to extract initial order information; verifying the validity of the delivery address in the initial order information based on an improved RNN model, and if the verification result is that the delivery address is invalid, correcting the delivery address; generating and sending order confirmation information to the international customer based on the initial order information and the corrected delivery address; obtaining an order confirmation result, updating the initial order information according to the order confirmation result to obtain updated order information, and converting the final shipping address and the final delivery address in the updated order information into a first geographic code and a second geographic code, respectively; adding the first geographic code and the second geographic code to the updated order information to obtain final order information, and generating a tracking code corresponding to the final order information.

[0008] Optionally, in a first implementation method of the first aspect of the present invention, the receiving of order data submitted by international customers and parsing the order data to extract initial order information includes: receiving order data submitted by international customers and parsing the order data into multiple fields; mapping the multiple fields to corresponding fields in a preset data structure; extracting the shipping address, sender's contact information, receiving address, recipient's contact information and item information according to the preset data structure and field mapping relationship, and integrating them to obtain the initial order information.

[0009] Optionally, in a second implementation method of the first aspect of the present invention, the validity of the delivery address in the initial order information is checked based on the improved RNN model, and if the verification result is that the delivery address is invalid, the delivery address is corrected, including: constructing an RNN model, and improving the RNN model based on a self-attention mechanism to obtain an improved RNN model; inputting the delivery address in the initial order information into the improved RNN model, and obtaining the verification result output by the improved RNN model; if the verification result is that the delivery address is invalid, the delivery address is corrected.

[0010] Optionally, in a third implementation method of the first aspect of the present invention, if the verification result is that the recipient address is invalid, the recipient address is corrected, including: if the verification result is that the recipient address is invalid, the recipient address is compared with the address information in the address database; based on the comparison result, the address information with the highest similarity to the recipient address is found; and the recipient address is corrected based on the address information with the highest similarity to the recipient address.

[0011] Optionally, in a fourth implementation method of the first aspect of the present invention, generating and sending order confirmation information to the international customer based on the initial order information and the revised delivery address includes: obtaining the language selected by the international customer, and selecting a corresponding notification template from a predefined template library according to the language selected by the international customer; using natural language generation technology to fill the initial order information and the revised delivery address into the placeholder of the notification template, and generating order confirmation information based on the filled notification template; and sending the order confirmation information to the international customer in the language selected by the international customer.

[0012] Optionally, in a fifth implementation method of the first aspect of the present invention, the order confirmation result is obtained, the initial order information is updated according to the order confirmation result to obtain updated order information, and the final shipping address and the final receiving address in the updated order information are converted into a first geocode and a second geocode, respectively, including: obtaining the order confirmation result, updating the initial order information according to the order confirmation result to obtain updated order information; constructing a geocoding API request according to the shipping address and the final receiving address in the updated order information, and sending the geocoding API request to a map service API; obtaining response data returned by the map service API, and extracting the first geocode corresponding to the shipping address and the second geocode corresponding to the final receiving address from the response data.

[0013] Optionally, in a sixth implementation method of the first aspect of the present invention, the adding the first geocode and the second geocode to the updated order information to obtain final order information, and generating a tracking code corresponding to the final order information, includes: adding the first geocode and the second geocode to the updated order information to obtain final order information; formatting the final order information to obtain formatted order information; and generating a tracking code corresponding to the formatted order information based on the formatted order information.

[0014] The second aspect of the present invention provides an international customer order management device, including: an extraction module, used to receive order data submitted by international customers, and parse the order data to extract initial order information; a correction module, used to verify the validity of the delivery address in the initial order information based on an improved RNN model, and if the verification result is that the delivery address is invalid, the delivery address is corrected; a sending module, used to generate and send order confirmation information to the international customer based on the initial order information and the corrected delivery address; an update module, used to obtain an order confirmation result, update the initial order information according to the order confirmation result, obtain updated order information, and convert the final shipping address and final delivery address in the updated order information into a first geographic code and a second geographic code, respectively; a generation module, used to add the first geographic code and the second geographic code to the updated order information, obtain final order information, and generate a tracking code corresponding to the final order information.

[0015] Optionally, in a first implementation method of the second aspect of the present invention, the extraction module includes: a parsing unit, used to receive order data submitted by international customers and parse the order data into multiple fields; a mapping unit, used to map the multiple fields to corresponding fields in a preset data structure; a first extraction unit, used to extract the shipping address, sender's contact information, receiving address, recipient's contact information and item information according to the preset data structure and field mapping relationship, and integrate them to obtain the initial order information.

[0016] Optionally, in a second implementation of the second aspect of the present invention, the correction module includes: a construction unit, used to construct an RNN model, and improve the RNN model based on a self-attention mechanism to obtain an improved RNN model; a verification unit, used to input the delivery address in the initial order information into the improved RNN model, and obtain a verification result output by the improved RNN model; and a correction unit, used to correct the delivery address if the verification result is that the delivery address is invalid.

[0017] Optionally, in a third implementation of the second aspect of the present invention, the sending module includes: a selection unit, used to obtain the language selected by the international customer, and select a corresponding notification template from a predefined template library according to the language selected by the international customer; a first generation unit, used to fill the initial order information and the revised delivery address into the placeholder of the notification template using natural language generation technology, and generate order confirmation information according to the filled notification template; a sending unit, used to send the order confirmation information to the international customer in the language selected by the international customer.

[0018] Optionally, in a fourth implementation method of the second aspect of the present invention, the update module includes: an update unit, used to obtain an order confirmation result, update the initial order information according to the order confirmation result, and obtain updated order information; a request unit, used to construct a geocoding API request according to the shipping address and the final receiving address in the updated order information, and send the geocoding API request to the map service API; a second extraction unit, used to obtain response data returned by the map service API, and extract the first geocoding corresponding to the shipping address and the second geocoding corresponding to the final receiving address from the response data.

[0019] Optionally, in a fifth implementation of the second aspect of the present invention, the generation module includes: an adding unit, used to add the first geocode and the second geocode to the updated order information to obtain the final order information; a formatting unit, used to format the final order information to obtain formatted order information; and a second generation unit, used to generate a tracking code corresponding to the formatted order information based on the formatted order information.

[0020] The third aspect of the present invention provides an international customer order management device, comprising: a memory and at least one processor, wherein the memory stores computer-readable instructions, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the computer-readable instructions in the memory so that the international customer order management device executes the various steps of the international customer order management method as described above.

[0021] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, which, when executed on a computer, enable the computer to execute the various steps of the international customer order management method described above.

[0022] In the technical solution provided by the present invention, a model based on an improved RNN is used to verify the validity of the receiving address, which can timely discover and correct invalid address information, reduce logistics delays and cost increases caused by address errors, and send order confirmation information to international customers after correction, so that international customers can further confirm the correct receiving address, which is helpful to improve order accuracy. Moreover, the solution can adapt to the address formats of different countries and regions and has strong universality. With the continuous accumulation of data, the improved RNN model can be further learned and optimized to improve the accuracy and efficiency of address verification. In addition, the final shipping address and the final receiving address in the updated order information are converted into the first geocode and the second geocode respectively, and the first geocode and the second geocode are added to the updated order information to obtain the final order information, and a tracking code corresponding to the final order information is generated. Customers can track the transportation status of their orders in real time, which improves the transparency of the logistics process and customer experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A first flow chart of the international customer order management method provided by an embodiment of the present invention;

[0024] Figure 2 A second flow chart of the international customer order management method provided by an embodiment of the present invention;

[0025] Figure 3 A third flow chart of the international customer order management method provided by an embodiment of the present invention;

[0026] Figure 4 A fourth flow chart of the international customer order management method provided by an embodiment of the present invention;

[0027] Figure 5 A fifth flow chart of the international customer order management method provided by the embodiment of the present invention;

[0028] Figure 6 A sixth flow chart of the international customer order management method provided by an embodiment of the present invention;

[0029] Figure 7 A schematic diagram of the structure of an international customer order management device provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the structure of an international customer order management device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The embodiment of the present invention provides an international customer order management method, device, equipment and storage medium, which is used to perform validity verification and correction on the delivery address based on an improved RNN model, thereby optimizing the order management for international customers. The method includes: receiving order data submitted by international customers, parsing the order data to extract initial order information; performing validity verification on the delivery address in the initial order information based on the improved RNN model, and if the verification result is that the delivery address is invalid, correcting the delivery address; generating and sending order confirmation information to the international customer based on the initial order information and the corrected delivery address; obtaining the order confirmation result, updating the initial order information according to the order confirmation result, obtaining the updated order information, and converting the final shipping address and the final delivery address in the updated order information into a first geographic code and a second geographic code respectively; adding the first geographic code and the second geographic code to the updated order information to obtain the final order information, and generating a tracking code corresponding to the final order information.

[0032] 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.

[0033] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 A first embodiment of an international customer order management method in an embodiment of the present invention includes:

[0034] S101, receiving order data submitted by international customers, and parsing the order data to extract initial order information.

[0035] It is understandable that the execution subject of the present invention may be an international customer order management device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.

[0036] In this embodiment, the order data submitted by the international customers is received through the API, and the order data can be in either JSON format or XML format. When the order data is in JSON format, the built-in json module can be used to parse the order data; or the JSON.parse() method can be used to parse the JSON string into a JavaScript object.

[0037] When the order data is in XML format, you can use the xml.etree.ElementTree or lxml library to parse the order data; you can also use libraries such as DOMParser or xml2js to parse the order data.

[0038] S102: Based on the improved RNN model, the validity of the delivery address in the initial order information is checked. If the check result shows that the delivery address is invalid, the delivery address is corrected.

[0039] In this embodiment, the improved RNN model introduces a self-attention mechanism based on the RNN model. A key advantage of the self-attention mechanism is that it can parallelly calculate the output representations of all positions in the sequence, thereby greatly improving the computational efficiency. In addition, since the output of each position is based on the entire input sequence, the self-attention mechanism can capture long-distance dependencies, which is very important for processing long sequence data.

[0040] In this embodiment, the verification results output by the improved RNN model include a valid recipient address and an invalid recipient address. A valid recipient address indicates that the recipient address is correct and does not need to be corrected. An invalid recipient address indicates that the recipient address is inaccurate and needs to be corrected.

[0041] In this embodiment, if the verification result is that the recipient address is invalid, the address can be corrected using an address resolution API, an address standardization tool, or a custom correction algorithm.

[0042] The correction algorithm can be based on grammatical rules of the address, geographical knowledge, or machine learning models. It can suggest or automatically make corrections based on invalid address parts (such as misspellings, incorrect formats, or non-existent regions).

[0043] The corrected address is again verified by the RNN model to ensure the accuracy of the correction.

[0044] S103: Generate and send order confirmation information to the international customer based on the initial order information and the revised delivery address.

[0045] In this embodiment, a template for order confirmation information is pre-set, and the template should include key information of the order, such as the shipping address, the sender's contact information, the receiving address, the recipient's contact information, and the item information.

[0046] When generating order confirmation information, the extracted initial order information is filled into the template of the order confirmation information, and the revised delivery address is inserted into the template of the order confirmation information to replace the original delivery address.

[0047] After sending, track and confirm the delivery of the information.

[0048] S104, obtaining the order confirmation result, updating the initial order information according to the order confirmation result, obtaining the updated order information, and converting the final shipping address and the final receiving address in the updated order information into the first geographic code and the second geographic code respectively.

[0049] In this embodiment, the order confirmation result is obtained based on the customer's feedback. If the customer modifies the delivery address, it is ensured that the final delivery address is valid and deliverable.

[0050] In this embodiment, a geocoding service (such as Google Maps Geocoding API, Bing Maps API, etc.) is used to convert the shipping address and final delivery address in the updated order information into geocoding (latitude and longitude coordinates).

[0051] S105: Add the first geographic code and the second geographic code to the updated order information to obtain final order information, and generate a tracking code corresponding to the final order information.

[0052] In this embodiment, the converted geocode (latitude and longitude coordinates) is added to the updated order information as a supplement to the shipping address and the final delivery address.

[0053] In this embodiment, the tracking code is an important identifier for tracking and querying the logistics status.

[0054] The present embodiment provides an international customer order management method, which performs validity verification on the delivery address in the initial order information based on an improved RNN model. When the verification result shows that the delivery address is invalid, the delivery address is corrected, and order confirmation information is generated based on the initial order information and the corrected delivery address. Then, the initial order information is updated according to the order confirmation result to obtain updated order information. The improved RNN-based model is used to verify the validity of the delivery address, which can timely discover and correct invalid address information, reduce logistics delays and cost increases caused by address errors, and send order confirmation information to international customers after correction, so that international customers can further confirm. The correct delivery address helps to improve order accuracy, and the solution can adapt to address formats in different countries and regions and has strong universality. With the continuous accumulation of data, the improved RNN model can be further learned and optimized to improve the accuracy and efficiency of address verification. In addition, the final shipping address and final delivery address in the updated order information are converted into the first geocode and the second geocode respectively, and the first geocode and the second geocode are added to the updated order information to obtain the final order information, and a tracking code corresponding to the final order information is generated. Customers can track the transportation status of their orders in real time, which improves the transparency of the logistics process and customer experience.

[0055] See also Figure 2 The second embodiment of the international customer order management method in the embodiment of the present invention includes:

[0056] S201. Receive order data submitted by international customers, and parse the order data into multiple fields.

[0057] In this embodiment, an HTTP service (such as Flask or Django) can be used to receive order data submitted by international customers.

[0058] In this embodiment, the order data is usually sent in JSON format. The received order data can be parsed into a Python dictionary using the json module.

[0059] S202: Map multiple fields to corresponding fields in a preset data structure.

[0060] In this embodiment, the preset data structure defines the organization of the initial order information, including which fields are required, which fields are optional, and the logical relationship between the fields. Mapping the parsed multiple fields to the preset data structure can ensure the integrity and consistency of the data, and also facilitate subsequent data processing and storage.

[0061] S203: extract the shipping address, the sender's contact information, the receiving address, the recipient's contact information and the item information according to the preset data structure and field mapping relationship, and integrate them to obtain the initial order information.

[0062] In this embodiment, the mailing address, the mailer's contact information, the mailing address, the mailer's contact information, and the item information may be extracted according to the field order and format in the preset data structure.

[0063] In this embodiment, based on the preset data structure and field mapping relationship, the order data can be accurately parsed and key information such as the shipping address, sender's contact information, receiving address, recipient's contact information and item information can be extracted. Automatic parsing of order data can reduce the occurrence of human errors and improve the accuracy and reliability of order processing.

[0064] See also Figure 3 A third embodiment of an international customer order management method in an embodiment of the present invention includes:

[0065] S301, constructing an RNN model, and improving the RNN model based on a self-attention mechanism to obtain an improved RNN model.

[0066] In this embodiment, when constructing the RNN model, LSTM (Long Short-Term Memory Network) or GRU (Gated Recurrent Unit) is used as the RNN architecture, and then the input layer, hidden layer and output layer of the RNN model are constructed. The input layer can receive the processed address sequence; the output layer should be able to generate a probability or label indicating the validity of the address. In the hidden layer, RNN units are used to capture the contextual information in the address sequence.

[0067] Understandably, the Self-Attention Mechanism is a powerful mechanism in deep learning, especially when processing sequence data (such as text, speech, time series, etc.). Its core idea is to allow each element in the sequence (usually a word, character or time step) to "pay attention" to other elements in the sequence and assign weights based on the relative importance of these elements. This mechanism allows the model to capture dependencies within the sequence without being restricted by distance.

[0068] In this embodiment, improving the RNN model based on the self-attention mechanism includes introducing the self-attention mechanism between hidden layers of the RNN model and introducing the self-attention mechanism between different levels of the RNN model.

[0069] Introducing the self-attention mechanism between the hidden layers of the RNN model makes the output of each time step depend not only on the hidden state of the previous time step, but also on the global information of the entire input sequence, which can help the RNN better capture long-distance dependencies and alleviate the "vanishing gradient" problem in the RNN.

[0070] The self-attention mechanism is introduced between different layers of the RNN model to capture dependencies of different granularities. For example, short-distance dependencies are captured in the bottom RNN, while long-distance dependencies are captured in the high-level RNN. By combining information from different levels, the structure and semantics of the input sequence can be better understood.

[0071] In this embodiment, a data set containing valid and invalid recipient addresses is collected, and the validity of each address is marked. The data set is then used to train an improved RNN model, the goal of the improved RNN model being to learn the mapping from address text to validity labels.

[0072] During training, the improved RNN model adjusts its parameters to minimize the difference between the predicted labels and the actual labels (e.g., using a cross-entropy loss function).

[0073] S302: Input the delivery address in the initial order information into the improved RNN model, and obtain the verification result output by the improved RNN model.

[0074] In this embodiment, before the delivery address in the initial order information is input into the improved RNN model, the delivery address is first converted into a format that can be processed by the improved RNN model, for example, the text is converted into word embeddings or character embeddings.

[0075] In this embodiment, the verification results output by the improved RNN model include whether the recipient address is valid or invalid.

[0076] S303: If the verification result shows that the receiving address is invalid, the receiving address is corrected.

[0077] In this embodiment, if the verification result is that the receiving address is invalid, the receiving address is corrected, specifically including: if the verification result is that the receiving address is invalid, the receiving address is compared with the address information in the address database; based on the comparison result, the address information with the highest similarity to the receiving address is found; and the receiving address is corrected based on the address information with the highest similarity to the receiving address.

[0078] In this embodiment, an address database may be pre-set, and the address database includes historical order addresses, a standard address library, a third-party address service API, and the like.

[0079] In this embodiment, according to the comparison result, a string similarity algorithm (such as cosine similarity, Jaccard similarity, Levenshtein distance, etc.) or a machine learning model is used to find out several address information closest to the invalid recipient address.

[0080] In this embodiment, the RNN model naturally has the ability to process variable-length sequences, and the length and complexity of the recipient address may vary depending on the region and user input habits. The RNN model is improved through the self-attention mechanism. The improved RNN model can pay more attention to the key parts of the address, regardless of the overall length of the address. Moreover, the improved RNN model allows the model to directly access and compare information at any two positions in the entire sequence, thereby more effectively capturing long-term dependencies. Therefore, the validity of the recipient address using the improved RNN model is verified with higher verification accuracy.

[0081] See also Figure 4 A fourth embodiment of an international customer order management method in an embodiment of the present invention includes:

[0082] S401. Obtain a language selected by an international customer, and select a corresponding notification template from a predefined template library according to the language selected by the international customer.

[0083] In this embodiment, when a customer places an order or registers an account, multiple language options are provided for the customer to choose from. The language options may include common languages ​​such as English, Spanish, French, and Chinese.

[0084] Once a customer has selected their language preference, the system needs to record this choice, which can be done by storing a language field in the customer profile or session information in the database.

[0085] In this embodiment, a notification template library containing multiple languages ​​is predefined and created, and each language has a corresponding notification template.

[0086] Each notification template is set with placeholders for subsequent filling of dynamic information related to the order (such as the revised delivery address).

[0087] Understandably, the templates in the template library need to be updated and maintained regularly to ensure the accuracy and timeliness of the language.

[0088] S402: Use natural language generation (NLG) technology to fill the initial order information and the revised delivery address into the placeholder of the notification template, and generate order confirmation information according to the filled notification template.

[0089] In this embodiment, the NLG system first parses the notification template and identifies the placeholders therein; then, the extracted initial order information and delivery address are matched and mapped with the placeholders in the template; finally, based on the mapping relationship, the filled text is generated using NLG technology, which may include simple text replacement or involve more complex grammatical and semantic transformations to ensure that the generated text is grammatically correct and semantically coherent.

[0090] In this embodiment, it is verified whether the filled order confirmation information complies with the grammatical and semantic rules and whether it accurately reflects the initial order information.

[0091] S403. Send order confirmation information to the international customer using the language selected by the international customer.

[0092] In this example, ensure that the information is carefully proofread before sending to avoid any language or formatting errors. Assuming that the language selected by the international customer is English, the order confirmation information is sent to the international customer in English.

[0093] In this embodiment, whether the sent order confirmation information is successfully delivered is monitored, and customer feedback is paid attention to.

[0094] In this embodiment, through natural language generation, the corrected delivery address can be automatically filled into the placeholder of the notification template, so that the order confirmation information is quickly generated. Moreover, by automatically generating and sending the order confirmation information, the time for manual intervention and manual processing can be reduced, thereby improving operational efficiency, helping to reduce operating costs and speeding up order processing.

[0095] See also Figure 5 A fifth embodiment of an international customer order management method in an embodiment of the present invention includes:

[0096] S501. Obtain an order confirmation result, and update initial order information according to the order confirmation result to obtain updated order information.

[0097] In this embodiment, the shipping address in the order confirmation result is used as the final shipping address, and the receiving address in the order confirmation result is used as the final receiving address. If the other order information has not changed, the relevant information in the initial order information is used.

[0098] S502: Construct a geocoding API request according to the shipping address and final delivery address in the updated order information, and send the geocoding API request to the map service API.

[0099] In this embodiment, the shipping address and final delivery address in the updated order information are used as parameters to construct a geocoding API request, and the geocoding API request is sent using the Python requests library and the JavaScript Fetch API HTTP request library.

[0100] After receiving the request, the map service API (such as Google Maps API or Baidu Maps API) returns response data containing geocodes.

[0101] S503: Acquire response data returned by the map service API, and extract a first geographic code corresponding to the mailing address and a second geographic code corresponding to the final receiving address from the response data.

[0102] In this embodiment, the geocode may be a latitude and longitude coordinate, or other identifier, which is used to uniquely identify the address.

[0103] In this example, the status code and error message in the response are checked to ensure that the request was successful and returned a valid geocode.

[0104] In this embodiment, a geocoding API request is constructed based on the shipping address and final delivery address in the updated order information, and the constructed geocoding API request is sent to the map service API to obtain the geocoding, which can ensure the accuracy of address conversion and avoid human errors.

[0105] See also Figure 6 A sixth embodiment of an international customer order management method in an embodiment of the present invention includes:

[0106] S601: Add the first geographic code and the second geographic code to the updated order information to obtain final order information.

[0107] In this embodiment, the order record of the updated order information is found in the database.

[0108] Add or update two fields to store geocoding information, such as shipping_geocode (the geocode of the shipping address) and receiving_geocode (the geocode of the final delivery address).

[0109] Assign the first geocode (the geocode of the shipping address) to the shipping_geocode field.

[0110] Assign the second geocode (the geocode of the final delivery address) to the receiving_geocode field.

[0111] S602: Format the final order information to obtain formatted order information.

[0112] In this embodiment, the final order information is formatted to ensure that it meets the requirements of the logistics service provider or the processing standards of the internal system.

[0113] S603: Generate a tracking code corresponding to the formatted order information based on the formatted order information.

[0114] In this embodiment, formatted order information is used as input data to construct a tracking code API request, and then the constructed tracking code API request is sent to the API endpoint of the logistics service provider through an HTTP request (such as POST, PUT, etc.), and the response data returned by the logistics service provider is received. Finally, the response data is parsed to extract the tracking code.

[0115] In this embodiment, the generated tracking code is stored in the order record for subsequent query and tracking.

[0116] The international customer order management method in the embodiment of the present invention is described above. The device in the embodiment of the present invention is described below. Figure 7 , the implementation method of the international customer order management device in the embodiment of the present invention includes:

[0117] Extraction module 701, for receiving order data submitted by international customers, and parsing the order data to extract initial order information;

[0118] A correction module 702 is used to perform validity verification on the delivery address in the initial order information based on the improved RNN model, and if the verification result shows that the delivery address is invalid, the delivery address is corrected;

[0119] A sending module 703, configured to generate and send order confirmation information to the international customer based on the initial order information and the revised delivery address;

[0120] An updating module 704 is used to obtain an order confirmation result, update the initial order information according to the order confirmation result, obtain updated order information, and convert the final shipping address and the final receiving address in the updated order information into a first geographic code and a second geographic code respectively;

[0121] The generating module 705 is used to add the first geographic code and the second geographic code to the updated order information to obtain the final order information, and generate a tracking code corresponding to the final order information.

[0122] In this embodiment, the extraction module 701 includes: a parsing unit 7011, used to receive order data submitted by international customers and parse the order data into multiple fields; a mapping unit 7012, used to map the multiple fields to corresponding fields in a preset data structure; a first extraction unit 7013, used to extract the shipping address, sender's contact information, receiving address, recipient's contact information and item information according to the preset data structure and field mapping relationship, and integrate them to obtain initial order information.

[0123] In this embodiment, the correction module 702 includes: a construction unit 7021, which is used to construct an RNN model and improve the RNN model based on the self-attention mechanism to obtain an improved RNN model; a verification unit 7022, which is used to input the receiving address in the initial order information into the improved RNN model and obtain the verification result output by the improved RNN model; a correction unit 7023, which is used to correct the receiving address if the verification result is that the receiving address is invalid.

[0124] In this embodiment, the sending module 703 includes: a selection unit 7031, which is used to obtain the language selected by the international customer, and select a corresponding notification template from a predefined template library according to the language selected by the international customer; a first generation unit 7032, which is used to fill the initial order information and the revised delivery address into the placeholder of the notification template using natural language generation technology, and generate order confirmation information according to the filled notification template; a sending unit 7033, which is used to send the order confirmation information to the international customer using the language selected by the international customer.

[0125] In this embodiment, the update module 704 includes: an update unit 7041, which is used to obtain an order confirmation result, update the initial order information according to the order confirmation result, and obtain updated order information; a request unit 7042, which is used to construct a geocoding API request according to the shipping address and the final receiving address in the updated order information, and send the geocoding API request to the map service API; a second extraction unit 7043, which is used to obtain response data returned by the map service API, and extract the first geocoding corresponding to the shipping address and the second geocoding corresponding to the final receiving address from the response data.

[0126] In this embodiment, the generation module 705 includes: an adding unit 7051, which is used to add the first geocode and the second geocode to the updated order information to obtain the final order information; a formatting unit 7052, which is used to format the final order information to obtain formatted order information; and a second generation unit 7053, which is used to generate a tracking code corresponding to the formatted order information based on the formatted order information.

[0127] In this embodiment, a model based on an improved RNN is used to verify the validity of the delivery address, which can timely discover and correct invalid address information, reduce logistics delays and cost increases caused by address errors, and send order confirmation information to international customers after correction, so that international customers can further confirm the correct delivery address, which helps to improve order accuracy. In addition, the solution can adapt to address formats in different countries and regions and has strong universality. With the continuous accumulation of data, the improved RNN model can be further learned and optimized to improve the accuracy and efficiency of address verification. In addition, the final shipping address and the final delivery address in the updated order information are converted into the first geocode and the second geocode respectively, and the first geocode and the second geocode are added to the updated order information to obtain the final order information, and a tracking code corresponding to the final order information is generated. Customers can track the transportation status of their orders in real time, which improves the transparency of the logistics process and customer experience.

[0128] above Figure 7 The international customer order management device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The international customer order management device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0129] Figure 8 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 810 (for example, one or more processors) and memory 820, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 833 or data 832. Among them, the memory 820 and the storage medium 830 may be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown), and each module may include a series of instruction operations in the device 800. Furthermore, the processor 810 may be configured to communicate with the storage medium 830 to execute a series of instruction operations in the storage medium on the device 800.

[0130] The device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input and output interfaces 860, and / or one or more operating systems 831, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc.

[0131] An embodiment of 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 international customer order management method.

[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0133] 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.

[0134] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for managing international customer orders, characterized in that: The international customer order management method comprises: Receiving order data submitted by international customers, and parsing the order data to extract initial order information; Based on the improved RNN model, the validity of the delivery address in the initial order information is checked. If the verification result shows that the delivery address is invalid, the delivery address is corrected. Generate and send order confirmation information to the international customer based on the initial order information and the revised delivery address; Acquire an order confirmation result, update the initial order information according to the order confirmation result to obtain updated order information, and convert the final shipping address and the final receiving address in the updated order information into a first geographic code and a second geographic code respectively; The first geographic code and the second geographic code are added to the updated order information to obtain final order information, and a tracking code corresponding to the final order information is generated.

2. The international customer order management method according to claim 1, characterized in that: The receiving of order data submitted by international customers and parsing the order data to extract initial order information includes: Receive order data submitted by international customers, and parse the order data into multiple fields; Mapping the multiple fields to corresponding fields in a preset data structure; According to the preset data structure and field mapping relationship, the shipping address, sender's contact information, receiving address, recipient's contact information and item information are extracted and integrated to obtain the initial order information.

3. The international customer order management method according to claim 1, characterized in that: The improved RNN model is used to verify the validity of the delivery address in the initial order information. If the verification result shows that the delivery address is invalid, the delivery address is corrected, including: Constructing an RNN model, and improving the RNN model based on a self-attention mechanism to obtain an improved RNN model; Inputting the delivery address in the initial order information into the improved RNN model, and obtaining the verification result output by the improved RNN model; If the verification result shows that the receiving address is invalid, the receiving address will be corrected.

4. The international customer order management method according to claim 3, characterized in that: If the verification result shows that the receiving address is invalid, the receiving address is corrected, including: If the verification result shows that the receiving address is invalid, the receiving address is compared with the address information in the address database; According to the comparison result, find out the address information with the highest similarity to the receiving address; The receiving address is modified based on the address information that is most similar to the receiving address.

5. The international customer order management method according to claim 1, characterized in that: The generating and sending order confirmation information to the international customer based on the initial order information and the revised delivery address includes: Obtain the language selected by the international customer, and select a corresponding notification template from a predefined template library according to the language selected by the international customer; Filling the initial order information and the revised delivery address into the placeholder of the notification template using natural language generation technology, and generating order confirmation information according to the filled notification template; Said order confirmation is sent to the international customer in the language selected by the international customer.

6. The international customer order management method according to claim 1, characterized in that: The obtaining of the order confirmation result, updating the initial order information according to the order confirmation result to obtain the updated order information, and converting the final shipping address and the final receiving address in the updated order information into the first geographic code and the second geographic code respectively, comprises: Obtaining an order confirmation result, updating the initial order information according to the order confirmation result, and obtaining updated order information; Constructing a geocoding API request according to the shipping address and the final delivery address in the updated order information, and sending the geocoding API request to the map service API; The response data returned by the map service API is obtained, and the first geocode corresponding to the mailing address and the second geocode corresponding to the final receiving address are extracted from the response data.

7. The international customer order management method according to claim 1, characterized in that: The adding the first geographic code and the second geographic code to the updated order information to obtain final order information, and generating a tracking code corresponding to the final order information, includes: Adding the first geocode and the second geocode to the updated order information to obtain final order information; Format the final order information to obtain formatted order information; A tracking code corresponding to the formatted order information is generated based on the formatted order information.

8. An international customer order management device, characterized in that: include: An extraction module, used to receive order data submitted by international customers and parse the order data to extract initial order information; A correction module is used to verify the validity of the delivery address in the initial order information based on the improved RNN model. If the verification result shows that the delivery address is invalid, the delivery address is corrected. A sending module, used for generating and sending order confirmation information to the international customer based on the initial order information and the revised delivery address; An updating module, configured to obtain an order confirmation result, update the initial order information according to the order confirmation result, obtain updated order information, and convert a final shipping address and a final receiving address in the updated order information into a first geographic code and a second geographic code respectively; A generating module is used to add the first geographic code and the second geographic code to the updated order information to obtain final order information, and generate a tracking code corresponding to the final order information.

9. An international customer order management 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 steps of the international customer order management method according to 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 steps of the international customer order management method as described in any one of claims 1 to 7 are implemented.