A strategy adjustment method, device and electronic equipment
Through the monitoring code generated by the AI large model, automatic monitoring and policy adjustment of the advertising delivery system are realized, which solves the problems of poor experience and high time cost caused by frequent user logins and manual adjustments, and improves efficiency and accuracy.
Patent Information
- Application Number
- CN202410820891.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-06-24
AI Technical Summary
During the ad serving process, users need to frequently log in to the system to check whether the cost reaches the threshold and manually adjust the strategy, resulting in poor user experience and high system usage time costs.
Generate monitoring code through the AI large model, obtain and execute the monitoring code from the database regularly, automatically detect the policy adjustment conditions and make corresponding adjustments, and use the preset time intervals to automatically retrieve the monitoring code for monitoring and policy adjustment.
It realizes the automatic monitoring and policy adjustment of the advertising delivery system, reduces the frequency of user operations, improves the user experience, reduces the cost of system usage time, and reduces the developer's workload and code error rate.
Smart Images

Figure CN118396680B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of determining an advertisement delivery strategy, and in particular to a strategy adjustment method, device and electronic device. Background Art
[0002] Currently, during the process of advertising, users need to frequently log in to the advertising delivery system to check whether the advertising costs currently generated by the delivered advertisements have reached the preset cost threshold; and when the advertising costs reach the preset cost threshold, the user needs to manually adjust the advertising delivery strategy, where the advertising delivery strategy refers to the advertising method adopted by advertisers when promoting products or services in the market. Obviously, in the prior art, not only do users need to frequently log in to the advertising delivery system to check whether the advertising costs generated have reached the preset cost threshold; users also need to manually adjust the advertising delivery strategy when the advertising costs reach the preset cost threshold. This whole process is time-consuming and laborious for users, and the user experience is poor; for the advertising delivery system, the time cost of using the advertising delivery system is high during the advertising delivery process. Summary of the invention
[0003] The embodiments of the present invention provide a strategy adjustment method, device and electronic device for solving the problems of poor user experience caused by excessive user operations in the existing advertisement delivery process and high time cost of the advertisement delivery system.
[0004] The specific technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a policy adjustment method, the method comprising:
[0006] For the target object, according to the preset time interval, the monitoring code statement corresponding to the target object is obtained from the database regularly; wherein the monitoring code is generated by using the AI big model according to the user's monitoring request;
[0007] Execute the monitoring code statement to monitor the target object;
[0008] When it is monitored that the target object triggers a policy adjustment condition, the policy of the target object is adjusted according to the adjustment policy corresponding to the policy adjustment condition.
[0009] Optionally, before the step of acquiring the monitoring code statement corresponding to the target object from the database at a preset time interval for the target object, the method further includes:
[0010] Receive the adjustment policy rule tree, prompt words and examples input by the user; wherein the adjustment policy rule tree is written by the developer according to the monitoring rules provided by the customer; the prompt words and examples are written by the developer according to the adjustment policy rule tree; the monitoring rules include: monitoring fields, policy adjustment condition sets and adjustment policies corresponding to each policy adjustment condition;
[0011] Input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statement output by the AI big model;
[0012] The monitoring code statement is stored in a database.
[0013] Optionally, after the step of adjusting the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition, the method further includes:
[0014] After the policy adjustment is completed, the reasons for triggering the policy adjustment and the adjusted policy information will be fed back to the user.
[0015] Optionally, the data format of the adjustment strategy rule tree is Json data format.
[0016] Optionally, the target object is a target account for placing advertisements in the advertisement placing system;
[0017] The adjustment strategy is an adjustment strategy for advertisement delivery.
[0018] In a second aspect, an embodiment of the present invention provides a policy adjustment device, the method device comprising:
[0019] An acquisition module is used to obtain the monitoring code statement corresponding to the target object from the database at a preset time interval according to the target object; wherein the monitoring code is generated by using the AI big model according to the user's monitoring request;
[0020] An execution module, used for executing the monitoring code statement to monitor the target object;
[0021] The adjustment module is used to adjust the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition when it is monitored that the target object triggers the policy adjustment condition.
[0022] Optionally, the device further includes:
[0023] A receiving module, used to receive an adjustment policy rule tree, prompt words and examples input by a user; wherein the adjustment policy rule tree is written by a developer according to monitoring rules provided by a customer; the prompt words and examples are written by a developer according to the adjustment policy rule tree; the monitoring rules include: monitoring fields, a policy adjustment condition set and an adjustment policy corresponding to each policy adjustment condition;
[0024] An input module, used to input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statement output by the AI big model;
[0025] A storage module is used to store the monitoring code statement in a database.
[0026] Optionally, the device further includes:
[0027] The feedback module is used to feed back the reasons for triggering the policy adjustment and the adjusted policy information to the user after the policy adjustment is completed.
[0028] Optionally, the data format of the adjustment strategy rule tree is Json data format.
[0029] Optionally, the target object is a target account for placing advertisements in the advertisement placing system;
[0030] The adjustment strategy is an adjustment strategy for advertisement delivery.
[0031] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0032] The memory is used to store computer programs;
[0033] The processor is used to implement the policy adjustment method steps described in the first aspect when executing the program stored in the memory.
[0034] In a fourth aspect, an embodiment of the present invention 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 method steps for adjusting the policy described in the first aspect are implemented.
[0035] The method provided by the embodiment of the present invention can realize the generation of monitoring code according to the user's monitoring request, and then automatically call the monitoring code at a preset time interval to monitor the target object, and when the target object triggers a certain policy adjustment condition in the policy adjustment condition set, automatically adjust the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition. Obviously, the method provided by the embodiment of the present invention can realize automatic monitoring of the target object and automatic policy adjustment according to the actual situation, thereby solving the problem that the user needs to spend time and effort to constantly check whether the target object has triggered a certain policy adjustment condition in the policy adjustment condition set, and the user needs to manually adjust the policy, resulting in poor user experience and high system usage time cost.
[0036] In addition, the method provided in the embodiment of the present invention generates monitoring code based on the adjustment policy rule tree using an AI big model, instead of asking developers to write code based on the adjustment policy rule description in natural language provided by customers. This not only reduces the workload of developers and improves the efficiency of obtaining code, but also avoids the problem of high code error rate caused by different developers' inconsistent business understanding of the adjustment policy rule description in natural language.
[0037] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0038] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0040] Figure 1 A schematic diagram of a method flow of a strategy adjustment method provided by an embodiment of the present invention;
[0041] Figure 2 A schematic diagram of a flow chart of obtaining monitoring code statements in the strategy adjustment method provided in an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of another method flow of the strategy adjustment method provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of a structure of a strategy adjustment device provided by an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0046] Figure 1 A flow chart of a strategy adjustment method provided by an embodiment of the present invention is as follows: Figure 1 As shown, the method includes:
[0047] S101: For a target object, according to a preset time interval, a monitoring code statement corresponding to the target object is obtained from a database at a regular interval; wherein the monitoring code is generated by using an AI big model according to a user's monitoring request;
[0048] In practical applications, before the step of obtaining the monitoring code statement corresponding to the target object from the database at a preset time interval for the target object, the following steps may also be included:
[0049] Receive the adjustment policy rule tree, prompt words and examples input by the user; wherein the adjustment policy rule tree is written by the developer according to the monitoring rules provided by the customer; the prompt words and examples are written by the developer according to the adjustment policy rule tree; the monitoring rules include: monitoring fields, policy adjustment condition sets and adjustment policies corresponding to each policy adjustment condition;
[0050] Input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statements output by the AI big model;
[0051] Store monitoring code statements in the database.
[0052] In actual applications, to monitor the target object, you first need to create a monitoring task for the target object. For example, the monitoring task created is: for the target object marked as XX, every 10 minutes, obtain the monitoring code statement corresponding to the target object from the data, and execute the monitoring code statement to determine whether the target object has triggered the policy adjustment condition, and when the target object has triggered the policy adjustment condition, adjust the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition.
[0053] Before creating a monitoring task, you need to obtain the monitoring code statement. The monitoring code statement can be obtained in the following ways: the developer writes the adjustment strategy rule tree based on the identification information of the target object provided by the customer and the monitoring rules in the Json data format, where the data format of the adjustment strategy rule tree is also the standard Json data format; write prompt words and examples for the adjustment strategy rule tree; then input the written adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statement output by the AI big model; and store the monitoring code statement in the database.
[0054] Json is a lightweight data exchange format. It is based on a subset of JavaScript and uses a text format that is completely independent of the programming language to store and represent data. It has the following advantages: concise and clear hierarchical structure, easy for people to read and write, easy for machines to parse and generate, and can effectively improve network transmission efficiency. The following is a Json data format adjustment strategy rule tree:
[0055] {
[0056] "Rule Name": "Monitor Account",
[0057] "Monitoring Dimension": [
[0058] {
[0059] "Field": "Balance",
[0060] "Condition": "Less than 1000 yuan",
[0061] "Execution": "Pause ads with bids greater than 5 yuan"
[0062] },
[0063] {
[0064] "Field": "Balance",
[0065] "Condition": "Less than 10,000 yuan",
[0066] "Execution": "Advertisements with bids greater than 5 yuan will be adjusted to 3 yuan"
[0067] },
[0068] {
[0069] "Field": "Balance",
[0070] "Condition": "Less than 100 yuan",
[0071] "Execution": "Suspend all placements under the account"
[0072] } ]
[0074] }
[0075] The rule tree includes the rule name and monitoring dimension. Each monitoring dimension, that is, each monitoring rule item, includes: monitoring field, policy adjustment condition, and adjustment strategy. For example, the monitoring field in the first monitoring dimension is "balance", the policy adjustment condition is "less than 1,000 yuan", and the adjustment strategy is "pause ads with bids greater than 5 yuan".
[0076] In an embodiment of the present invention, the adjustment policy rules in the form of human natural language description are not directly input into the AI big model, but the adjustment policy rule tree in the Json data format and the prompt words and examples written for the adjustment policy rule tree are input into the AI big model, so that the AI big model understands the meaning of various symbols in the adjustment policy rule tree, thereby enabling the AI big model to understand the adjustment policy rule tree. The reason why the embodiment of the present invention uses the adjustment policy rule tree in the standard Json data format is that compared to inputting the complex adjustment policy rule description in the form of human natural language into the AI big model, inputting the adjustment policy rule tree in the Json data format into the AI big model will greatly improve the efficiency and accuracy of the big model in interpreting instructions.
[0077] AI big models are also called artificial intelligence pre-training models. They import massive amounts of data into models with hundreds of millions or even trillions of parameters. The machine deeply learns the features and structures contained in the data by doing tasks such as "cloze test", and is eventually trained into artificial intelligence with logical reasoning and analysis capabilities. In AI big models, the role of prompts is mainly to give AI big models the context of input information and parameter information of the input model. Prompts can help AI big models better understand the intent of the input and respond accordingly. In addition, prompts can also improve the interpretability and accessibility of the model. In layman's terms, it is to provide a "prompt" or "guide" to the AI big model to help it better understand and complete tasks. The role of examples is to help AI big models better understand the user's intent.
[0078] S102: Execute monitoring code statements to monitor the target object;
[0079] S103: When it is detected that the target object triggers a policy adjustment condition, the policy of the target object is adjusted according to the adjustment policy corresponding to the policy adjustment condition.
[0080] In actual applications, after the step of adjusting the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition, the following steps may also be included:
[0081] After the policy adjustment is completed, the reasons for triggering the policy adjustment and the adjusted policy information will be fed back to the user.
[0082] Specifically, after the strategy adjustment is completed, a text message or email may be sent to the user to inform the user of the reason for triggering the strategy adjustment and the adjusted strategy information. For example, after the advertising strategy is adjusted to "pause ads with bids greater than 5 yuan", a text message or email may be sent to the user to inform the user that the reason for triggering the strategy adjustment is that the account balance is less than 1,000 yuan, and the adjusted strategy information is "pause ads with bids greater than 5 yuan".
[0083] In a specific embodiment, the target object may be an account that places advertisements in the advertisement delivery system; the preset time interval may be 10 minutes. The policy adjustment conditions in the adjustment policy rule tree may include: the remaining advertising fee of the target account is less than the preset balance threshold, the advertising fee consumed by the target account is less than the preset consumption threshold, the newly added advertising fee of the target account is greater than the preset recharge threshold, etc. The specific process of this embodiment may be: for the target account, obtain the monitoring code statement corresponding to the target account from the database every 10 minutes; and execute the monitoring code statement to monitor the target account, and determine whether the value of the monitoring field of the target account triggers a certain policy adjustment condition in the adjustment policy rule tree. If yes, the advertising delivery strategy of the target account is adjusted to the advertising delivery strategy corresponding to the policy adjustment condition; if not, continue to use the current advertising delivery strategy. For example: the triggered policy adjustment condition is: the remaining advertising fee of the target account is less than the preset balance threshold, and the advertising delivery strategy corresponding to the policy adjustment condition is "pause advertisements with bids greater than 5 yuan", then the advertising delivery strategy of the target account is adjusted to "pause advertisements with bids greater than 5 yuan".
[0084] In summary, the method provided by the embodiment of the present invention can realize the generation of monitoring code according to the user's monitoring request, and then automatically call the monitoring code at a preset time interval to monitor the target object, and when the target object triggers a certain policy adjustment condition in the policy adjustment condition set, the target object is automatically adjusted according to the adjustment policy corresponding to the policy adjustment condition. Obviously, the method provided by the embodiment of the present invention can realize automatic monitoring of the target object and automatic policy adjustment according to the actual situation, thereby solving the problem of poor user experience and high system usage time cost caused by the need for users to spend time and effort to check whether the target object triggers a certain policy adjustment condition in the policy adjustment condition set, and the need for users to manually adjust the policy in the prior art. In addition, the method provided by the embodiment of the present invention is based on the adjustment policy rule tree, and uses the AI big model to generate monitoring code; instead of asking developers to write code according to the adjustment policy rule description in natural language provided by customers, which not only reduces the workload of developers and improves the efficiency of obtaining code, but also avoids the problem of high code error rate caused by different developers' inconsistent understanding of the business of the adjustment policy rule description in natural language.
[0085] The following is a practical example to further illustrate the method provided by the embodiment of the present invention in more detail.
[0086] In this embodiment, the target object is a target account for placing advertisements in the advertisement placing system; the preset time interval is 10 minutes, and the adjustment strategy is the adjustment strategy for advertisement placing; see Figure 2 In this embodiment, the monitoring code statement corresponding to the target account is obtained by the following steps:
[0087] S201: receiving an adjustment policy rule tree, prompt words and examples input by a user; wherein the adjustment policy rule tree is written by a developer based on monitoring rules provided by a customer; the prompt words and examples are written by a developer based on the adjustment policy rule tree; the monitoring rules include: monitoring fields, a policy adjustment condition set and an adjustment policy corresponding to each policy adjustment condition;
[0088] In this embodiment, the monitoring fields include: a balance field, a consumption field, and a recharge field.
[0089] The policy adjustment conditions are: balance less than 1,000 yuan, consumption less than 1,000 yuan, and recharge greater than 1,000 yuan. The adjustment strategies corresponding to the above policy adjustment conditions are: suspend ads with bids greater than 5 yuan, increase all ad consumption, and increase all ad consumption.
[0090] In this embodiment, the format of the monitoring rules provided by the customer is the Json data format, and the format of the adjustment strategy rule tree written by the developer is also the Json data format. In this embodiment, the adjustment strategy rule tree written by the developer is:
[0091] {
[0092] "Rule Name": "Monitor Account",
[0093] "Monitoring Dimension": [
[0094] {
[0095] "Field A": "Balance",
[0096] "Condition A": "less than 1000 yuan",
[0097] "Execution A": "Pause ads with bids greater than 5 yuan"
[0098] },
[0099] {
[0100] "Field B": "Consumption",
[0101] "Condition B": "less than 1000 yuan",
[0102] "Action B": "Increase all advertising consumption"
[0103] },
[0104] {
[0105] "Field C": "Recharge",
[0106] "Condition C": "Greater than 1000 yuan",
[0107] "Execute C": "Increase all advertising costs"
[0108] } ]
[0110] }
[0111] S202: Input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statement output by the AI big model;
[0112] For example, the example is "the field of the first rule A in the monitoring dimension is "Balance", the monitoring condition is "less than 1,000 yuan", and the execution code logic to be written is "less than 1,000 yuan". Such a monitoring item should generate a code statement such as Update TableNameSet State=Pause ads with bids greater than 5 yuan Where Field A<1000. Based on the above example, please analyze all the rule items in the rule tree and generate code in this format one by one."
[0113] After inputting the pre-written examples into the AI big model, the AI big model will draw inferences from the examples and generate corresponding monitoring code statements for all rule items in the adjustment strategy rule tree. Specifically, for the adjustment strategy rule tree in this embodiment, the AI big model is the first rule in the monitoring dimension, that is, the first monitoring item, and the generated monitoring code statement is: Update TableName Set State=Pause ads with bids greater than 5 yuan Where field A<1000. The AI big model is the second rule in the monitoring dimension, and the generated monitoring code statement is: Update TableName Set State=Increase all advertising consumption Where field B<1000. The AI big model is the third rule in the monitoring dimension, and the generated monitoring code statement is: Update TableName Set State=Increase all advertising consumption Where field C>1000.
[0114] S203: Store the monitoring code statement in the database.
[0115] See also Figure 3 The process of the strategy adjustment method provided by the embodiment of the present invention is as follows:
[0116] S301: For the target account, obtain the monitoring code statement corresponding to the target account from the database every 10 minutes;
[0117] Of course, in actual applications, users can set the duration of the time interval according to their actual needs.
[0118] S302: Execute monitoring code statements to monitor the target account;
[0119] S303: Determine whether the target account triggers a policy adjustment condition in the policy adjustment rule tree; if so, execute step S304; if not, execute step S305;
[0120] For example, it is determined whether the value in the balance field of the target account is less than the balance threshold of 1000, whether the value in the consumption field is less than the consumption threshold of 1000, and whether the value in the recharge field is greater than the threshold of 1000. If the value in the balance field is less than the balance threshold of 1000, the advertising delivery strategy is adjusted to "pause advertisements with bids greater than 5 yuan"; if the value in the consumption field is less than the consumption threshold of 1000, the advertising delivery strategy is adjusted to "increase all advertising consumption"; if the value in the recharge field is greater than the threshold of 1000, the advertising delivery strategy is adjusted to "increase all advertising consumption".
[0121] S304: The advertising delivery strategy of the target account is adjusted according to the advertising delivery strategy corresponding to the triggered strategy adjustment condition; and after the adjustment is completed, the reason for triggering the strategy adjustment and the information of the adjusted advertising delivery strategy are fed back to the user.
[0122] S305: Continue to execute the current advertisement delivery strategy.
[0123] If the target account does not trigger any of the policy adjustment conditions in the policy adjustment condition set, the advertising delivery strategy of the target account will not be adjusted, and the target account will continue to execute the current advertising delivery strategy.
[0124] In summary, the method provided by the embodiment of the present invention can realize the generation of monitoring code according to the user's monitoring request, and then automatically call the monitoring code at a preset time interval to monitor the target object, and when the target object triggers a certain policy adjustment condition in the policy adjustment condition set, automatically adjust the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition. Obviously, the method provided by the embodiment of the present invention can realize automatic monitoring of the target object and automatic policy adjustment according to the actual situation, thereby solving the problem that the user needs to spend time and effort to constantly check whether the target object has triggered a certain policy adjustment condition in the policy adjustment condition set, and the user needs to manually adjust the policy, resulting in poor user experience and high system usage time cost.
[0125] In addition, the method provided in the embodiment of the present invention generates monitoring code based on the adjustment policy rule tree using an AI big model, instead of asking developers to write code based on the adjustment policy rule description in natural language provided by customers. This not only reduces the workload of developers and improves the efficiency of obtaining code, but also avoids the problem of high code error rate caused by different developers' inconsistent business understanding of the adjustment policy rule description in natural language.
[0126] and Figure 1 Corresponding to the embodiment shown in FIG. 1 , the embodiment of the present invention further provides a device for generating a virtual reality display screen. Figure 4 As shown, the device includes: an acquisition module 401, an execution module 402, and an adjustment module 403, wherein:
[0127] The acquisition module 401 is used to obtain the monitoring code statement corresponding to the target object from the database at a preset time interval according to the target object; wherein the monitoring code is generated by using the AI big model according to the user's monitoring request;
[0128] An execution module 402 is used to execute monitoring code statements to monitor the target object;
[0129] The adjustment module 403 is used to adjust the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition when it is detected that the target object triggers the policy adjustment condition.
[0130] Optionally, the device further includes:
[0131] A receiving module is used to receive the adjustment policy rule tree, prompt words and examples input by the user; wherein the adjustment policy rule tree is written by the developer according to the monitoring rules provided by the customer; the prompt words and examples are written by the developer according to the adjustment policy rule tree; the monitoring rules include: monitoring fields, policy adjustment condition sets and adjustment policies corresponding to each policy adjustment condition;
[0132] An input module is used to input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statements output by the AI big model;
[0133] The storage module is used to store the monitoring code statements in the database.
[0134] Optionally, the device further includes:
[0135] The feedback module is used to feed back the reasons for triggering the policy adjustment and the adjusted policy information to the user after the policy adjustment is completed.
[0136] Optionally, the data format of the policy rule tree is adjusted to the Json data format.
[0137] Optionally, the target object is a target account for placing advertisements in the advertisement placing system;
[0138] The adjustment strategy is the adjustment strategy for advertisement delivery.
[0139] In summary, the device provided by the embodiment of the present invention can realize the generation of monitoring code according to the user's monitoring request, and then automatically call the monitoring code at a preset time interval to monitor the target object, and when the target object triggers a certain policy adjustment condition in the policy adjustment condition set, the target object is automatically adjusted according to the adjustment policy corresponding to the policy adjustment condition. Obviously, the device provided by the embodiment of the present invention can realize automatic monitoring of the target object and automatic policy adjustment according to the actual situation, thereby solving the problem that the user needs to spend time and effort to check whether the target object triggers a certain policy adjustment condition in the policy adjustment condition set, and the user needs to manually adjust the policy, resulting in poor user experience and high system usage time cost. In addition, the device provided by the embodiment of the present invention generates monitoring code based on the adjustment policy rule tree using the AI big model; instead of asking the developer to write code according to the adjustment policy rule description in the natural language form provided by the customer, which not only reduces the workload of the developer and improves the efficiency of obtaining the code, but also avoids the problem of high code error rate caused by different developers' inconsistent understanding of the business of the adjustment policy rule description in the natural language form.
[0140] and Figure 1 Corresponding to the embodiment shown, the embodiment of the present invention further provides an electronic device, see Figure 5 , including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504;
[0141] Memory 503, used for storing computer programs;
[0142] The processor 501 is configured to implement any of the policy adjustment method steps described in the above embodiments when executing a program stored in the memory.
[0143] In summary, the electronic device provided by the embodiment of the present invention can realize the generation of monitoring code according to the user's monitoring request, and then automatically retrieve the monitoring code at a preset time interval to monitor the target object, and when the target object triggers a certain policy adjustment condition in the policy adjustment condition set, the target object is automatically adjusted according to the adjustment policy corresponding to the policy adjustment condition. Obviously, the electronic device provided by the embodiment of the present invention can realize automatic monitoring of the target object and automatic policy adjustment according to the actual situation, thereby solving the problem that the user needs to spend time and effort to check whether the target object triggers a certain policy adjustment condition in the policy adjustment condition set, and the user needs to manually adjust the policy, resulting in poor user experience and high system usage time cost. In addition, the electronic device provided by the embodiment of the present invention generates monitoring code based on the adjustment policy rule tree using the AI big model; instead of asking the developer to write code according to the adjustment policy rule description in the natural language form provided by the customer, which not only reduces the workload of the developer and improves the efficiency of obtaining the code, but also avoids the problem of high code error rate caused by different developers' inconsistent understanding of the business of the adjustment policy rule description in the natural language form.
[0144] and Figure 1 Corresponding to the embodiment shown, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method steps of any policy adjustment described in the above embodiments are implemented.
[0145] In summary, the storage medium provided by the embodiment of the present invention can realize the generation of monitoring code according to the user's monitoring request, and then automatically call the monitoring code at a preset time interval to monitor the target object, and when the target object triggers a certain policy adjustment condition in the policy adjustment condition set, the target object is automatically adjusted according to the adjustment policy corresponding to the policy adjustment condition. Obviously, the storage medium provided by the embodiment of the present invention can realize automatic monitoring of the target object and automatic policy adjustment according to the actual situation, thereby solving the problem of poor user experience and high system usage time cost caused by the need for users to spend time and effort to check whether the target object triggers a certain policy adjustment condition in the policy adjustment condition set, and the need for users to manually adjust the policy in the prior art. In addition, the storage medium provided by the embodiment of the present invention generates monitoring code based on the adjustment policy rule tree and uses the AI big model; instead of asking developers to write code according to the adjustment policy rule description in natural language provided by customers, which not only reduces the workload of developers and improves the efficiency of obtaining code, but also avoids the problem of high code error rate caused by different developers' inconsistent understanding of the business of the adjustment policy rule description in natural language.
[0146] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0147] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0150] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A strategy adjustment method, characterized in that: The method comprises: For the target object, according to the preset time interval, the monitoring code statement corresponding to the target object is obtained from the database regularly; wherein the monitoring code is generated by using the AI big model according to the user's monitoring request; Execute the monitoring code statement to monitor the target object; When it is detected that the target object triggers a policy adjustment condition, the policy of the target object is adjusted according to the adjustment policy corresponding to the policy adjustment condition; Before the step of acquiring the monitoring code statement corresponding to the target object from the database at a preset time interval, the method further includes: Receive the adjustment strategy rule tree, prompt words and examples input by the user; the data format of the adjustment strategy rule tree is Json data format; the adjustment strategy rule tree includes: rule name and monitoring dimension; the monitoring dimension includes: monitoring field, policy adjustment condition and adjustment strategy; the example includes: the name of the monitoring field, the monitoring condition and policy adjustment condition corresponding to the monitoring field, and the code statement to be generated corresponding to the monitoring field; Input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statement output by the AI big model; The monitoring code statement is stored in a database.
2. The method according to claim 1, characterized in that: After the step of adjusting the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition, the method further includes: After the policy adjustment is completed, the reasons for triggering the policy adjustment and the adjusted policy information will be fed back to the user.
3. The method according to claim 1, characterized in that The target object is a target account for placing advertisements in the advertisement placing system; The adjustment strategy is an adjustment strategy for advertisement delivery.
4. A strategy adjustment device, characterized in that: The device comprises: An acquisition module is used to obtain the monitoring code statement corresponding to the target object from the database at a preset time interval according to the target object; wherein the monitoring code is generated by using the AI big model according to the user's monitoring request; An execution module, used for executing the monitoring code statement to monitor the target object; An adjustment module, configured to adjust the policy of the target object according to the adjustment policy corresponding to the policy adjustment condition when it is detected that the target object triggers the policy adjustment condition; Wherein, the device further comprises: A receiving module is used to receive an adjustment policy rule tree, a prompt word and an example input by a user; the data format of the adjustment policy rule tree is a Json data format; the adjustment policy rule tree includes: a rule name and a monitoring dimension; the monitoring dimension includes: a monitoring field, a policy adjustment condition and an adjustment policy; the example includes: a name of a monitoring field, a monitoring condition and a policy adjustment condition corresponding to the monitoring field, and a code statement to be generated corresponding to the monitoring field; An input module, used to input the adjustment strategy rule tree, prompt words and examples into the AI big model to obtain the monitoring code statement output by the AI big model; A storage module is used to store the monitoring code statement in a database.
5. The device according to claim 4, characterized in that The device further comprises: The feedback module is used to feed back the reasons for triggering the policy adjustment and the adjusted policy information to the user after the policy adjustment is completed.
6. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 1-3 when executing the program stored in the memory.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.
