Coupon template generation method and device, terminal equipment and storage medium

By obtaining the user's current order information, the target customer group is determined and a matching template generation strategy is obtained to generate a target coupon template, which solves the problem of fewer applicable scenarios for coupon templates in the existing technology and achieves wider applicability. Scenario and real-time responsiveness.

CN119358523APending Publication Date: 2025-01-24SF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310914223.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-24
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The existing methods of generating coupon templates are fewer applicable scenarios, and they cannot respond to different order information from users, resulting in the inability to create suitable coupon templates in real time.

Method used

By obtaining the user's current order information, determine the target customer group of the user, and obtain the target template generation strategy that matches the customer group. This strategy includes the basic description information and restricted description information to be generated to generate coupons. Generate the target coupon template based on this information.

Benefits of technology

It realizes the creation of suitable coupon templates in real time after obtaining the user's current order information, which is applicable to a wider range of scenarios and can respond to the needs of different users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119358523A_ABST
    Figure CN119358523A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of data processing, and provides a coupon template generation method and device, terminal equipment and a storage medium, and the method comprises the steps: determining a target customer group to which a user belongs under the condition of obtaining the current ordering information of the user; obtaining a target template generation strategy matched with the target customer group, wherein the target template generation strategy comprises basic description information and limiting condition description information of the to-be-generated coupons; generating a target coupon template according to the basic description information and the target information; the target information is the restriction condition description information, or the target information is the current ordering information and the restriction condition description information. The problem that an existing coupon template generation method is few in applicable scenes can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method, device, terminal device and storage medium for generating a coupon template. Background Art

[0002] A coupon template is a reusable design used to create and issue multiple coupons of the same type. Usually, for a specific scenario or a specific activity, the coupon issuer can pre-configure the coupon template. For example, for the scenario of issuing coupons to new users, the coupon issuer's operations staff can pre-configure the corresponding coupon template to issue coupons to new users based on the coupon template after the new user registers. The above method of generating coupon templates is applicable to fewer scenarios and has certain limitations. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, terminal device, and storage medium for generating a coupon template, which can solve the problem that the existing method for generating a coupon template has limited applicable scenarios.

[0004] In a first aspect, an embodiment of the present application provides a method for generating a coupon template, the method comprising:

[0005] When the current order information of the user is obtained, determining the target customer group to which the user belongs;

[0006] Acquire a target template generation strategy that matches the target customer group, wherein the target template generation strategy includes basic description information and restriction description information of the coupon to be generated;

[0007] A target coupon template is generated according to the basic description information and the target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information.

[0008] In a second aspect, an embodiment of the present application provides a device for generating a coupon template, the device comprising:

[0009] A group determination module is used to determine the target customer group to which the user belongs when the current order information of the user is obtained;

[0010] A strategy acquisition module, used to acquire a target template generation strategy that matches the target customer group, wherein the target template generation strategy includes basic description information and restriction description information of the coupon to be generated;

[0011] The template generation module is used to generate a target coupon template according to the basic description information and the target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information.

[0012] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for generating a coupon template as described in the first aspect above is implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating a coupon template described in the first aspect above is implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device executes the method for generating a coupon template described in the first aspect above.

[0015] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when the current order information of the user is obtained, the present application determines the target customer group to which the user belongs; obtains a target template generation strategy that matches the target customer group, the target template generation strategy includes basic description information and restriction description information of the coupon to be generated; generates a target coupon template based on the basic description information and target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information. Compared with the existing method that can only pre-configure and generate coupon templates for specific scenarios or specific activities, the present application can create coupon templates in real time in response to obtaining the current order information of the user, and is applicable to more scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 It is a flowchart of a method for generating a coupon template provided in an embodiment of the present application;

[0018] Figure 2 is a flowchart of a method for generating a coupon template provided in another embodiment of the present application;

[0019] Figure 3 It is a schematic structural block diagram of a coupon template generation device provided in an embodiment of the present application;

[0020] Figure 4 It is a structural diagram of a terminal device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0021] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0022] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0023] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0024] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0025] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0026] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0027] Embodiment 1:

