Message mapping method and system for processing template changes
By generating message feature values and comparing them with extractor values, a suitable message extractor is identified, which solves the problem of difficulty in extracting information from emails after merchants change templates, and achieves support for new templates and information extraction efficiency.
Patent Information
- Application Number
- CN202210861953.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-05-12
- Filing Date
- 2022-07-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-07-22
AI Technical Summary
Existing email extractors often can only parse one specific email template, making it difficult to identify the appropriate extractor when a merchant changes the message template, resulting in the system being unable to extract information from the new template's emails.
The feature value is generated by applying a mapping function to the received message and compared with the values of multiple message extractors to identify the extractor that satisfies the similarity criterion, thereby using the extractor to extract information.
This enables merchants to efficiently extract information from emails of the new template after changing the message template, avoiding the difficulty of retraining or deploying a large number of extractors, and improving the adaptability and efficiency of the system.
Smart Images

Figure CN115705560B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to monitoring of electronic messages, and in particular to extracting information from electronic messages created using message templates. Background Art
[0002] The information extracted from the messages can be used in a variety of situations. For example, an e-commerce platform can allow people who have accounts on the platform to connect their email accounts. The e-commerce platform can then monitor some or all emails sent to these email accounts in order to provide value-added services to the account holders, such as tracking purchases, shipments, and deliveries.
[0003] To extract the information, an email extractor may be used. An email extractor is an algorithm capable of extracting relevant information from the content of an email. For example, an email extractor may extract a tracking identifier, order date, shipping date, carrier, and product or other information related to an order from a buyer's shipping notification email received from a merchant for a recent order placed by the buyer.
[0004] Highly accurate and precise email extractors are typically trained to each parse only one specific email template. Thus, a complex email extraction system, such as one built to decipher e-commerce emails from a buyer's inbox, may require thousands or hundreds of thousands of email extractors, each trained to recognize specific relevant information from a different email template. Summary of the invention
[0005] In some cases, information from a message generated using a template can be extracted using a message extractor specifically for such a template. However, when a merchant changes a message template, it may be difficult to identify an appropriate extractor. According to an embodiment of the present disclosure, a feature value may be assigned to a received message. The feature value may then be used to compare with stored values of various message extractors, and based on a similarity index and possibly a quality score, a new message extractor may be created and / or used for such a message.
[0006] The subject matter of the present application relates to identifying a message extractor to be used to obtain information from a received message.
[0007] In one aspect, a method performed at a computer system is provided. The method includes applying a mapping function to a received message to create a feature value, wherein the mapping function is suitable for mapping similar messages to similar feature values. The method further includes comparing the feature value with a value associated with each of a plurality of message extractors, and determining that the feature value does not match any value associated with the plurality of message extractors. The method further includes identifying at least one message extractor from the plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared with a feature value from the received message. The method also includes extracting information from the received message using the identified at least one message extractor.
[0008] In some embodiments, the method may further include checking the extracted information against known information field values to verify that the identified at least one message extractor correctly extracted the information.
[0009] In some embodiments, the similarity criterion includes the similarity index being within a threshold distance from the feature value.
[0010] In some embodiments, the received message is an email message, and wherein the element comprises a Hypertext Markup Language (HTML) element from the email message extracted using XPath.
[0011] In some embodiments, the similarity index is created by associating elements from a fixed length array with a fixed length array associated with each of the plurality of message extractors.
[0012] In some embodiments, identifying further comprises identifying at least one message extractor using information from within the received message.
[0013] In some embodiments, the information includes at least one of a merchant name, a sender address, a product name, a consignor, or an identifier format in the received message.
[0014] In some embodiments, the identifying further uses an increase or decrease in the number of messages associated with the characteristic value to identify the at least one message extractor.
[0015] In some embodiments, the method further comprises creating a quality score for the information extracted from the received message; and extracting the information when the quality score exceeds a quality threshold.
[0016] In some embodiments, the method further includes creating a quality score for information extracted from the received message; and submitting the message to one of an operator of the commerce platform or a receiving entity to verify the information within the received message.
[0017] In another aspect, a computer system is provided, the computer system comprising a processor and a communication subsystem. The computer system is configured to apply a mapping function to a received message received through the communication subsystem to create a feature value, wherein the mapping function is suitable for mapping similar messages to similar feature values. The computer system is further configured to compare the feature value with a value associated with each of a plurality of message extractors, and determine that the feature value does not match any value associated with the plurality of message extractors. The computer system is further configured to identify at least one message extractor from the plurality of message extractors, the identification determining that a value associated with the message extractor satisfies a similarity criterion when compared with a feature value from the received message. The computer system is further configured to extract information from the received message using the identified at least one message extractor.
[0018] In some embodiments, the computer system is further configured to check the extracted information against known information field values to verify that the identified at least one message extractor correctly extracted the information.
[0019] In some embodiments, the similarity criterion includes the similarity index being within a threshold distance from the feature value.
[0020] In some embodiments, the received message is an email message, and wherein the element comprises a Hypertext Markup Language (HTML) element from the email message extracted using XPath.
[0021] In some embodiments, the similarity index is created by associating elements from a fixed length array with a fixed length array associated with each of the plurality of message extractors.
[0022] In some embodiments, the computer system is further configured to identify by identifying at least one message extractor using information from within the received message.
[0023] In some embodiments, the information includes at least one of a merchant name, a sender address, a product name, a consignor, or an identifier format in the received message.
[0024] In some embodiments, the computer system is further configured to identify at least one message extractor by using an increase or decrease in the amount of the message associated with the characteristic value to identify.
[0025] In some embodiments, the computer system is further configured to use the identified at least one message extractor by creating a quality score for information extracted from the received message; and extract the information when the quality score exceeds a quality threshold.
[0026] In some embodiments, the computer system is further configured to use the identified at least one message extractor by creating a quality score for information extracted from the received message; and submit the message to one of an operator of the commerce platform or a receiving entity to verify the information within the received message.
[0027] In another aspect, a non-transitory computer-readable medium for storing instruction codes is provided. The instruction codes, when executed by a processor of a computer system, cause the computer system to apply a mapping function to a received message received through a communication subsystem to create a feature value, wherein the mapping function is suitable for mapping similar messages to similar feature values; compare the feature value with a value associated with each of a plurality of message extractors; determine that the feature value does not match any value associated with the plurality of message extractors; identify at least one message extractor from the plurality of message extractors, the identification determining that a value associated with the message extractor satisfies a similarity criterion when compared with a feature value from the received message; and extract information from the received message using the identified at least one message extractor.
[0028] Accordingly, a method, a computer system, a computer program and a computer readable medium are provided as described in detail in the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The present disclosure will be better understood with reference to the accompanying drawings, in which:
[0030] Figure 1 is a block diagram illustrating an example e-commerce system in which embodiments of the present disclosure can be implemented.
[0031] Figure 2 It is shown that the use Figure 1 A block diagram of an example interface for a merchant of an e-commerce platform.
[0032] Figure 3 is a block diagram illustrating a first example message created from a template with embedded information.
[0033] Figure 4 is a block diagram illustrating a second example message created from a template with embedded information.
[0034] Figure 5 is a process diagram illustrating a process for assigning values to clusters.
[0035] Figure 6 is a process diagram for identifying at least one message extractor for extracting information from a received message.
[0036] Figure 7is a block diagram illustrating a simplified computer device that can be used with embodiments of the present disclosure. DETAILED DESCRIPTION
[0037] The present disclosure will now be described in detail by referring to the accompanying drawings and showing various illustrative, non-limiting embodiments that describe the present disclosure. However, the present disclosure can be implemented in many different forms and should not be construed as being limited to the illustrative embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure will be comprehensive and will fully convey the conception of the present disclosure to those skilled in the art.
[0038] According to various embodiments of the present disclosure, the system can detect that a message associated with the system uses a new template. The system can then identify possible extractors that can be used to extract information from the message if an extractor has not yet been assigned.
[0039] In particular, a computer system such as an e-commerce platform may monitor a user's email or other messaging system for messages of a particular type. Such messages are typically computer generated and form part of an e-commerce transaction, and may include messages that an order has been placed, an order has been shipped, an order has been delivered, etc. Typically, such messages are formed using templates. The e-commerce platform may include message extractors for known templates or groups of templates, wherein these message extractors can successfully extract information from these messages.
[0040] When a template changes (e.g., when a particular sender changes the template they use to send some or all messages), such as when a merchant slightly adjusts or completely changes the layout of an email (such as an order confirmation email), a new message extractor may be needed to extract information from messages that utilize this new template. In other cases, the container of the template may change completely, such as when a merchant switches from email notifications to Short Message Service (SMS) notifications. Further, in some cases, SMS notifications may have their own templates.
[0041] However, an e-commerce platform serving thousands of suppliers may have thousands or hundreds of thousands of message extractors based on known templates, so a suitable extractor may be difficult to identify or may not exist. The result may be that the system is no longer able to extract content from any order confirmation emails it receives that use the merchant's new template. Furthermore, it is possible that none of the existing email extractors can effectively extract information from the new email template, so a new extractor may be needed. At the same time, the buyer is no longer able to receive updates about the business activity.
[0042] Provided below are systems and methods for applying a mapping function to a received message to create a feature value (sometimes also referred to as a fingerprint), wherein the mapping function is adapted to map similar messages to similar feature values. These feature values can then be compared to values associated with each of a plurality of message extractors. When the feature value does not match any of the values associated with the plurality of message extractors, a message extractor can be found for the received message by determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from the received message. The identified message extractor can then be used to extract information from the received message.
[0043] Sample e-commerce platform
[0044] Although integration with a business platform is not required, in some embodiments, the methods disclosed herein can be performed on or in association with a business platform such as an e-commerce platform. Therefore, an example of a business platform will be described.
[0045] Figure 1 An example e-commerce platform 100 according to one embodiment is shown. The e-commerce platform 100 can be used to provide merchants' products and services to customers. Although the present disclosure contemplates the use of devices, systems, and processes to purchase products and services, for simplicity, the description herein will refer to products. All references to products in the present disclosure should also be understood as references to products and / or services, including, for example, physical products, digital content (e.g., music, videos, games), software, tickets, subscriptions, services to be provided, etc.
[0046] Although the disclosure contemplates throughout that 'merchants' and 'customers' may be more than just individuals, for simplicity, the description herein generally refers to merchants and customers themselves. All references to merchants and customers in the disclosure should also be understood as references to groups of individuals, companies, enterprises, computing entities, etc., and may represent for-profit or non-profit product exchanges. Further, although the present disclosure refers to "merchants" and "customers" throughout and describes their roles themselves, the e-commerce platform 100 should be understood as more generally supporting users in an e-commerce environment, and all references to merchants and customers in the present disclosure should also be understood as references to users, such as merchant users (e.g., sellers, retailers, wholesalers, or product providers), customer users (e.g., buyers, purchasing agents, consumers, or product users), potential users (e.g., users who are browsing but have not yet committed to a purchase, users evaluating the e-commerce platform 100 for potential use in marketing and selling products, etc.), service provider users (e.g., transportation provider 112, financial providers, etc.), company or enterprise users (e.g., company representatives who purchase, sell, or use products; corporate users; customer relationship or customer management agents, etc.), information technology users, computing entity users (e.g., computing robots used to purchase, sell, or use products), etc. Furthermore, it can be appreciated that while in one context a given user may play a given role (e.g., as a merchant) and their associated device may be referred to accordingly (e.g., as a merchant device), in another context the same person may play a different role (e.g., as a customer) and the same or another associated device may be referred to accordingly (e.g., as a customer device). For example, a person may be a merchant of one type of product (e.g., shoes) and a customer / consumer of another type of product (e.g., groceries). In another example, a person may be both a consumer and a merchant of the same type of product. In a particular example, a merchant dealing in a particular category of goods may act as a customer of the same category of goods when ordering from a wholesaler (wholesaler acting as a merchant).
[0047] The e-commerce platform 100 provides online services / facilities for merchants to manage their businesses. The facilities described herein are shown as part of the platform 100, but may also be configured in whole or in part to be separate from the platform 100 as independent services. Furthermore, in some embodiments, such facilities may be provided additionally or alternatively by one or more providers / entities.
[0048] exist Figure 1In the example of , the facility is deployed by a machine, service or engine that executes computer software, modules, program codes and / or instructions on one or more processors, which may be part of the platform 100 or external to the platform as described above. Merchants can use the e-commerce platform 100 to implement or manage commerce with customers, such as through online stores 138, applications 142A-B, channels 110A-B and / or through point-of-sale (POS) devices 152 at physical locations (e.g., physical storefronts or other locations, such as through kiosks, terminals, readers, printers, 3D printers, etc.). Merchants can use the e-commerce platform 100 as the only commercial presence with customers, or in combination with other merchant commercial facilities, such as through physical stores (e.g., 'brick-and-mortar' retail stores), merchant off-platform websites 104 (e.g., commercial Internet websites or other Internet or network properties or assets supported by or on behalf of merchants that are separate from the e-commerce platform 100), applications 142B, etc. However, even these 'other' merchant business facilities can be integrated or communicated with the e-commerce platform 100, for example, the POS device 152 in the merchant's physical store is linked to the e-commerce platform 100, the merchant's off-platform website 104 is bound to the e-commerce platform 100, for example by linking the content of the off-platform merchant website 104 to the 'buy button' of the online store 138, etc.
[0049] The online store 138 may represent a multi-tenant facility including multiple virtual storefronts. In an embodiment, a merchant may configure and / or manage one or more storefronts in the online store 138, such as through a merchant device 102 (e.g., a computer, laptop, mobile computing device, etc.), and provide products to customers through a variety of different channels 110A-B (e.g., online store 138; application 142A-B; physical storefront, through POS device 152; electronic market, such as through an electronic purchase button integrated into a website or social media channel, such as on a social network, social media page, social media messaging system). Merchants can sell across channels 110A-B and then manage their sales through the e-commerce platform 100, where the channel 110A can be provided as a facility or service inside or outside the e-commerce platform 100. Additionally or alternatively, merchants can sell in their physical retail stores, in pop-up stores, through wholesale, over the phone, etc., and then manage their sales through the e-commerce platform 100. Merchants can adopt all or any combination of these operating modes. It is worth noting that it is possible that by adopting multiple and / or specific combinations of these modes, merchants can increase sales probability and / or sales volume. In the present disclosure, the terms "online store 138" and "storefront" can be used synonymously to refer to a merchant's online e-commerce service provision through the e-commerce platform 100, wherein the online store 138 can refer to a collection of storefronts supported by the e-commerce platform 100 (e.g., for one or more merchants), or to a single merchant's storefront (e.g., the merchant's online store).
[0050] In some embodiments, customers may interact with platform 100 through customer devices 150 (e.g., computers, laptops, mobile computing devices, etc.), POS devices 152 (e.g., retail devices, kiosks, automated (self-service) checkout systems, etc.), and / or any other commerce interface devices known in the art. E-commerce platform 100 may enable merchants to contact customers through online stores 138, through applications 142A-B, through POS devices 152 at physical locations (e.g., merchant's storefronts or other locations), communicate with customers via electronic communications facilities 129, etc., in order to provide a system for contacting customers and facilitating merchant services for real or virtual pathways that can be used to contact and interact with customers.
[0051] In some embodiments, and as further described herein, the e-commerce platform 100 may be implemented by a processing facility. Such a processing facility may include a processor and a memory. The processor may be a hardware processor. The memory may be and / or may include a non-transitory computer-readable medium. The memory may be and / or may include a random access memory (RAM) and / or a persistent storage device (e.g., a magnetic storage device). The processing facility may store (e.g., in a memory) a set of instructions that, when executed, cause the e-commerce platform 100 to perform e-commerce functions and support functions as described herein. The processing facility may be one or more of a server, a client, a network infrastructure, a mobile computing platform, a cloud computing platform, a fixed computing platform, and / or other computing platforms or may be part thereof, and may provide electronic connections and communications between components of the e-commerce platform 100, merchant devices 102, payment gateways 106, applications 142A-B, channels 110A-B, transportation providers 112, customer devices 150, point-of-sale devices 152, and the like. In some embodiments, the processing facility may be or may include one or more such computing devices that work in collaboration. For example, multiple collaborative computing devices may act as / provide the processing facility. The e-commerce platform 100 may be implemented as or using one or more of the following: cloud computing services, software as a service (SaaS), infrastructure as a service (IaaS), platform as a service (PaaS), desktop as a service (DaaS), management software as a service (MSaaS), mobile backend as a service (MBaaS), information technology management as a service (ITMaaS), etc. For example, the underlying software implementing the facilities described herein (e.g., online store 138) may be provided as a service and centrally hosted (e.g., then accessed by users through a web browser or other application, and / or accessed through a customer device 150, a POS device 152, etc.). In some embodiments, elements of the e-commerce platform 100 may be implemented to operate and / or integrate with various other platforms and operating systems.
[0052] In some embodiments, facilities of the e-commerce platform 100 (e.g., online store 138) can provide content to a client device 150, for example, via a network connected to the e-commerce platform 100 (using data 134). For example, the online store 138 can provide or send content in response to a request for data 134 from a client device 150, where a browser (or other application) is connected to the online store 138 via a network using a network communication protocol (e.g., Internet Protocol). The content can be written in a machine-readable language and can include hypertext markup language (HTML), a template language, JavaScript, etc. and / or any combination thereof.
[0053] In some embodiments, the online store 138 may be or may include a service instance that provides content to a client device and allows a client to browse and purchase a variety of available products (e.g., add a product to a shopping cart, purchase through a purchase button, etc.). Merchants may also customize the look and feel of their website through a theme system, such as in which merchants can select and change the look and feel of the merchant's online store 138 by changing their theme while showing the same underlying product and business data within the product information of the online store. It is possible that the theme can be further customized through a theme editor (i.e., a design interface that enables users to flexibly customize the design of their website). Additionally or alternatively, it is possible that the theme can be customized additionally or alternatively using theme-specific settings that can, for example, change aspects of a given theme (e.g., specific colors, fonts, and pre-built layout schemes). In some embodiments, the online store may implement a content management system for website content. Merchants may use such a content management system when creating blog posts or static pages and publishing them to their online store 138 (e.g., through blogs, articles, login pages, etc.), and configuring navigation menus. Merchants can upload images (e.g., products), videos, content, data, etc. to the e-commerce platform 100, such as for system storage (e.g., as data 134). In some embodiments, the e-commerce platform 100 can provide functionality for manipulating such images and content, such as functionality for resizing images, associating images with products, adding and associating text with images, adding images for new product variations, protecting images, etc.
[0054] As described herein, the e-commerce platform 100 may provide sales and marketing services for products to merchants through a variety of different channels 110A-B, including, for example, the online store 138 described herein, applications 142A-B, and through a physical POS device 152. The e-commerce platform 100 may additionally or alternatively include business support services 116 associated with operating an online business (such as providing one or more of a domain registration service 118 associated with their online store, a payment service 120 for facilitating transactions with customers, a shipping service 122 for providing customers with shipping options for purchased products, a fulfillment service for managing inventory, risk and insurance services 124 associated with product protection and liability, merchant billing, etc.), an administrator 114, a warehouse management system, etc. The services 116 may be provided via the e-commerce platform 100 or in association with an external facility, such as provided by a payment gateway 106 for payment processing, a shipping provider 112 for expediting product shipping, etc.
[0055] In some embodiments, the e-commerce platform 100 can be configured with a shipping service 122 (e.g., through the e-commerce platform shipping facility or through a third-party carrier) to provide merchants and / or their customers with various shipping-related information, such as shipping labels or freight information, real-time delivery updates, tracking, etc.
[0056] Figure 2 A non-limiting embodiment of a home page for the administrator 114 is depicted. The administrator 114 may be referred to as an administration console and / or an administrator console. The administrator 114 may show information about daily tasks, recent activity for the store, and next steps that merchants may take to build their business. In some embodiments, merchants may log into the administrator 114 via a merchant device 102 (e.g., a desktop computer or a mobile device) and manage various aspects of their online store 138, such as viewing recent visits or order activity for the online store 138, updating the online store 138 catalog, managing orders, etc. In some embodiments, merchants may be able to access the online store 138 by using a sidebar (e.g., Figure 2 The administrator 114 may include various interfaces for accessing and managing core aspects of a merchant's business, including orders, products, customers, available reports, and discounts. The administrator 114 may additionally or alternatively include interfaces for managing the store's sales channels, including an online store 138, (multiple) mobile applications (mobile apps) that customers can use to access the store, POS devices, and / or purchase buttons. The administrator 114 may additionally or alternatively include interfaces for managing applications (apps) installed on merchant accounts; and settings that apply to the merchant's online store 138 and account. Merchants can use a search bar to find products, pages, or other information in their store.
[0057] More detailed information about the business and visitors of the merchant's online store 138 can be viewed through reports or indicators. Reports can include, for example, foot traffic reports, behavior reports, customer reports, financial reports, marketing reports, sales reports, product reports, and custom reports. Merchants may be able to view sales data for different channels 110A-B for different time periods (e.g., days, weeks, months, etc.), such as by using a drop-down menu. A data overview can also be provided for merchants who want to view the sales and engagement data of the store in more detail. An activity source can be provided in the homepage indicator section to show an overview of the activities on the merchant account. For example, by clicking the "View All Recent Activities" data panel button, merchants may be able to see the latest activity sources on their accounts for a longer time. The homepage can show notifications about the merchant's online store 138, such as based on account status, growth, recent customer activity, order updates, etc. Notifications can be provided to help merchants navigate through workflows configured for online stores 138, such as payment workflows, order fulfillment workflows, order archiving workflows, return workflows, etc.
[0058] The e-commerce platform 100 may provide a communication facility 129 and an associated merchant interface to provide electronic communications and marketing, such as using an electronic messaging facility to collect and analyze communication interactions between merchants, customers, merchant devices 102, customer devices 150, POS devices 152, etc., to aggregate and analyze communications, such as to improve sales conversions, etc. For example, a customer may have a question related to a product, which may generate a conversation between the customer and the merchant (or an automated processor-based agent / chatbot on behalf of the merchant), in which case the communication facility 129 is configured to provide an automated response to the customer request and / or provide suggestions to the merchant on how to respond, for example, to improve the probability of a sale.
[0059] The e-commerce platform 100 may provide a financial facility 120 for conducting secure financial transactions with customers, such as through a secure card server environment. For example, in a payment card industry data (PCI) environment (e.g., a card server), the e-commerce platform 100 may store credit card information to check finances, bill merchants, and perform automatic clearing house (ACH) transfers between the e-commerce platform 100 and the merchant's bank account. The financial facility 120 may also provide financial support to merchants and buyers, such as by lending funds (e.g., loan funds, cash advances, etc.) and providing insurance. In some embodiments, the online store 138 may support multiple independently managed storefronts and process a large amount of transaction data for various products and services every day. The transaction data may include: any customer information indicating a transaction conducted by a customer, a customer account, or a customer (e.g., contact information, billing information, shipping information, return / refund information, discount / offer information, payment information) or online store events or information (e.g., page views, product search information (search keywords, click events), product reviews, abandoned purchases) and / or other transaction information associated with a business through the e-commerce platform 100. In some embodiments, the e-commerce platform 100 may store the data in the data facility 134. Figure 1 In some embodiments, the e-commerce platform 100 may include a business management engine 136, which may be configured to execute various workflows to automate tasks or manage content related to products, inventory, customers, orders, suppliers, reporting, finance, risk, and fraud, etc. In some embodiments, additional functionality may be provided additionally or alternatively through applications 142A-B to enable greater flexibility and customization required to accommodate the growing variety of online stores, POS devices, products, and / or services. Application 142A may be a component of the e-commerce platform 100, while application 142B may be provided or hosted as a third-party service external to the e-commerce platform 100. The business management engine 136 may adapt to store-specific workflows and, in some embodiments, may be combined with the administrator 114 and / or online store 138.
[0060] Implementing functionality as applications 142A-B may enable business management engine 136 to remain responsive and reduce or avoid service degradation or more severe infrastructure failures, etc.
[0061] While isolating online store data may be important to maintain data privacy between online stores 138 and merchants, there may also be reasons to collect and use cross-store data, for example, for an order risk assessment system or a platform payment facility, both of which require information from multiple online stores 138 to perform well. In some embodiments, it may be preferable to move these components out of the commerce management engine 136 and into their own infrastructure within the e-commerce platform 100.
[0062] The platform payment facility 120 is an example of a component that utilizes data from the business management engine 136 but is implemented as a separate component or service. The platform payment facility 120 can allow customers interacting with the online store 138 to have their payment information securely stored by the business management engine 136, so that the customer only needs to enter the payment information once. When customers visit different online stores 138, even if they have never been there before, the platform payment facility 120 can also call their information to achieve faster and / or potentially less error-prone (e.g., by avoiding the situation where the customer needs to re-enter their information instead, they may mistype the information) checkout. This can provide a cross-platform network effect, in which case the e-commerce platform 100 becomes more useful to its merchants and buyers as more merchants and buyers join, such as because there are more customers who check out more frequently because of the ease of use of the customer's purchase. In order to maximize the effect of this network, the payment information of a given customer can be available and globally available across multiple online stores 138.
[0063] For functionality not included within the commerce management engine 136, the applications 142A-B provide a way to add features to the e-commerce platform 100 or individual online stores 138. For example, the applications 142A-B may be able to access and modify data on a merchant online store 138, perform tasks through the administrator 114, implement new flows for merchants through a user interface (which is presented, for example, through an extension / API), etc. Merchants may be enabled to discover and install applications 142A-B through application search, recommendations, and support 128. In some embodiments, the commerce management engine 136, applications 142A-B, and administrators 114 may be developed to work together. For example, application extension points may be built within the commerce management engine 136, which applications 142A and 142B may access through interfaces 140B and 140A to provide additional functionality, and which may be presented to merchants in the administrator's 114 user interface.
[0064] In some embodiments, applications 142A-B can provide functionality to merchants via interfaces 140A-B, such as applications 142A-B being able to present transaction data to merchants (e.g., App: “Engine, present my app data in mobile app or administrator 114”), and / or commerce management engine 136 being able to request applications to perform work on demand (Engine: “App, give me the local tax calculation for this checkout”).
[0065] The applications 142A-B may be connected to the commerce management engine 136 via interfaces 140A-B (e.g., via REST (Representational State Transfer) and / or GraphQL APIs) to expose functionality and / or data available through and within the commerce management engine 136 to the application's functionality. For example, the e-commerce platform 100 may provide interfaces 140A-B for application 142A-B APIs that may connect to products and services external to the platform 100. The flexibility provided by the use of applications and APIs (which are provided, for example, for application development) enables the e-commerce platform 100 to better adapt to new and unique needs of merchants or address specific use cases without having to continually change the commerce management engine 136. For example, the shipping service 122 may be integrated with the commerce management engine 136 via a shipping or carrier service API, thereby enabling the e-commerce platform 100 to provide shipping service functionality without directly affecting the code running in the commerce management engine 136.
[0066] Depending on the implementation, the applications 142A-B can utilize the API to pull data on demand (e.g., customer creation events, product change events, or order cancellation events, etc.) or push data when updates occur. The subscription model can be used to provide events to the applications 142A-B when events occur, or to provide updates about the changed state of the business management engine 136. In some embodiments, when a change related to an update event subscription occurs, the business management engine 136 can issue a request, such as to a predefined callback URL. The body of the request can contain the new state of the object and a description of the action or event. The update event subscription can be created manually in the administrator facility 114, or automatically (e.g., via the API 140A-B). In some embodiments, the update event can be queued and processed asynchronously with the state change that triggered the update event, which can result in update event notifications that are not distributed in real time or near real time.
[0067] In some embodiments, the e-commerce platform 100 may provide one or more of application search, recommendations, and support 128. Application search, recommendations, and support 128 may include: developer products and tools to assist in the development of applications, an application data panel (e.g., providing a development interface to developers, application management to administrators, application customization to merchants, etc.), facilities for installing and providing information about providing access to applications 142A-B (e.g., for public access, such as where criteria must be met prior to installation, or for private use by merchants), application search to make it easy for merchants to search for applications 142A-B that meet their online store 138 needs, application recommendations to provide merchants with suggestions about how they can improve the user experience through their online store 138, etc. In some embodiments, applications 142A-B may be assigned application identifiers (IDs), such as for linking to applications (e.g., via an API), searching for applications, making application recommendations, etc.
[0068] The applications 142A-B can be roughly grouped into three categories: customer-facing applications, merchant-facing applications, integrated applications, etc. Customer-facing applications 142A-B can include online stores 138 or channels 110A-B, which are places where merchants can list products for purchase (e.g., online stores, applications for limited-time flash sales (e.g., merchant products or opportunistic sales opportunities from third-party sources), mobile store applications, social media channels, applications for offering wholesale purchases, etc.). Merchant-facing applications 142A-B can include applications that allow merchants to manage their online stores 138 (e.g., through applications associated with the network or website or associated with mobile devices), operate their businesses (e.g., through applications associated with POS devices), grow their businesses (e.g., through applications related to shipping (e.g., drop shipping), use automated agents, use process flow development and improvement), etc. Integrated applications can include applications that provide useful integrations involved in business operations, such as shipping providers 112 and payment gateways 106.
[0069] In this way, the e-commerce platform 100 can be configured to provide an online shopping experience through a flexible system architecture that enables merchants to connect with customers in a flexible and transparent manner. The typical customer experience can be better understood through the example purchase workflow of the embodiment, in which the customer browses the merchant's products on the channels 110A-B, adds the intended products to the shopping cart, checks out, and pays for the contents of the shopping cart, thereby creating an order for the merchant. The merchant can then review and fulfill (or cancel) the order. The product is then shipped to the customer. If the customer is not satisfied, they may return the product to the merchant.
[0070] In an example embodiment, a customer may browse a merchant's products through a plurality of different channels 110A-B (e.g., the merchant's online store 138; a physical storefront, via a POS device 152; an electronic marketplace, via an electronic buy button integrated into a website or social media channel). In some cases, the channels 110A-B may be modeled as applications 142A-B. The merchandising component in the business management engine 136 may be configured to create and manage product listings (e.g., using product data objects or models) to allow merchants to describe what they want to sell and where they sell it. The association between the product listing and the channel may be modeled as a product publication and accessed by a channel application (e.g., via a product listing API). A product may have many attributes and / or properties (e.g., size and color) and many variants that expand the available options to specific combinations of all attributes, such as a green variant with an extra small size or a blue variant with a large size. A product may have at least one variant created for a product without any options (e.g., a "default variant"). To facilitate browsing and management, products may be grouped into collections, provided with product identifiers (e.g., stock keeping units (SKUs)), and the like. Collections of products may be constructed by manually categorizing products into one type (e.g., custom collections), by building a rule set for automatic categorization (e.g., smart collections), etc. The product listing may include 2D images, 3D images, or models that may be viewed through a virtual reality or augmented reality interface, etc.
[0071] In some embodiments, a shopping cart object is used to store or track products that a customer intends to purchase. A shopping cart object may be channel specific and may consist of multiple shopping cart line items, where each shopping cart line item tracks the quantity of a specific product variant. Since adding a product to a shopping cart does not imply any commitment from either the customer or the merchant, and the expected validity period of a shopping cart may be on the order of minutes (rather than days), the shopping cart object / data representing the shopping cart may be persisted to a temporary data store.
[0072] The customer then checks out. The checkout object or page generated by the business management engine 136 can be configured to receive customer information to complete the order, such as customer contact information, billing information, and / or shipping details. If the customer enters their contact information but does not pay, the e-commerce platform 100 can (e.g., via an abandoned order component) send a message to the customer device 150 to encourage the customer to complete the checkout. For these reasons, the validity period of the checkout object may be much longer than that of the shopping cart object (hours or even days), and therefore may persist. The customer then pays for the contents of his shopping cart, thereby creating an order for the merchant. In some embodiments, the business management engine 136 can be configured to communicate with various payment gateways and services 106 (e.g., online payment systems, mobile payment systems, digital wallets, credit card gateways) via a payment processing component. The actual interaction with the payment gateway 106 can be provided through a card server environment. An order is created at the end of the checkout process. An order is a sales contract between a merchant and a customer, in which the merchant agrees to provide the goods and services listed on the order (e.g., order line items, shipping line items, etc.) and the customer agrees to provide payment (including taxes). Once the order is created, an order confirmation notification can be sent to the customer, and an order placement notification can be sent to the merchant via the notification component. When the payment processing job begins, inventory can be reserved to avoid overselling (for example, the merchant can use inventory policies or configurations for each variant to control this behavior). Inventory reservations may have a short time span (a few minutes) and may need to be very fast and scalable to support limited-time flash sales or "limited sales (drop)", during which discounts, promotions, or limited inventory of products are provided to buyers for sale at a specific location and / or for a specific (usually short) time. If the payment fails, the reservation is canceled. After the payment is successful and the order is created, the reservation will be converted into a persistent (long-term) inventory commitment assigned to a specific location. The inventory component of the business management engine 136 can record the storage location of the variant and can track the quantity of the variant with inventory tracking enabled. The component can separate product variants (a customer-oriented concept representing a product listing template) from inventory items (a merchant-oriented concept representing an item whose quantity and location are managed). The inventory level component can track the quantity available for sale, committed to an order, or passed in from the inventory transfer component (for example, a supplier).
[0073] The merchant can then review and fulfill (or cancel) the order. The review component of the business management engine 136 can implement a business process that the merchant uses to ensure that the order is suitable for fulfillment before the order is actually fulfilled. The order may be fraudulent, may require verification (e.g., ID check), may have a payment method that requires the merchant to wait to ensure that they will receive their payment, etc. Risks and recommendations can persist in the order risk model. Order risks can be generated by fraud detection tools, submitted by third parties through order risk APIs, etc. Before fulfillment, the merchant may need to capture payment information (e.g., credit card information) or wait to receive payment information (e.g., via bank transfer, check, etc.) before marking the order as paid. Now, the merchant can prepare the product for delivery. In some embodiments, this business process can be implemented by the fulfillment component of the business management engine 136. The fulfillment component can group the order items of the order into logical fulfillment work units based on inventory location and fulfillment service. Merchants can review, adjust work units, and trigger related fulfillment services, such as manual fulfillment services used when merchants pick products and pack them into boxes, purchase shipping labels and enter their tracking numbers (e.g., at a location managed by the merchant), or simply mark the items as fulfilled. Alternatively, the API fulfillment service can trigger a third-party application or service to create a fulfillment record for the third-party fulfillment service. There are other possibilities for fulfilling orders. If the customer is not satisfied, they can return the (multiple) products to the merchant. The business process of a merchant "cancelling the sale" of goods can be implemented through a return component. Returns can include a variety of different actions, such as: restocking, when the product that was sold is actually returned to the enterprise and can be sold again; refund, partially or fully refunding the money collected from the customer; accounting adjustment, recording the refund amount (e.g., including whether there are any restocking fees, or whether the goods are not returned and remain in the hands of the customer); etc. Returns can represent changes to a sales contract (e.g., an order), and in this case, the e-commerce platform 100 can make the merchant aware of compliance issues regarding legal obligations (e.g., regarding taxes). In some embodiments, the e-commerce platform 100 may enable merchants to track sales contracts over time, such as implemented through a sales model component (e.g., a date-based append-only ledger that records sales-related events that occur on an item).
[0074] Message templates
[0075] As provided above, e-commerce platforms (such as Figure 1The e-commerce platform described herein may allow those who have accounts on the platform to connect their messaging accounts. Messaging accounts may include email accounts, text messaging accounts, or any other type of account that a merchant may utilize to send messages to customers. For illustrative purposes, this disclosure is described with respect to email accounts. However, this is non-limiting, and the same principles may apply to other types of messaging accounts.
[0076] The e-commerce platform can then monitor some or all of the messages delivered to these email accounts to provide the account holders with value-added services such as tracking of purchases, shipping, and deliveries.
[0077] Typically, such a message will be generated by a computer using a template. The template dictates the structure or layout of the message. For example, refer to Figure 3 .
[0078] exist Figure 3 In the example of , message 300 may be received by an account holder of an e-commerce platform. The account holder has subscribed to the e-commerce platform to monitor transactions, and in this regard, message 300 may be analyzed by the e-commerce platform.
[0079] Message 300 is from a supplier using a first template. Specifically, message 300 is a shipping notification indicating that a product has been shipped or is about to be shipped. Various fields in the message are filled in by the computer generating the message, and the rest of the template remains unchanged between messages. For example, the template for message 300 includes a name field 310, a shipping date 312, a ship to address block 314, and a URL for the shipping number shown as URL 316 for the shipper 318.
[0080] refer to Figure 4 , provides another example email received by an account holder of an e-commerce platform. Figure 4 In the example, message 400 is also a shipping notification indicating that the order has been shipped. Message 400 comes from a different supplier and uses the same Figure 3 The template is different from that of the previous one and has various fields such as order number 410, delivery date 412, block or button 414 with unique URL, shipping destination 416, order price 420, shipper 422 and tracking number 424.
[0081] When compared Figure 3 and Figure 4When the examples of templates are shown, the structures of the two templates are completely different. Each email has a unique layout, Hypertext Markup Language (HTML) and / or Extensible Markup Language (XML) structure, and has a different XML path (XPath). In particular, XPath is a syntax or language for finding any element in an XML file using XML path expressions.
[0082] Further, although Figure 3 and Figure 4 The embodiment of the present invention shows a shipping notification, but other messages from the supplier may include an order confirmation message, an order processing notification, an upcoming delivery notification, a delivery notification, etc. Each message may be assigned a different template.
[0083] Further, the supplier may use different notification templates based on the recipient of the message, etc., depending on other factors such as the country or region of the customer, the type of product or service involved in a particular transaction, etc. For example, if the product is to be shipped to a customer in Canada, the notification message may be in both English and French, while a notification to a customer in the United States may be in English only, or in English and Spanish in some cases. If the customer is a member of a loyalty program, the template used may include fields and wording around the loyalty rewards of the transaction. Other factors are also possible. Thus, a different template may be used for each situation.
[0084] The structure of the templates can be used to assign the templates into groups called clusters and to assign values to such clusters.
[0085] Clusters and Cluster Values
[0086] In some cases, different vendors may use the same template. For example, when a vendor is part of an e-commerce platform, the e-commerce platform may offer various templates as part of its services that vendors can use for notifications on their storefronts. In other cases, related companies may use the same notification template. Other options for reusing templates are also possible.
[0087] In this regard, templates may be assigned to logical groups referred to herein as clusters. A set of emails utilizing the same template may be grouped or categorized into such a cluster, and one or more email extractors defined as follows may be assigned to such a cluster.
[0088] Each cluster can be assigned a value. Specifically, refer to Figure 5 , which shows the process for assigning values to clusters.
[0089] Figure 5 The process begins at block 510 and proceeds to block 520 where characteristics are extracted from the message.
[0090] Based on the characteristics extracted at block 520, a check may be made at block 522 to determine if the cluster is known for the message characteristics. If so, the process proceeds to block 530 and ends.
[0091] Conversely, if the cluster is unknown, the process proceeds to block 540 where the cluster can be created. The process then proceeds to block 542 where a value is assigned to the cluster. The value can be assigned in a variety of ways.
[0092] In one embodiment, the value can be a hash of the elements in the template. Figure 3 The XPath of the email template is:
[0093]
[0094] Table 1: Example XPath for an email template
[0095] Thus, in one embodiment, the value of a cluster may be based on the minhash of the XPaths of the master email templates for that cluster. Minhash is an algorithm for estimating how similar two sets are, and in some cases may generate a fixed-length array of values for a given input. For example, the XPaths in Table 1 may be used for a minhash function, where the output is defined as an array of values of a fixed size, e.g., 128 values. However, this is non-limiting and other lengths are possible. The output of such a minhash function may be:
[0096]
[0097] Table 2: Example minimum hashes for the XPaths of Table 1
[0098] Thus, the array of Table 2 may be assigned at block 542 to contain Figure 3 The value of the clustering of email message templates.
[0099] However, using the minimum hash to calculate the value at block 542 is only an example. In other cases, other techniques may be used to generate the value. For example, an encoder may be used that uses a natural language processing machine learning (ML) model. Such an encoder may be trained using millions of raw emails to gain its own understanding of emails and structure. Such an encoder may assign values to clusters and then may match the values for incoming emails to the centroids using cosine similarity.
[0100] In other cases, other value assignment procedures may be used.
[0101] Once the values are assigned at block 542, the process proceeds to block 530 and ends.
[0102] Figure 5 The process of can be used, for example, whenever a new cluster is created. If there is a need to assign values to more than one cluster in the system, then it can be repeated for each cluster. Figure 5 process.
[0103] Message Extractor
[0104] A message extractor is an algorithm, code snippet, or program used to find information from a message. A message extractor can be specifically tailored or programmed for a template to allow the program to quickly and accurately find the information elements expected by a computer system such as an e-commerce platform.
[0105] The information elements extracted by the email extractor can be configured based on the type of message received and the type of information within the message. Further, some information may be relevant to the e-commerce platform or computer system, while other information may not be relevant, so in some cases, the message extractor can be customized to obtain only relevant information.
[0106] use Figure 3 For the example message in, Table 3 shows a simplified message extractor.
[0107]
[0108] Table 3: Example of a simplified message extractor
[0109] As can be seen in the example of Table 3, a computer system such as an e-commerce platform Figure 3 The information found in the message includes the tracking number and the tracking URL. The location of these elements is provided as an XPath within the message. However, this is only an example, and the identification of the desired information within the message template can be accomplished in other ways, such as relative location, based on tags within the message, etc.
[0110] Further, in the example of Table 3, the e-commerce platform may also require information about the carrier. However, in this case, the message does not include such information, so according to the example of Table 3, the value is assigned a null value. In other cases, the message extractor can simply ignore the unavailable information. Other options are also possible.
[0111] Based on the simplified message extractor in Table 3, Figure 3 The extracted information from the message is provided in Table 4 below.
[0112]
[0113] Table 4: Information from the message extractor in Table 3
[0114] The example extractor of Table 3 and the results of Table 4 provide a tracking number and a tracking URL. In other examples, the computer system or e-commerce platform may desire to check the shipping address against the customer's registered shipping address, so the shipping address 314 can be extracted from the message 300. In other cases, the date 312 can be extracted. In some cases, more complex algorithms can be applied to the data, and more or fewer data fields may need to be extracted. Therefore, the example provided in Table 3 is provided for illustration purposes only.
[0115] As can be seen from the examples in Table 3, a message extractor is a program that can be quickly run on a message when it is received by the system, and the message extractor is customized for the template by utilizing the location of the information to be extracted in the message. This ensures efficient use of computing resources when processing thousands or hundreds of thousands of messages in a short period of time.
[0116] For this reason, highly accurate and precise email extractors are typically trained to each parse only one specific email template. Thus, a complex email extraction system, such as one built to decipher e-commerce emails from a buyer's inbox, may require thousands or hundreds of thousands of email extractors, each trained to recognize specific relevant information from a different email template.
[0117] When email templates change, such as when a merchant slightly tweaks or completely changes the layout of an email (such as an order confirmation email), the appropriate extractor may be difficult to identify or may not exist. The result is that the system is no longer able to extract content from any order confirmation emails it receives that use the merchant's new template. Furthermore, it is possible that existing email extractors may not even be able to effectively extract information from the new email template, so new extractors may be needed.
[0118] However, since there may be thousands or hundreds of thousands of extractors, it is computationally inefficient to try each extractor against a new template. Therefore, this paper provides techniques to efficiently identify or generate extractors programmatically when identifying a new template.
[0119] Find Matching Extractors
[0120] There are various techniques for identifying that a new message template has been introduced into a computer system. In a first embodiment, identification can be done on a message-by-message basis, where a value is assigned to the received message and the value is compared with the cluster value to find a message extractor.
[0121] In another embodiment, the message volume for a particular cluster may be compared to historical volumes, and if a significant decrease in a particular cluster is noted, this may indicate that the merchant(s) associated with that cluster may have changed their templates. In determining whether a significant decrease has been experienced, this embodiment may consider factors such as the day of the week, the day of the year, important shopping days, and other information. In these embodiments, a significant decrease may be, for example, a decrease that is greater than a threshold percentage.
[0122] In one embodiment, a drop in the amount of information provided by a cluster can be detected, rather than a drop in traffic. For example, if a cluster provides less information, this can indicate that the information is being transmitted elsewhere.
[0123] Thus, according to this embodiment, a system is provided that can detect a sudden change in the volume of emails into a new cluster or a decrease in information from a cluster and, if an extractor has not yet been assigned, identify possible extractors that can be used to extract information from the new emails.
[0124] Each process is described below.
[0125] In particular, now refer to Figure 6 .exist Figure 6 In an embodiment of the present invention, the process begins at block 610 and proceeds to block 620, where a mapping function may be applied to a received message to create a feature value for such message. For example, the mapping function may be the XPath minimum hash function described above with respect to Table 2. In other cases, the mapping function may be a natural language processing algorithm applied to the message. In other cases, other types of mapping functions may also be used.
[0126] The mapping function creates a feature value, which can then be used to identify a cluster and one or more corresponding message extractors. In particular, from block 620, the process proceeds to block 630 to check whether the feature value matches any extractor value. For example, this can be done by checking an array of minimum hash values of the message against an array of values of the cluster and the extractor associated therewith. The comparison may not require an exact match, but in some cases, a sufficiently close match based on a specified threshold may be required.
[0127] For example, using the min hash example above, the min hash will generate 128 values in the array. Therefore, if the feature value of the message is an array of 128 values, and the value associated with the cluster is an array of 128 values, each value can be compared to the value at the corresponding position in the other array. If a threshold number of values match, this can indicate that the feature value matches the extractor value.
[0128] Similarly, natural language processing can create values that can then be compared to the values of each extractor on a cosine similarity basis to find out if there is a match. In this case, if the feature value is above a threshold when the cosine similarity function is applied, then there is likely a match.
[0129] Other techniques for determining whether the feature value matches the extractor's value at block 630 are possible.
[0130] From block 630, if there is a match, the process proceeds to block 632 where the desired information is extracted from the message using the message extractor(s) found at block 630. The process then proceeds to block 640 and ends.
[0131] In place of the processes at blocks 620 and 630, in some cases, the use of clusters may be monitored to determine whether a drop in the number of messages placed into a cluster or a reduction in information from the messages is detected. For example, this may occur when a retailer changes a notification template. Messages to the original cluster will experience a drop when the original template is used, while messages to the new cluster will experience a proportional rise. New clusters may or may not exist within the system. Therefore, in one embodiment (not shown), the computer system may monitor the amount of messages processed by each cluster and record any drop in the number of expected messages in any particular cluster. The computer system may further monitor any rise or creation of new clusters. A drop in messages in one cluster and a creation or rise in another cluster may indicate a template change. In this case, the computer system may perform a check to determine whether the new cluster is already in the system and has an extractor that can be used for the received message. If so, the process will proceed to block 632, in which a known message extractor may be used to extract relevant information from the received message.
[0132] As will be appreciated by those skilled in the art, the rise or fall in the number of messages seen in a cluster may be affected by external factors, which the computer system may take into account. For example, a cluster may experience significant rises on certain days of the year, such as Black Friday or Cyber Monday. Certain days of the week may have historically had higher or lower message volumes, and the computer system may also use these historical values to determine whether a drop in volume has been experienced. Other factors may also be considered when determining whether the message volume of a cluster has changed.
[0133] Reference again Figure 6 If, based on a single message or cluster, it is determined that the feature value does not match any extractor value, the process proceeds from block 630 to block 650 where at least one message extractor may be identified based on a similarity criterion.
[0134] Specifically, since a message extractor is not currently assigned to a received message or new cluster, the system needs to identify an existing extractor that will work or create a new message extractor. However, computationally, running all message extractors in the system against a received message to determine whether the required information was successfully extracted would be a very lengthy process. Given the volume of messages received on a typical e-commerce platform, such processing may result in significant delays, message loss, or the expenditure of significant resources to provide the required processing power, among other difficulties. Alternatively, the present disclosure provides a more focused search for message extractors.
[0135] Specifically, according to an embodiment of the present disclosure, the obtained characteristic values of the received message may be compared with the values associated with the existing message extractors to identify a subset of message extractors that may be attempted.
[0136] In one embodiment, a message extractor can be identified by finding a message extractor that exceeds a similarity index. Using the minimum hash example again, a comparison can be made between an array of feature values and an array of multiple message extractors. If the number of matches between the two arrays exceeds the similarity index, then such a message extractor can be tried.
[0137] In other cases, the cosine similarity value may be used.
[0138] In other cases, Jaccard similarity may be used. Other similarity comparisons may also be performed.
[0139] The identification at block 650 may identify one or more message extractors. For example, if there are multiple message extractors that match the similarity index, in some cases, each message extractor that is above the similarity index may be tried. In other cases, if the number of message extractors that are above the similarity index is too large, a subset of the identified message extractors may be tried.
[0140] Further, secondary factors may also be used to help identify message extractors. For example, if a sudden increase in volume for one cluster is noticed (which may correspond to a decrease in another cluster), this may indicate that the template for emails from the reduced cluster may have changed, and the extractor for the reduced cluster may be added to the identified one or more extractors.
[0141] In other cases, evidence such as merchant name, subject line, sender email address, product name, length and number of shipping identifiers, etc. can be used to make additions to the identified one or more extractors.
[0142] In some cases, general purpose extractors or catch-all extractors and / or automatic extractors may also be added to the identified extractor or extractors.
[0143] Once one or more extractors are identified, information may be extracted from the message using these extractors, as shown in block 660. For example, in some cases, the cluster with the highest similarity index may be bound to the received message or cluster of received messages. For example, in some cases, this binding may be temporary until a better message extractor is found.
[0144] Optionally, the extracted information can also be assigned a "quality score" based on various factors. For example, if an X value was expected to be extracted, but only XY values were found using the extractor, this would reduce the quality index. In some cases, each expected field can be assigned a weight, and the quality score can be affected by the weight of the missing fields.
[0145] Quality scores may also be looked up using extrinsic evidence, such as the known format of data from a particular merchant.
[0146] In some cases, comparisons between values obtained from multiple extractors may also be used.
[0147] If the quality score from one extractor in some cases, or the quality score of the values from multiple extractors in other cases exceeds a threshold, a new extractor may be assigned to the message identifier and the new extractor may immediately begin parsing the messages.
[0148] In some cases, the new extractor may be a combination of two or more previous extractors or parts thereof in order to find the expected value field. Thus, a new message extractor may be created based on multiple previously known message extractors, wherein the parts of these previously known message extractors that produce the expected data may be combined.
[0149] In some cases, a new extractor can be created based on modifications to an existing extractor and further based on information about the calculated differences between the original extractor template and the new template. Specifically, the extractor can be modified using information about the differences between the new template and the old template. For example, the root of the XPath can be changed to an updated structure, and then the new extractor can be tried on the new template. Other examples are also possible.
[0150] Figure 6 Block 652 in the embodiment of shows such an optional quality check, wherein the use of the identified at least one message extractor at block 660 is performed only if the quality check exceeds a threshold. If not, more message extractors can be identified at block 650.
[0151] Further, in some cases, quality can be improved by using other information sources, such as the operator of the merchant platform to identify information elements or crowdsourcing to verify information elements. For example, when a new cluster is identified, a request can be made to the operator of the e-commerce platform to verify that the extractor is working properly. In other cases, the recipient of the original message can be queried to determine whether the information identified within the message is correct. In other cases, crowdsourcing can be done through blogs or quality control websites to request verification. Other options are also possible. Therefore, this can be used to create a new message extractor based on a previous message extractor.
[0152] In some cases, the urgency of the request for other information sources may be related to the volume of email messages with the same identifier within the computer system.
[0153] The methods discussed above are computer-implemented methods and require a computer to implement / use. Such a computer system may be implemented on any type of network element or computing device or combination thereof. For example, Figure 7 A simplified computing device is provided that can perform all or part of the embodiments described herein.
[0154] exist Figure 7 In the embodiment, the computing device 710 includes a processor 720 and a communication subsystem 730, wherein the processor 720 and the communication subsystem 730 cooperate to perform the methods of the embodiments described herein.
[0155] Processor 720 is configured to execute programmable logic that may be stored with data on computing device 710 and Figure 7 740. The memory 740 may be any tangible, non-transitory computer-readable storage medium, such as DRAM, flash memory, an optical drive (e.g., CD, DVD, etc.), a magnetic drive (e.g., tape), a flash drive, a hard drive, or other memory known in the art. In one embodiment, the processor 720 may also be implemented entirely in hardware and may not require any stored program to perform logical functions. The memory 740 may store instruction codes that, when executed by the processor 720, cause the computing device 710 to perform embodiments of the present disclosure.
[0156] Alternatively or in addition to memory 740 , computing device 710 may access data or programmable logic from external storage media, such as through communications subsystem 730 .
[0157] The communication subsystem 730 allows the computing device 710 to communicate with other devices or network elements. In some embodiments, the communication subsystem 730 includes a receiver or transceiver, including but not limited to Ethernet, fiber optic, universal serial bus (USB), cellular radio transceiver, Wi-Fi transceiver, Bluetooth transceiver, Bluetooth low energy transceiver, GPS receiver, satellite transceiver, IrDA transceiver, etc. As will be understood by those skilled in the art, the design of the communication subsystem 730 will depend on the type of communication in which the transaction device is expected to participate.
[0158] In one embodiment, communications between the various elements of computing device 710 may occur via internal bus 760. However, other forms of communication are possible.
[0159] The elements described and depicted herein, including the elements in the flowcharts and block diagrams in all the accompanying drawings, imply the logical boundaries between the elements. However, according to software or hardware engineering practices, the depicted elements and their functions can be implemented on a machine with a processor through a computer executable medium, and the processor can execute as a single-chip software structure, as an independent software module, or as a module using external routines, codes, services, etc., or as any combination of the above and stored thereon program instructions, and all such implementations are within the scope of the present disclosure. Examples of such machines may include, but are not limited to, personal digital assistants, laptop computers, personal computers, mobile phones, other handheld computing devices, medical devices, wired or wireless communication devices, transducers, chips, calculators, satellites, tablet PCs, e-books, gadgets, electronic devices, devices with artificial intelligence, computing devices, networking devices, servers, routers, etc. In addition, the elements or any other logical components depicted in the flowcharts and block diagrams can be implemented on a machine capable of executing program instructions. Therefore, although the above drawings and descriptions set forth multiple functional aspects of the disclosed system, unless explicitly stated or otherwise clearly seen from the context, the specific arrangement of the software used to implement these functional aspects should not be inferred from these descriptions. Similarly, it will be understood that the various steps identified and described above are all variable, and the order of these steps may be adapted to the specific application of the technology disclosed herein. All such changes and modifications are intended to fall within the scope of the present disclosure. Thus, the depiction and / or description of the order of the various steps should not be construed as requiring the steps to be performed in a particular order, unless required by a specific application, or explicitly stated or otherwise clearly seen from the context.
[0160] The above methods and / or processes and steps thereof can be implemented in any combination of hardware, software or hardware and software suitable for a particular application.Hardware can include a general-purpose computer and / or a special computing device, or a specific computing device, or a specific aspect or component of a specific computing device.These processes can be implemented in one or more microprocessors, microcontrollers, embedded microcontrollers, programmable digital signal processors or other programmable devices, and internal and / or external memories.These processes can be implemented in addition or alternatively in a special integrated circuit, a programmable gate array, a programmable array logic, or any other device or combination of devices that can be configured to process electronic signals.It will be further understood that one or more processes in these processes can be implemented as a computer executable code that can be performed on a machine-readable medium.
[0161] The computer executable code may use a structured programming language such as C, an object-oriented programming language such as C++, or any other high-level or low-level programming language (including assembly language, hardware description language, and database programming languages and techniques) that may be stored, compiled, or interpreted to run on one of the above devices, as well as a heterogeneous combination of processors, processor architectures, or a combination of different hardware and software, or any other machine capable of executing program instructions.
[0162] Therefore, on the one hand, each method described above and combination thereof can be implemented with computer executable code, and these computer executable codes perform the steps of these methods when executed on one or more computing devices. On the other hand, these methods can be implemented with a system that performs its steps and can be distributed across devices in a variety of ways, or all functions can be integrated into a dedicated stand-alone device or other hardware. On the other hand, the device for performing the steps associated with the above process can include any of the above hardware and / or software. All such permutations and combinations are intended to fall within the scope of the present disclosure.
[0163] The present teachings may also extend to features of one or more of the following numbered clauses:
[0164] 1. A method performed at a computer system, the method comprising:
[0165] applying a mapping function to the received message to create a feature value, wherein the mapping function is suitable for mapping similar messages to similar feature values;
[0166] comparing the characteristic value to a value associated with each of a plurality of message extractors;
[0167] determining that the characteristic value does not match any values associated with the plurality of message extractors;
[0168] identifying at least one message extractor from the plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from the received message; and
[0169] Information is extracted from the received message using the identified at least one message extractor.
[0170] 2. The method of clause 1, further comprising checking the extracted information against known information field values to verify that the identified at least one message extractor correctly extracted the information.
[0171] 3. A method as described in clause 1, wherein the similarity criterion includes a similarity index being within a threshold distance from the feature value.
[0172] 4. The method of clause 1, wherein the received message is an email message, and wherein the elements include Hypertext Markup Language (HTML) elements from the email message extracted using XPath.
[0173] 5. The method of clause 3, wherein the similarity index is created by associating elements from a fixed length array with a fixed length array associated with each of the plurality of message extractors.
[0174] 6. The method of clause 1, wherein the identifying further comprises using information from within the received message to identify at least one message extractor.
[0175] 7. The method of clause 6, wherein the information includes at least one of a merchant name, a sender address, a product name, a consignor, or an identifier format in the received message.
[0176] 8. The method of clause 1, wherein the identifying further uses an increase or decrease in the number of messages associated with the characteristic value to identify the at least one message extractor.
[0177] 9. The method of clause 1, wherein the using further comprises:
[0178] creating a quality score for information extracted from the received message; and
[0179] Information is extracted when the quality score exceeds a quality threshold.
[0180] 10. The method of clause 1, wherein the using further comprises:
[0181] creating a quality score for information extracted from the received message; and
[0182] The message is submitted to one of the operator of the commerce platform or the receiving entity to verify the information within the received message.
[0183] 11. A computer system comprising:
[0184] Processor; and
[0185] Communication subsystem,
[0186] The computer system is configured as follows:
[0187] applying a mapping function to received messages received via the communication subsystem to create feature values, wherein the mapping function is adapted to map similar messages to similar feature values;
[0188] comparing the characteristic value to a value associated with each of a plurality of message extractors;
[0189] determining that the characteristic value does not match any values associated with the plurality of message extractors;
[0190] identifying at least one message extractor from a plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from a received message; and
[0191] Information is extracted from the received message using the identified at least one message extractor.
[0192] 12. The computer system of clause 11, wherein the computer system is further configured to check the extracted information against known information field values to verify that the identified at least one message extractor correctly extracted the information.
[0193] 13. The computer system of clause 11, wherein the similarity criterion comprises a similarity index being within a threshold distance from the feature value.
[0194] 14. The computer system of clause 11, wherein the received message is an email message, and wherein the elements include Hypertext Markup Language (HTML) elements from the email message extracted using XPath.
[0195] 15. The computer system of clause 13, wherein the similarity index is created by associating elements from a fixed length array with a fixed length array associated with each of the plurality of message extractors.
[0196] 16. The computer system of clause 11, wherein the computer system is further configured to identify by using information from within the received message to identify at least one message extractor.
[0197] 17. The computer system of clause 16, wherein the information comprises at least one of a merchant name, a sender address, a product name, a consignor, or an identifier format in the received message.
[0198] 18. The computer system of clause 11, wherein the computer system is further configured to identify the at least one message extractor by using an increase or decrease in the number of messages associated with the characteristic value to identify the at least one message extractor.
[0199] 19. The computer system of clause 11, wherein the computer system is further configured to use the identified at least one message extractor by:
[0200] creating a quality score for information extracted from the received message; and
[0201] Information is extracted when the quality score exceeds a quality threshold.
[0202] 20. The computer system of clause 11, wherein the computer system is further configured to use the identified at least one message extractor by:
[0203] creating a quality score for information extracted from the received message; and
[0204] The message is submitted to one of the operator of the commerce platform or the receiving entity to verify the information within the received message.
[0205] 21. A non-transitory computer readable medium for storing instruction codes which, when executed by a processor of a computer system, cause the computer system to:
[0206] applying a mapping function to received messages received via the communication subsystem to create feature values, wherein the mapping function is adapted to map similar messages to similar feature values;
[0207] comparing the characteristic value to a value associated with each of a plurality of message extractors;
[0208] determining that the characteristic value does not match any values associated with the plurality of message extractors;
[0209] identifying at least one message extractor from a plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from a received message; and
[0210] Information is extracted from the received message using the identified at least one message extractor.
Claims
1. A method at a computer system, the method comprising: applying a mapping function to the received message to create a feature value, wherein the mapping function is suitable for mapping similar messages to similar feature values; comparing the characteristic value to a value associated with each of a plurality of message extractors; determining that the characteristic value does not match any values associated with the plurality of message extractors; identifying at least one message extractor from the plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from the received message, wherein the similarity criterion comprises a similarity index being within a threshold distance from the feature value; and Information is extracted from the received message using the identified at least one message extractor.
2. The method of claim 1, further comprising checking the extracted information against known information field values to verify that the identified at least one message extractor correctly extracted the information.
3. The method of claim 1, wherein: The received message is an email message, and wherein the elements include Hypertext Markup Language (HTML) elements from the email message extracted using XPath.
4. The method of claim 1, wherein: The feature value includes a fixed length array, and the similarity index is created by associating elements from the fixed length array with a fixed length array associated with each of the plurality of message extractors.
5. The method of claim 1, wherein: The identifying further includes identifying at least one message extractor using information from within the received message.
6. The method of claim 5, wherein: The information includes at least one of a merchant name, a sender address, a product name, a consignor, or an identifier format in the received message.
7. The method of claim 1, wherein: The identifying further uses an increase or decrease in the number of messages associated with the characteristic value to identify the at least one message extractor.
8. The method of claim 1, wherein: The use further includes: creating a quality score for information extracted from the received message; and Information is extracted when the quality score exceeds a quality threshold.
9. The method of claim 1, wherein: The use further includes: creating a quality score for information extracted from the received message; and The message is submitted to one of the operator of the commerce platform or the receiving entity to verify the information within the received message.
10. A computer system comprising: processor; as well as Communication subsystem, The computer system is configured as follows: applying a mapping function to received messages received via the communication subsystem to create feature values, wherein the mapping function is adapted to map similar messages to similar feature values; comparing the characteristic value to a value associated with each of a plurality of message extractors; determining that the characteristic value does not match any values associated with the plurality of message extractors; identifying at least one message extractor from the plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from the received message, wherein the similarity criterion comprises a similarity index being within a threshold distance from the feature value; and Information is extracted from the received message using the identified at least one message extractor.
11. The computer system of claim 10, wherein the computer system is further configured to check the extracted information against known information field values to verify that the identified at least one message extractor correctly extracted the information.
12. The computer system of claim 10, wherein: The received message is an email message, and wherein the elements include Hypertext Markup Language (HTML) elements from the email message extracted using XPath.
13. The computer system of claim 10, wherein: The feature value includes a fixed length array, and the similarity index is created by associating elements from the fixed length array with a fixed length array associated with each of the plurality of message extractors.
14. The computer system of claim 10, wherein: The computer system is further configured to identify at least one message extractor by using information from within the received message to identify.
15. The computer system of claim 14, wherein: The information includes at least one of a merchant name, a sender address, a product name, a consignor, or an identifier format in the received message.
16. The computer system of claim 10, wherein: The computer system is further configured to identify the at least one message extractor by identifying using an increase or decrease in the number of messages associated with the characteristic value.
17. The computer system of claim 10, wherein: The computer system is further configured to use the identified at least one message extractor by: creating a quality score for information extracted from the received message; and Information is extracted when the quality score exceeds a quality threshold.
18. The computer system of claim 10, wherein: The computer system is further configured to use the identified at least one message extractor by: creating a quality score for information extracted from the received message; as well as The message is submitted to one of the operator of the commerce platform or the receiving entity to verify the information within the received message.
19. A non-transitory computer readable medium for storing instruction codes, which, when executed by a processor of a computer system, cause the computer system to: A mapping function is applied to a received message received by the communication subsystem to create a feature value, wherein, This mapping function is suitable for mapping similar messages to similar feature values; comparing the characteristic value to a value associated with each of a plurality of message extractors; determining that the characteristic value does not match any values associated with the plurality of message extractors; identifying at least one message extractor from the plurality of message extractors, the identifying determining that a value associated with the message extractor satisfies a similarity criterion when compared to a feature value from the received message, wherein the similarity criterion includes a similarity index being within a threshold distance from the feature value; as well as Information is extracted from the received message using the identified at least one message extractor.
20. The non-transitory computer readable medium of claim 19, wherein the instruction code further causes the computer system to: The extracted information is checked against known information field values to verify that the identified at least one message extractor correctly extracted the information.
21. The non-transitory computer readable medium of claim 19, wherein: The received message is an email message, and wherein the elements include Hypertext Markup Language (HTML) elements from the email message extracted using XPath.