[0028] See also Figure 1 , Figure 1 A schematic flow chart of a method for generating a coupon template provided by the present application is shown.

[0029] This application can be applied to industries such as express delivery, online shopping, online ticket purchase, and takeout that can issue coupons to users. The following will take the express delivery industry as an example to illustrate the process of generating a coupon template.

[0030] Step 101, after obtaining the current order information of the user, determine the target customer group to which the user belongs.

[0031] Different users have different spending abilities and habits. Therefore, in order to accurately distribute coupons, users can be divided into customer groups, and different coupon templates can be created based on different customer groups.

[0032] In order to make the present application applicable to more scenarios, the present application determines the target customer group to which the user belongs in response to obtaining the user's current order information, and then generates a corresponding coupon template.

[0033] Optionally, determine the target customer group to which the user belongs, including:

[0034] Based on the current order information, determine the customer group to which the user belongs, and the customer group corresponds to a template generation strategy; if the user belongs to multiple customer groups, obtain the target weight corresponding to each customer group, which is the group weight of the customer group or the strategy weight of the template generation strategy corresponding to the customer group; where the group weight is used to indicate the priority of the customer group, and the strategy weight is used to indicate the priority of the template generation strategy; based on the target weight, determine the target customer group from multiple customer groups. If the user belongs to only one customer group, determine the customer group to which the user belongs as the target customer group.

[0035] Optionally, current order information may be received from a user terminal (e.g., a mobile phone, a computer, etc.). The current order information may include the user's identity document (ID), and the user's ID may be a mobile phone number, an account number, an account nickname, or other information that can uniquely identify the user's identity.

[0036] The information contained in the order information corresponding to different industries may be different. In addition to the user's ID, the order information may also contain other information.

[0037] For the express delivery industry, the order information may also include information such as freight, shipping city, receiving city, shipping product type, shipping product weight, shipping method (door-to-door pickup or self-shipment at a service store), and delivery plan.

[0038] Optionally, the coupon issuer can pre-divide or generate customer groups. As an example and not limitation, customer groups can be divided or generated based on the number of shipments, product types, freight, and other information within a set time period; for example, users who ship 5 to 10 items per month can be divided into one customer group.

[0039] In an optional implementation, each customer group may correspond to an ID set, and the ID set includes the IDs of each user belonging to the customer group. Optionally, based on the current order information, determining the customer group to which the user belongs includes: based on the user ID included in the current order information, searching for a target ID set including the user ID in each ID set, and determining the customer group corresponding to the target ID set as the customer group to which the user belongs.

[0040] In another optional implementation, each customer group may correspond to group description information, and the group feature description information may be understood as the mailing feature description information. For example, the users who mail 5 to 10 items per month are divided into a customer group, and the group description information corresponding to the customer group may be 5 to 10 items per month. Optionally, based on the current order information, determining the customer group to which the user belongs includes: obtaining the user's historical order information based on the user's ID included in the current order information, and determining the user's mailing feature description information based on the user's historical order information; determining the customer group whose group description information is the same as the user's mailing feature description information as the customer group to which the user belongs.

[0041] Optionally, the template generation strategy corresponding to the customer group may be pre-configured by the issuer's personnel.

[0042] In order to avoid wasting computing resources, when a user belongs to multiple customer groups, a target customer group can be determined from the multiple customer groups according to the group weight or strategy weight corresponding to each customer group, and a coupon template can be generated based on the target customer group.

[0043] As an example, the priority of a customer group can be determined based on the importance or activity of the customer group, thereby obtaining the group weight of the customer group; the priority of a template generation strategy can be determined based on the preferential treatment corresponding to the template generation strategy, thereby obtaining the strategy weight.

[0044] Step 102, obtaining a target template generation strategy that matches the target customer group, wherein the target template generation strategy includes basic description information and restriction description information of the coupon to be generated.

[0045] Different customer groups correspond to different template generation strategies. To facilitate the search for a target template generation strategy that matches the target customer group, a correspondence table between customer groups and template generation strategies may be pre-configured, or the corresponding customer group may be pre-configured in the template generation strategy.

[0046] Optionally, obtaining a target template generation strategy that matches the target customer group includes: searching for a target template generation strategy that matches the target customer group in a correspondence table; or determining a template generation strategy configured with the target customer group as the target template generation strategy.

[0047] Optionally, the basic description information of the coupon to be generated refers to the most basic description or definition of the coupon to be generated, and the description dimensions corresponding to the basic description information in each template generation strategy are the same. As an example and not a limitation, the basic description information may include information on dimensions such as coupon template name, coupon template type (fixed amount coupon or discount coupon), coupon template denomination, and coupon template rules. It should be noted that for each of the above dimensions, some dimensions can be pre-configured with dimension values ​​in the template generation strategy, such as dimensions such as coupon template name, coupon template type, and coupon template denomination; some dimensions do not need or cannot be pre-configured with dimension values ​​in the template generation strategy, such as dimensions such as coupon template name and coupon template rules. For dimensions that do not need or cannot be pre-configured with dimension values ​​in the template generation strategy, such as dimensions such as coupon template name and coupon template rules, the corresponding dimension values ​​can be automatically generated after the coupon template is generated.

[0048] As an example, the dimension value corresponding to the coupon template type can be a fixed amount coupon or a discount coupon; the dimension value corresponding to the coupon template type can also be 1 or 2, 1 represents a fixed amount coupon, and 2 represents a discount coupon. For the dimension value corresponding to the coupon template denomination, if the dimension value corresponding to the coupon template type is 1, the dimension value represents the amount in yuan, and if the dimension value corresponding to the coupon template type is 2, the dimension value represents a discount. Assuming that the dimension value corresponding to the coupon template denomination is 85, if the dimension value corresponding to the coupon template type is 1, 85 represents the amount in yuan, and if the dimension value corresponding to the coupon template type is 2, 85 represents 15% off.

[0049] Optionally, the dimension value of the coupon template denomination can be manually configured by the issuer personnel, or can be predicted by a prediction algorithm in combination with historical freight rates. In order to avoid the data corresponding to the coupon template denomination being repeatedly created, the dimension can also be set in the restriction description information.

[0050] Optionally, the restriction description information of the coupon to be generated refers to the description or definition of the restriction conditions for the use of the coupon to be generated, and the restriction description information in each template generation strategy may be different or the same. As an example and not a limitation, the dimensions contained in the restriction description information may refer to at least one of the dimensions such as the maximum discount amount, the minimum discount amount, the shipping city / region, the receiving city / region, the order channel, the value-added service type, the value-added full reduction fee requirement, the shipping product type, the shipping product weight, the delivery plan, the available time, and the full reduction amount requirement. Among them, the value-added service type represents additional additional value-added services, including insurance, expedited, insurance services, signature return, etc. The value-added full reduction fee requirement is used to limit the coupon to be available when the value-added fee reaches N yuan. The shipping plan indicates the shipping type of the shipping product, including same-city next-day delivery, international standard express, etc. The full reduction amount requirement is used to limit the coupon to be available when the freight reaches M yuan.

[0051] It should be noted that for the dimensions included in the above-mentioned restriction description information, some dimensions can be pre-configured with dimension values ​​in the template generation strategy, such as the maximum discount amount, the minimum discount amount, and the full discount amount requirements, and some dimensions need to be determined in combination with the user's current order information, such as the shipping city / region, the receiving city / region, the order channel, the value-added service type, the product type, etc. Among them, the maximum discount amount, the minimum discount amount, and the full discount amount also need to be determined in combination with the user's current order information in some cases; taking the maximum discount amount as an example, the template generation strategy stipulates that the maximum discount amount = freight * X%, and X can be a preset value. At this time, the maximum discount amount needs to be determined in combination with the freight in the current order information.

[0052] The template generation strategy may be pre-configured by the issuer according to the consumption characteristics of the customer groups. For different customer groups, the basic description information and the restriction description information in the template generation strategy may be different. The different restriction description information may refer to different dimensions and / or dimension values ​​corresponding to the restriction description information.

[0053] Step 103, generating a target coupon template according to the basic description information and the target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information.

[0054] If the dimension values ​​of one or some dimensions in the restriction description information contained in the target template generation strategy need to be determined in combination with the user's current order information, the target information is the current order information and the restriction description information; otherwise, the target information is the restriction description information.

[0055] Optionally, the target information corresponds to at least one target restriction condition, and a target coupon template is generated according to the basic description information and the target information, including:

[0056] Based on the basic description information, searching or creating first data in a first table, the first data being basic description data determined based on the basic description information;

[0057] Based on the target information, searching or creating second data in a second table, where the second data is description data of the target restriction condition;

[0058] The first data and the second data are associated to obtain a target coupon template.

[0059] The basic description information includes the corresponding dimensions and dimension information. The basic description data can be obtained based on the dimension information corresponding to each dimension. For example, the dimension information corresponding to the coupon template type dimension is a discount coupon, and the description data obtained based on this information is 2. As an example, the basic description data of the coupon template stored in the first table is as follows:

[0060]

[0061]

[0062] Each row in the first table corresponds to a coupon template, and the first data in the row is the basic description data of the coupon template. It should be noted that the first table can also store information such as creation time.

[0063] It should be noted that the first data in the first table may be pre-created by the coupon issuer personnel. For example, for some specific scenarios (scenarios of issuing coupons to new users, scenarios of issuing coupons to all users during the promotion period, etc.), the coupon issuer personnel may create the first data in the first data in advance; it may also be created in real time according to the basic description information when the user's current order information is obtained.

[0064] Optionally, searching or creating the first data in the first table based on the basic description information includes: searching the first data in the first table based on the basic description information; if the first data is not found, creating and generating the first data in the first table based on the basic description information.

[0065] Optionally, based on the target information, searching or creating second data in a second table includes:

[0066] For each target constraint, based on the target information, searching the second table for the target dimension code and the target dimension value corresponding to the target constraint;

[0067] If the target dimension code and the target dimension value corresponding to the target restriction condition are found in the second table, the target dimension code and the target dimension value are determined as the second data;

[0068] If the target dimension code and the target dimension value corresponding to the target restriction condition are not found in the second table, the target dimension code and the target dimension value corresponding to the target restriction condition are created in the second table to obtain the second data.

[0069] Optionally, the second data may be created in the second table in a key-value pair manner, wherein the dimension code is Key and the dimension value is Value.

[0070] By storing the dimension codes and dimension values ​​of the restriction conditions in the second table, the dimension codes and dimension values ​​can be reused and dynamically created. If the target dimension codes and target dimension values ​​corresponding to the target restriction conditions are found in the second table, the target dimension codes and target dimension values ​​can be used directly without creating them again, thereby reusing the dimension codes and dimension values. If the target dimension codes and target dimension values ​​corresponding to the target restriction conditions are not found in the second table, the dimension codes and dimension values ​​can be created in the second table based on the target information, thereby dynamically creating the dimension codes and dimension values.

[0071] As an example, the dimension codes and dimension values ​​of the restriction conditions stored in the second table are as follows:

[0072]

[0073] The dimensional codes included in the second table may also include codes corresponding to dimensions such as minimum discount amount, receiving city / region, order channel, value-added service type, value-added discount requirements, and shipping product type.

[0074] It should be noted that the dimension code names and dimension value names in the second table are not necessary and can be deleted.

[0075] The issuer's personnel can pre-configure some commonly used dimension codes and dimension values ​​in the second table. For example, for the dimension code Origin City Id, the issuer's personnel can pre-configure the dimension values ​​corresponding to 50 cities in the second table. At this time, the dimension code Origin City Id in the second table corresponds to 50 rows of data; for the dimension code FullMoney, the issuer's personnel can pre-configure the dimension values ​​​​of 1-200 in the second table. At this time, the dimension code FullMoney in the second table corresponds to 200 rows of data.

[0076] As an example, taking the full-discount amount requirement FullMoney as an example, the process of creating the second data in the second table based on the target information is explained below: assuming that the dimension value corresponding to FullMoney in the second table is 1-200, and the target restriction condition is that the full-discount amount requirement is 300, that is, the coupon is available when it is over 300; at this time, (FullMoney, 300) is not found in the second table, then a second data can be created in the second table, namely (FullMoney, 300).

[0077] It should be noted that one second table may be used to store the dimension code and dimension value of each restriction condition, or multiple second tables may be used to store the dimension code and dimension value of each restriction condition, for example, each second table corresponds to a restriction condition dimension.

[0078] Optionally, the first data and the second data may be associated with each other through a third table to obtain a target coupon template, wherein the third table is used to store the association relationship between the first data and the second data.

[0079] As an example, the association relationship in the third table is as follows:

[0080] Relationship Number Voucher Template Number Restriction No. A 2 b B 3 a C 3 c D 3 e E 4 d

[0081] This application takes the association relationship number A as an example to illustrate the process of obtaining the association relationship: based on the basic description information, the coupon template number of the first data created in the first table is 2, and based on the target information, the restriction condition number of the second data found or created in the second table is b. The first data and the second data are associated through the coupon template number 2 and the restriction condition number b, and the corresponding coupon template can be obtained.

[0082] Among them, the ticket template number 3 in the above third table is associated with three restriction condition numbers a, c, and e, which means that there are three second data searched or created in the second table based on the target information, and the corresponding restriction condition numbers are a, c, and e respectively.

[0083] It should be noted that the numbers in the first table, the second table and the third table are independent of each other, and the numbers in the three tables are different in order to clearly explain the association process. The numbers in the three tables can be the same, for example, starting with 1 and numbering sequentially.

[0084] Optionally, after generating a target coupon template according to the basic description information and the target information, the method further includes: generating a target coupon based on the target coupon template; and sending the target coupon to the user.

[0085] Users can choose to use the Target coupon on the current order or the next time they place an order.

[0086] Optionally, after generating the target coupon based on the target coupon template, the method further includes: sending the target coupon to the target user; wherein the target user is a user in the target customer group. Sending the target coupon to the target user means sending the target coupon to the user terminal of the target user.

[0087] This application determines the target customer group to which the user belongs after obtaining the user's current order information; obtains a target template generation strategy that matches the target customer group, the target template generation strategy includes basic description information and restriction description information of the coupon to be generated; generates a target coupon template based on the basic description information and target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information. Compared with the existing method that can only pre-configure and generate coupon templates for specific scenarios or specific activities, this application can create coupon templates in real time in response to obtaining the user's current order information, and is applicable to more scenarios.

[0088] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0089] Embodiment 2:

[0090] See also Figure 2 , Figure 2 A schematic flow chart of a method for generating a coupon template provided by the present application is shown.

[0091] Step 201, after obtaining the current order information of the user, determine the target customer group to which the user belongs.

[0092] Step 202: Obtain a target template generation strategy that matches the target customer group.

[0093] The relevant contents in step 201 and step 202 can refer to the relevant descriptions in step 101 and step 102, which will not be repeated here.

[0094] Step 203: Based on the basic description information and the target information, determine whether the target coupon template is stored in the template library.

[0095] For certain specific scenarios, such as issuing coupons to new users, the issuer can pre-configure coupon templates to increase the speed of coupon issuance.

[0096] On the premise that the coupon templates pre-configured by the issuer personnel are stored in the template library, and / or, as the application is continuously used, more and more coupon templates will be stored in the template library. In order to avoid duplicate creation of coupon templates, the application can first determine whether the target coupon template is stored in the template library.

[0097] Optionally, based on the basic description information and the target information, determining whether a target coupon template is stored in the template library includes: generating a target template identifier based on the basic description information and the target information sorted in a set order; and comparing the target template identifier with a template identifier corresponding to a coupon template stored in the template library to determine whether the target coupon template is stored in the template library.

[0098] The template identifier is a unique identifier based on the basic description information and the target information sorted in a set order. If the basic description information and / or the target information changes, the corresponding template identifier also changes.

[0099] Optionally, a hash algorithm may be used to perform a hash operation on the basic description information and the target information sorted in a set order to obtain a hash value, ie, a target template identifier. As an example but not a limitation, the hash algorithm may refer to an MD5 information digest algorithm.

[0100] Optionally, the template library may include at least the first table in the first embodiment, and each row of first data in the first table corresponds to a template identifier. It should be noted that the template identifier of the coupon template may be stored in the first table or the template library, or may not be stored in the first table or the template library.

[0101] Step 204: if the target coupon template is not stored in the template library, a target coupon template is generated according to the basic description information and the target information.

[0102] For the relevant contents in step 204, reference may be made to the relevant description in step 103, which will not be repeated here.

[0103] Optionally, after the target coupon template is generated according to the basic description information and the target information, the target coupon template may be stored in a template library.

[0104] If the target coupon template is stored in the template library, the target coupon can be directly generated through the target coupon template.

[0105] This application determines the target customer group to which the user belongs after obtaining the current order information of the user; obtains the target template generation strategy that matches the target customer group; determines whether the target coupon template is stored in the template library based on the basic description information and the target information; and generates the target coupon template based on the basic description information and the target information if the target coupon template is not stored in the template library. This application first searches whether the target coupon template is stored in the template library, and then generates the target coupon template if the target coupon template is not stored in the template library, thereby avoiding duplicate creation of coupon templates.

[0106] Embodiment three:

[0107] See also Figure 3 , Figure 3 The schematic structure of a coupon template generation device provided by the present application is shown. For the convenience of explanation, only the parts related to the embodiment of the present application are shown in the figure.

[0108] Reference Figure 3 The device includes a group determination module 31, a strategy acquisition module 32 and a template generation module 33; wherein the specific functions of each module are as follows:

[0109] The group determination module 31 is used to determine the target customer group to which the user belongs when the current order information of the user is obtained;

[0110] A strategy acquisition module 32 is used to acquire a target template generation strategy that matches the target customer group, wherein the target template generation strategy includes basic description information and restriction description information of the coupon to be generated;

[0111] The template generation module 33 is used to generate a target coupon template according to the basic description information and the target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information.

[0112] Optionally, the target information corresponds to at least one target restriction condition, and the template generation module 33 is specifically used to:

[0113] Based on the basic description information, searching or creating first data in a first table, the first data being basic description data determined based on the basic description information;

[0114] Based on the target information, searching or creating second data in a second table, where the second data is description data of the target restriction condition;

[0115] The first data and the second data are associated to obtain a target coupon template.

[0116] Optionally, the template generation module 33 is specifically used for:

[0117] For each target constraint, based on the target information, searching the second table for the target dimension code and the target dimension value corresponding to the target constraint;

[0118] If the target dimension code and the target dimension value corresponding to the target restriction condition are found in the second table, the target dimension code and the target dimension value are determined as the second data;

[0119] If the target dimension code and the target dimension value corresponding to the target restriction condition are not found in the second table, the target dimension code and the target dimension value corresponding to the target restriction condition are created in the second table to obtain the second data.

[0120] Optionally, the template generation module 33 is specifically used for:

[0121] Based on the basic description information and the target information, determining whether a target coupon template is stored in the template library;

[0122] When the target coupon template is not stored in the template library, a target coupon template is generated according to the basic description information and the target information.

[0123] Optionally, the template generation module 33 is specifically used for:

[0124] Generate a target template identifier based on the basic description information and the target information sorted in a set order;

[0125] The target template identifier is compared with the template identifier corresponding to the coupon template stored in the template library to determine whether the target coupon template is stored in the template library.

[0126] Optionally, the group determination module 31 is specifically configured to:

[0127] Based on the current order information, determine the customer group to which the user belongs, and the customer group has a corresponding template generation strategy;

[0128] If the user belongs to multiple customer groups, then the target weight corresponding to each customer group is obtained, and the target weight is the group weight of the customer group or the policy weight of the template generation policy corresponding to the customer group; wherein the group weight is used to indicate the priority of the customer group, and the policy weight is used to indicate the priority of the template generation policy;

[0129] Determine the target customer group from multiple customer groups based on the target weight.

[0130] Optionally, the device further comprises:

[0131] The coupon generation module is used to generate a target coupon template based on the basic description information and the target information, and then generate a target coupon based on the target coupon template; and send the target coupon to the user.

[0132] The above-mentioned coupon template generation device provided in the embodiment of the present application can be applied in the above-mentioned method embodiments 1 and 2. For details, please refer to the description of the above-mentioned method embodiments 1 and 2, which will not be repeated here.

[0133] Embodiment 4:

[0134] See also Figure 4 , Figure 4 FIG. 4 shows a schematic structure of a terminal device provided by an embodiment of the present application. The terminal device 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40. When the processor 40 executes the computer program 42, the steps of the method for generating a coupon template in the first and second embodiments are implemented.

[0135] The terminal device 4 may be a computing device such as a computer, a physical server, or a cloud server that provides computing services. The terminal device 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the terminal device 4 and does not constitute a limitation on the terminal device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0136] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0137] In some embodiments, the memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or memory of the terminal device 4. In other embodiments, the memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0138] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0139] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0140] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0141] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0142] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0143] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0144] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0145] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for generating a coupon template, characterized in that: The method comprises: When the current order information of the user is obtained, determining the target customer group to which the user belongs; Acquire a target template generation strategy that matches the target customer group, wherein the target template generation strategy includes basic description information and restriction description information of the coupon to be generated; A target coupon template is generated according to the basic description information and the target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information.

2. The method according to claim 1, characterized in that The target information corresponds to at least one target restriction condition, and generating a target coupon template according to the basic description information and the target information includes: Based on the basic description information, searching or creating first data in a first table, where the first data is basic description data determined based on the basic description information; Based on the target information, searching or creating second data in a second table, where the second data is description data of the target restriction condition; The first data and the second data are associated to obtain the target coupon template.

3. The method according to claim 2, characterized in that The searching or creating second data in a second table based on the target information includes: For each of the target restriction conditions, based on the target information, searching the second table for the target dimension code and the target dimension value corresponding to the target restriction condition; If the target dimension code and the target dimension value corresponding to the target restriction condition are found in the second table, the target dimension code and the target dimension value are determined as the second data; If the target dimension code and target dimension value corresponding to the target restriction condition are not found in the second table, the target dimension code and target dimension value corresponding to the target restriction condition are created in the second table to obtain the second data.

4. The method according to claim 1, characterized in that The generating a target coupon template according to the basic description information and the target information includes: Based on the basic description information and the target information, determining whether the target coupon template is stored in a template library; In a case where the target coupon template is not stored in the template library, the target coupon template is generated according to the basic description information and the target information.

5. The method according to claim 4, characterized in that The determining, based on the basic description information and the target information, whether the target coupon template is stored in the template library includes: Generate a target template identifier based on the basic description information and the target information sorted in a set order; The target template identifier is compared with a template identifier corresponding to a coupon template stored in the template library to determine whether the target coupon template is stored in the template library.

6. The method according to claim 1, characterized in that Determining the target customer group to which the user belongs includes: Based on the current order information, determining the customer group to which the user belongs, the customer group corresponding to which a template generation strategy is provided; If the user belongs to multiple customer groups, then the target weight corresponding to each customer group is obtained, and the target weight is the group weight of the customer group or the policy weight of the template generation policy corresponding to the customer group; wherein the group weight is used to indicate the priority of the customer group, and the policy weight is used to indicate the priority of the template generation policy; The target customer group is determined from the plurality of customer groups according to the target weight.

7. The method according to any one of claims 1 to 6, characterized in that: After generating a target coupon template according to the basic description information and the target information, the method further includes: generating a target coupon based on the target coupon template; The target coupon is sent to the user.

8. A device for generating a coupon template, characterized in that: The device comprises: A group determination module is used to determine the target customer group to which the user belongs when the current order information of the user is obtained; A strategy acquisition module, used to acquire a target template generation strategy that matches the target customer group, wherein the target template generation strategy includes basic description information and restriction description information of the coupon to be generated; The template generation module is used to generate a target coupon template according to the basic description information and the target information; the target information is the restriction description information, or the target information is the current order information and the restriction description information.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.