Resource scheduling method and device, electronic equipment, readable storage medium and computer program product

By dynamically allocating AI agent resources according to the task progress of target events in the intelligent outbound call service, the problem of low resource utilization and execution efficiency is solved, and efficient utilization of agent resources and efficient execution of target events are achieved.

CN118657303APending Publication Date: 2024-09-17MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410217804.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In intelligent outbound call business scenarios, existing technologies cannot effectively schedule and allocate AI agent resources, resulting in low resource utilization, low efficiency in executing target events, and uneven distribution and waste in the resource competition process.

Method used

By dynamically allocating agent resources according to the task progress of target events in each time period, and using the agent resources to be scheduled to allocate required resources in real time, periodic agent resource scheduling is achieved to ensure that resources are allocated on demand.

Benefits of technology

It improves the utilization of agent resources and the execution efficiency of target events, avoids waste of resources, and solves the problems of resource contention and uneven distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657303A
    Figure CN118657303A
Patent Text Reader

Abstract

The invention provides a resource scheduling method and device, electronic equipment, a readable storage medium and a computer program product. The method comprises the following steps: determining a second allocated seat resource in a second time period based on a first target allocated seat resource in a first time period and a first allocated seat resource in the first time period; determining a first seat resource to be scheduled in the second time period according to the second allocated seat resource; determining the task progress of a target event in the second time period; and if the task progress represents that seat resources need to be allocated in the second time period, determining a second target allocation seat resource in the second time period based on the first to-be-scheduled seat resource.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to artificial intelligence technology, and in particular to a resource scheduling method, device, electronic device, readable storage medium and computer program product. Background Art

[0002] In some intelligent outbound call business scenarios, a large number of intelligent outbound call target events are running, and artificial intelligence (AI) agent resources need to be scheduled for the target events. When the execution progress of the target event is slow and the target event queues for execution, the agent resources of the target event need to be reasonably scheduled and allocated to ensure that each target event can be executed efficiently.

[0003] In the related art, when allocating seat resources to target events, seat resources are generally allocated uniformly for all target events. However, this will cause multiple target events to compete for seat resources, making the seat resources allocated to each target event uneven. Moreover, during the competition for seat resources, some target events with slow task progress may still not be allocated the required seat resources, resulting in low utilization of seat resources and low execution efficiency of target events. Summary of the invention

[0004] The embodiments of the present application provide a resource scheduling method, device, electronic device, readable storage medium and computer program product, which can reasonably allocate required agent resources according to the task progress of the target event in each time period, thereby improving the utilization rate of agent resources and the execution efficiency of the target event.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides a resource scheduling method, the method comprising:

[0007] Determine a second allocated seat resource in a second time period based on a first target allocated seat resource in a first time period and a first allocated seat resource in the first time period;

[0008] Determine the first seat resource to be scheduled within the second time period according to the second allocated seat resource;

[0009] Determining the task progress of the target event within the second time period;

[0010] If the task progress indicates that seat resources need to be allocated within the second time period, a second target allocated seat resource for the second time period is determined based on the first seat resources to be scheduled.

[0011] The present application provides a resource scheduling device, including:

[0012] A determination module, configured to determine a second allocated seat resource in a second time period based on a first target allocated seat resource in a first time period and a first allocated seat resource in the first time period;

[0013] Determine the first seat resource to be scheduled within the second time period according to the second allocated seat resource;

[0014] Determining the task progress of the target event within the second time period;

[0015] If the task progress indicates that seat resources need to be allocated within the second time period, a second target allocated seat resource for the second time period is determined based on the first seat resources to be scheduled.

[0016] An embodiment of the present application provides an electronic device, including:

[0017] Memory for storing computer executable instructions or computer programs;

[0018] The processor is used to implement the resource scheduling method provided in the embodiment of the present application when executing the computer executable instructions or computer programs stored in the memory.

[0019] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for implementing the resource scheduling method provided in the embodiment of the present application when executed by a processor.

[0020] An embodiment of the present application provides a computer program product, including computer executable instructions or a computer program. When the computer executable instructions or the computer program are executed by a processor, the resource scheduling method provided in the embodiment of the present application is implemented.

[0021] The embodiments of the present application have the following beneficial effects:

[0022] When executing the target event, for the second time period, the allocated seat resources and the seat resources to be scheduled in the second time period are determined. Then, according to the task progress of the target event in the second time period, when the task progress indicates that seat resources need to be allocated in the second time period, the target allocated seat resources in the second time period are determined from the seat resources to be scheduled for allocation. Thus, by allocating the required seat resources for the target event in real time in the second time period, periodic dynamic allocation of seat resources is achieved. In the second time period, whether to allocate seat resources is determined based on the actual task progress of the target event, which not only improves the utilization rate of seat resources, but also improves the execution efficiency of the target event. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1AIt is a schematic diagram of the architecture of the resource scheduling system provided in the embodiment of the present application;

[0024] Figure 1B It is an application schematic diagram of resource scheduling provided by an embodiment of the present application;

[0025] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0026] Figure 3A It is a schematic diagram of a first process of the resource scheduling method provided in an embodiment of the present application;

[0027] Figure 3B It is a second flow diagram of the resource scheduling method provided in an embodiment of the present application;

[0028] Figure 3C It is a third flow chart of the resource scheduling method provided in the embodiment of the present application;

[0029] Figure 3D It is a fourth flow chart of the resource scheduling method provided in an embodiment of the present application;

[0030] Figure 3E It is a fifth flow chart of the resource scheduling method provided in an embodiment of the present application;

[0031] Figure 3F 6 is a schematic diagram of a resource scheduling method according to an embodiment of the present application;

[0032] Figure 3G 7 is a schematic diagram of a seventh flow chart of a resource scheduling method provided in an embodiment of the present application;

[0033] Figure 3H This is a schematic diagram of an eighth process of the resource scheduling method provided in an embodiment of the present application;

[0034] Figure 4 It is a flowchart of the seat dynamic allocation method provided in the embodiment of the present application;

[0035] Figure 5 It is a schematic diagram of seat allocation provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0037] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0038] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0039] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0040] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0041] 1) AI agent: It is a voice outbound call agent based on artificial intelligence, generally composed of agent computers, agent software, artificial intelligence programs (or robots), etc. The agent software (robot) realizes the relevant intelligent outbound call (dial) functions through hardware devices, and automatically provides service recommendations, business consultations, business requests and replies to the outside world (customers or other outbound called parties).

[0042] 2) Agent resources: refers to the number of AI agents assigned by the business system to the server for use in executing target events. A large number of AI agents indicates more agent resources. For example, agent resources can also refer to the number of agent software (robots) or hardware devices.

[0043] The embodiments of the present application provide a resource scheduling method, device, electronic device, computer-readable storage medium and computer program product, which can reasonably allocate required agent resources according to the task progress of the target event in each time period, thereby improving the utilization rate of agent resources and the execution efficiency of the target event.

[0044] The following describes exemplary applications of the electronic device provided in the embodiments of the present application. The device provided in the embodiments of the present application can be implemented as various types of user terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, mobile devices (for example, mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), smart phones, smart speakers, smart watches, smart televisions, and vehicle-mounted terminals, and can also be implemented as servers.

[0045] See also Figure 1A , Figure 1A It is a schematic diagram of the architecture of the resource scheduling system 100 provided in an embodiment of the present application, including a terminal 500, a network 300 and a server 200. The terminal 500 is connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0046] In some embodiments, the resource scheduling method provided in the embodiment of the present application can be implemented by the terminal 500 and the server 200. For example, various applications (Application, APP) related to intelligent outbound call scenarios are running in the terminal 500, such as instant messaging APP, reading APP, video APP, game APP, or other software programs. Various target events related to intelligent outbound calls are executed in the application. When a service request is initiated through the network 300 in the application of the terminal 500 to request the allocation of seat resources, the server 200 responds to the service request of the terminal 500, and determines the second allocated seat resources in the second time period based on the first target allocated seat resources in the first time period and the first allocated seat resources in the first time period; determines the first to-be-scheduled seat resources in the second time period according to the second allocated seat resources; determines the task progress of the target event in the second time period; if the task progress indicates that the seat resources need to be allocated in the second time period, then based on the first to-be-scheduled seat resources, the second target allocated seat resources in the second time period are determined, and the second target allocated seat resources are allocated to the target event executed in the terminal 500, and the resource allocation result is returned to the terminal 500 through the network 300. The resource allocation result will be seen on the application of terminal 500, and the application will allocate agent resources according to the allocated target to continue to execute the target event to complete the intelligent outbound call.

[0047] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal 500 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0048] Next, an exemplary application when the electronic device is implemented as a terminal will be described, see Figure 1B , Figure 1B It is an application diagram of the resource scheduling method provided in the embodiment of the present application. The user executes various target events in the application related to the intelligent outbound call running in the terminal. When the user initiates a service request in the application to request the allocation of agent resources, the terminal responds to the service request, and determines the second allocated agent resources and the first agent resources to be scheduled in the second time period for the second time period, and then determines the task progress of the executed target event in the second time period. When the task progress indicates that the agent resources need to be allocated in the second time period, the target allocated agent resources in the second time period are determined based on the first agent resources to be scheduled in the second time period, and are allocated to the executed target event. The application will continue to execute the target event to complete the intelligent outbound call according to the agent resources allocated by the terminal.

[0049] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 400 provided in an embodiment of the present application, Figure 2 The electronic device 400 shown includes: at least one processor 410, a memory 450, and at least one network interface 420. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 440 is not described in detail. Figure 2 Various buses are labeled as bus system 440 .

[0050] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0051] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.

[0052] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.

[0053] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0054] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0055] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;

[0056] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The resource scheduling device 453 stored in the memory 450 is shown, which can be software in the form of a program and a plug-in, etc., and includes the following software modules: a determination module 4531 and an allocation module 4532. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.

[0057] The resource scheduling method provided in the embodiment of the present application will be described in combination with the exemplary application and implementation of the server provided in the embodiment of the present application. Figure 3A , Figure 3A is a flow chart of a resource scheduling method provided in an embodiment of the present application, which comprises Figure 1A The server 200 shown is the execution entity, which will be combined with Figure 3A The steps shown are explained.

[0058] In step 101, based on the first target allocated seat resources in the first time period and the first allocated seat resources in the first time period, the second allocated seat resources in the second time period are determined, and the first to-be-scheduled seat resources in the second time period are determined according to the second allocated seat resources.

[0059] In the embodiment of the present application, the process of executing the target event of the intelligent outbound call is divided into multiple time periods, and the length of each time period can be the same or different. Specifically, a timed operation can be set in the business system, and a timed operation can be performed every certain period of time, and this period of time can be recorded as a second time period, such as every 5 minutes, 30 minutes, or 3 hours.

[0060] Next, for the second time period, the second allocated seat resources within the second time period are determined, and the first seat resources to be scheduled within the second time period are determined based on the second allocated seat resources. After determining multiple second time periods for the execution of the target event, the second allocated seat resources within the second time period are determined. Here, the second allocated seat resources within the second time period can be counted according to the target event being executed. If the current second time period is the first time period, it means that the target event has not started to be executed at this time, and the seat resources have not been allocated, so in the current first time period, the allocated seat resources are zero. When the second time period is not the first time period, it means that the target event has started to be executed at this time, and it is necessary to determine the allocated seat resources in the first time period and the time period after the first time period. That is, for the second time period, the allocated seat resources of all time periods within the range from the first time period to the second time period are counted, and processed to obtain the allocated seat resources of the current business.

[0061] After determining the allocated seat resources for the second time period, it is also necessary to determine the first seat resources to be scheduled for the second time period, that is, the seat resources that can also be allocated to execute the target event in the second time period. The embodiment of the present application determines the seat resources to be scheduled in the second time period based on the allocated seat resources. The process of determining the seat resources to be scheduled will be described below.

[0062] In some embodiments, see Figure 3B , Figure 3A The step 101 of "determining the first seat resource to be scheduled in the second time period according to the second allocated seat resource" can be implemented by the following steps 1011 to 1012, which are described in detail below.

[0063] In step 1011, available agent resources for executing the target event are obtained.

[0064] In some embodiments, to determine the seat resources to be scheduled in the second time period, it is necessary to obtain the available seat resources when executing the target event (i.e., in the first time period). Because the execution of the target event starts from the first time period, it is necessary to obtain the available seat resources when executing the target event in the first time period. This available seat resource has nothing to do with the target event in the second time period, but is related to the target event completed in the business system. The available seat resources when executing the target event in the second time period can be obtained by counting some historical execution indicators of the target event.

[0065] In some embodiments, see Figure 3C , Figure 3B The illustrated step 1011 can be implemented by following the steps 10111 to 10113, which are described in detail below.

[0066] In step 10111, the execution rate index of the target event, the system available performance index, the task control index and the task execution success rate are determined.

[0067] In some embodiments, in order to obtain the available agent resources when executing the target event, it is necessary to first determine the execution rate index, system available performance index, task control index and task execution success rate of the target event executed in the business system. However, the target event has not started to be executed in the first time period, so here, the available agent resources when executing the target event are obtained by counting these historical execution indicators when the business system executes the target event.

[0068] In the embodiment of the present application, the target event specifically refers to an intelligent outbound call task, which provides service recommendations, business consultations, business requests and replies to the outside world through outbound calls (dialing) by agent software (robot) and hardware equipment. Each outbound call requires a dial-up call, and the number of successful dial-up calls is counted to obtain the number of connections. During each dial-up call, each speech (conversation) of the agent software (robot) can be regarded as a call round, that is, an outbound call round. In each dial-up call, the outbound call round and the duration of the dial-up call, also known as the outbound call duration, are counted.

[0069] For the execution rate indicator of the target event, the number of successfully connected dial-up calls, the total outbound call duration of all dial-up calls, and the total number of outbound call rounds can be counted within a period or multiple time periods when the target event is executed. Then, the ratio of the sum of all outbound call rounds to the number of connections is taken as the historical average call round, and the ratio of the total outbound call duration of all dial-up calls to the number of connections is taken as the historical average call duration. Finally, the ratio of the historical average call round to the historical average call duration is taken as the execution rate indicator, which represents how many call rounds are executed for each call duration.

[0070] For the system available performance index, the performance index here refers to the throughput of the business system hardware equipment, that is, the query rate per second (Queries Per Second, QPS) of the business system, which refers to the number of outbound call requests processed by the business system per second in the embodiment of the present application. Because each outbound call requires the artificial intelligence program or business model of the business system to process an outbound call request, this outbound call request is used to request to predict the intention of the outside world to speak in a certain call round during the dial-up call, and generate the speech of the next call round in real time. The total throughput of the business system refers to the maximum number of outbound call requests that the business system can handle per unit time (peak value), where the number of outbound call requests can be calculated by performing data embedding during the dial-up call. The peak throughput of the business system indicates that the utilization rate of the hardware resources of the business system has reached the highest. The business system may be processing other business requests or outbound call tasks at the same time, occupying part of the throughput, so it is necessary to count the number of request calls currently processed by the business system, and calculate the current occupied throughput of the business system, and then use the difference between the total throughput and the current occupied throughput as the available throughput of the business system, that is, the available performance indicator, to characterize how many outbound call requests the business system can currently handle.

[0071] Regarding the task execution success rate, because each time an outbound call is made to the outside world using the agent software (robot), the outside world may not receive the call, which means that the dial-up call has failed. Therefore, it is necessary to count the number of these failures. Finally, the ratio of the number of dial-up call failures to the total number of outbound calls (including the number of successful dial-ups) is determined as the historical connection rate, which is the task execution success rate.

[0072] Regarding the task control index, considering that the other indicators are fixed values ​​determined based on historical execution data, there will be many uncertain factors in the process of executing the target event, such as abnormal execution of hardware equipment, disconnection of network resources, etc., which will affect the available agent resources of the system. Therefore, in the embodiment of the present application, when estimating the available agent resources provided by the business system, a variable control index is preset to deal with these uncertain factors and obtain the available agent resources as accurately as possible. The variable control index here is the task control index, which can be manually configured based on the historical experience of the target event completed in the business system.

[0073] In step 10112, a first ratio between the system availability performance index and the execution rate index is determined, and a second ratio between the first ratio and the task execution success rate is determined.

[0074] Following the above embodiment, after determining the execution rate index, system available performance index, task control index and task execution success rate of the target event, the first ratio between the system available performance index and the execution rate index is determined, and the second ratio between the first ratio and the task execution success rate is determined. Here, the first ratio represents the number of call rounds that can be executed within the available performance index of the business system. Then, the second ratio of the first ratio and the task execution success rate is calculated, and this second ratio is the number of call rounds that can be executed within the available performance index excluding the failure of the dial-up call.

[0075] In step 10113, the ratio between the second ratio and the task control index is determined as the available seat resource.

[0076] Following the above embodiment, after determining the second ratio between the first ratio and the task execution success rate, the ratio between the second ratio and the task control index is determined as the available agent resource when executing the target event. The ratio of the second ratio to the task control index here is the call round that can be executed within the available performance index when excluding the uncertain factors in the process of the business system executing the target event. This round can be used as the available agent resource when executing the target event.

[0077] In some embodiments, the method of determining available seat resources in step 10112 and step 10113 can be implemented by the following formula (1):

[0078]

[0079] In the above formula (1), x is the task execution success rate, y is the task control index, a is the historical average call duration, b is the historical average call rounds, QPS is the total throughput (peak) of the business system, the unit is the number of outbound call requests / second, and r represents the number of request calls currently processed by the business system. Substituting the index determined in step 10111 into the above formula (1), the available agent resources when executing the target event can be calculated.

[0080] Continue to see Figure 3B In step 1012, the difference between the available seat resources and the allocated seat resources in the second time period is determined as the first seat resource to be scheduled.

[0081] Determine the available seat resources when executing the target event, and determine the difference between the available seat resources and the allocated seat resources in the second time period as the seat resources to be scheduled in the second time period (i.e., the first seat resources to be scheduled). Here, when the second time period is the first time period, the allocated seat resources are zero, and the available seat resources can be directly used as the seat resources to be scheduled in the first time period. When the second time period is not the first time period, calculate the difference between the available seat resources and the allocated seat resources in the second time period to obtain the seat resources to be scheduled in the second time period.

[0082] Continue to see Figure 3A , in step 102, the task progress of the target event within the second time period is determined.

[0083] After determining the first seat resource to be scheduled in the second time period, considering that the first seat resource to be scheduled needs to be allocated to the target event to which the seat resource needs to be allocated, and whether the target event needs to allocate the seat resource depends on the task progress of the target event. Therefore, it is necessary to determine the task progress of the executed target event in the second time period, so as to reasonably allocate the seat resources according to the actual task progress of the target event and ensure that the target event can be executed efficiently. The specific process of determining the task progress of the target event is described below.

[0084] In some embodiments, see Figure 3D , Figure 3A The illustrated step 102 may be implemented by following steps 1021 to 1023, which are described in detail below.

[0085] In step 1021, the total index and total duration of the target event are determined.

[0086] In some embodiments, because the target event is mainly an outbound call task, the business system generally sets a total indicator for each target event, that is, the number of outbound calls (the number of dial-up calls) that the target event needs to perform. At the same time, the total duration of each target event is also set to specify the total indicator of the target event to be completed within the total duration. Therefore, when determining the task progress of the target event in the second time period, it is necessary to determine the total indicator and total duration of the target event.

[0087] In step 1022, the target for completing the target event within the second time period and the duration for executing the target event are determined.

[0088] Following the above embodiment, next, for the second time period, determine the indicator for completing the target event and the duration of executing the target event within the second time period. Among them, the indicator for completing the target event (i.e., the completed indicator) refers to the number of outbound calls (the number of dial-up calls) that have been executed within the second time period. And it is also necessary to count the duration of executing the target event (i.e., the duration of the task that has been executed). Here, if it is the first time period, it means that the target event has not started to be executed at this time, then the completed indicator and execution duration in the first time period are both zero.

[0089] In step 1023, the indicator ratio and the duration ratio are determined as the task progress.

[0090] Following the above embodiment, after determining the completed indicators and execution time in the second time period, the indicator ratio and the time ratio in the second time period are calculated, wherein the indicator ratio is the ratio of the indicator for completing the target event to the total indicator, and the time ratio is the ratio of the time for executing the target event to the total time. Finally, the indicator ratio and the time ratio are determined as the task progress of the executed target event in the second time period. Similarly, if it is the first time period, the completed indicators and the execution time in the first time period are both zero, then the indicator ratio and the time ratio are also zero, and the task progress is zero.

[0091] For example, the total indicator of a specific target event is 600, and the total duration is 3 hours, that is, 600 dial-up calls need to be performed in this target event, and they must be completed within 3 hours. The target event is divided into 3 time periods. In the first time period, the indicator ratio and the duration ratio are both zero, and the task progress is zero. The completed indicator in the second time period is 150, which means that 150 dial-up calls have been performed at this time, and 1 hour has passed. The task progress in the second time period is 33.3% of the duration ratio and 25% of the indicator ratio. In the third time period, the completed indicator is 600, which means that 600 dial-up calls have been performed at this time, and 2 hours and 30 minutes have passed. The task progress in the third time period is 83.3% of the duration ratio and 100% of the indicator ratio.

[0092] In some embodiments, after determining the task progress of the target event in the second time period, it is possible to determine whether seat resources need to be allocated based on the task progress in the second time period. For the second time period, if the indicator ratio in the task progress is less than the duration ratio, it is determined that the task progress indicates that seat resources need to be allocated in the second time period; if the indicator ratio in the task progress is not less than the duration ratio, it is determined that the task progress indicates that seat resources do not need to be allocated in the second time period.

[0093] Here, in the second time period, when the indicator ratio in the task progress is less than the duration ratio, it means that the execution time has been spent too much, but the completed indicators are too few, indicating that the task progress of the target event is slow and the execution efficiency is low. It is determined that the seat resources need to be allocated in the second time period to improve the execution efficiency and speed up the task progress. When the indicator ratio in the task progress is not less than the duration ratio, it means that the execution time spent and the completed indicators are relatively balanced, indicating that the task progress is normal or even ahead of schedule, and the execution efficiency is high, it is determined that there is no need to allocate seat resources in the second time period.

[0094] For example, the total target of a specific target event is 600, and the total duration is 3 hours. The target event has completed 150 targets in the second time period, and 1 hour has passed. The task progress in the second time period is 33.3% of the duration ratio and 25% of the target ratio. At this time, the target ratio is less than the duration ratio, indicating that the task progress is slow, and it is necessary to allocate seat resources in the second time period. In the third time period, the completed target is 400, and 2 hours have passed. The task progress in the third time period is 66.6% of the duration ratio and 66.6% of the target ratio. The target ratio is not less than the duration ratio, indicating that the task progress is normal and there is no need to allocate seat resources in the third time period.

[0095] Through the embodiments of the present application, in the second time period of the execution of the target event, whether to allocate agent resources is determined according to the actual task progress in the second time period. As a result, the agent resources can be reasonably allocated according to actual business needs, which not only improves the utilization rate of resources and avoids waste of resources, but also speeds up the execution progress of the target event and improves the execution efficiency.

[0096] Continue to see Figure 3A In step 103, if the task progress indicates that seat resources need to be allocated within the second time period, a second target allocated seat resource for the second time period is determined based on the first seat resources to be scheduled.

[0097] By determining the task progress of the target event in the second time period, it can be determined whether seat resources need to be allocated in the second time period. In response to the task progress indicating that seat resources need to be allocated in the second time period, based on the seat resources to be scheduled in the second time period, the second target seat resources to be allocated in the second time period are determined. That is, when the task progress indicates that seat resources need to be allocated in the second time period, based on the seat resources to be scheduled in the second time period, the second target seat resources to be allocated in the second time period are determined.

[0098] It should be noted that in the first time period of the target event execution, the seat resources to be scheduled are the available seat resources provided by the business system. Since the task progress is zero, the seat resources can be allocated in the first time period, or not. In the second time period of the target event execution and the time periods thereafter, the task progress of the target event is not zero, and whether the seat resources need to be allocated can be determined based on the task progress of the target event in the second time period.

[0099] In order to avoid wasting seat resources and competing for seat resources with other target events, the embodiment of the present application starts from the first time period and, for the second time period, determines the second target allocated seat resources in the second time period based on the seat resources to be scheduled in the second time period. The target allocated seat resources here are less than the available seat resources provided by the business system, in order to gradually allocate seat resources according to multiple time periods, achieve effective utilization of seat resources, and finally allocate the available seat resources provided by the business system through multiple time periods. The specific process of determining the second target allocated seat resources in the second time period is described below.

[0100] In some embodiments, see Figure 3E , Figure 3A The illustrated step 103 may be implemented by following steps 1031 to 1033, which are described in detail below.

[0101] In step 1031, the proportional adjustment weight in the second time period is obtained, and data processing is performed on the first seat resource to be scheduled based on the proportional adjustment weight to obtain the first seat resource.

[0102] In some embodiments, a proportional integral derivative (PID) adjustment method can be used to schedule the resources to be scheduled in the second time period to determine the second target allocated seat resources corresponding to the second time period. The PID adjustment includes three adjustment methods, specifically, proportional adjustment (parameter k is P ), acceleration adjustment (parameter is k i ), smooth adjustment (parameter is k d ). Through these three adjustment methods, the first seat resources to be scheduled are processed respectively, and then the three processed results are added together to obtain the target allocated seat resources.

[0103] First, for the second time period, determine the proportional adjustment weight k in the second time period P, and based on the proportional adjustment weight, data processing is performed on the first seat resource to be scheduled to obtain the first seat resource. Here, the proportional adjustment weight is obtained by manual configuration and is used for proportional adjustment in PID adjustment, and the configuration of the proportional adjustment weight in the second time period is the same. The embodiment of the present application directly uses the proportional adjustment weight k P The first seat resources to be scheduled in the second time period are weighted (multiplied) to obtain the first seat resources.

[0104] For example, the available seat resources provided by the business system are 30 seats. In the first, second, and third time periods of the target event execution, the seat resources to be scheduled are 30 seats, 28 seats, and 26 seats, respectively. At this time, the proportion adjustment weight in each time period is 0.05, then the first seat resources calculated for the three time periods are: 1.5 seats, 1.4 seats, and 1.3 seats, respectively.

[0105] In step 1032, a second seat resource within the second time period and a third seat resource within the second time period are obtained.

[0106] In some embodiments, see Figure 3F , Figure 3E The step 1032 of "obtaining a second seat resource within a second time period" can be implemented by following the steps 10321A to 10322A, which are described in detail below.

[0107] In step 10321A, a third seat resource to be scheduled is obtained according to the first seat resource to be scheduled and the second seat resource to be scheduled in a third time period.

[0108] In some embodiments, the acceleration adjustment in the PID adjustment is to gradually allocate seat resources to each time period to avoid quickly allocating all the seat resources to be scheduled in the first few time periods, resulting in the situation that seat resources cannot be allocated in subsequent time periods. Therefore, when the acceleration adjustment is performed in each time period, it is necessary to count the second seat resources to be scheduled in the current time period (i.e., the second time period) and in the third time period (i.e., the time period before the second time period), and sum the first seat resources to be scheduled and the second seat resources to be scheduled to obtain the third seat resources to be scheduled.

[0109] In step 10322A, the acceleration adjustment weight in the second time period is obtained, and the second seat resource is obtained according to the acceleration adjustment weight and the third seat resource to be scheduled.

[0110] Following the above embodiment, after determining the third seat resource to be scheduled, the acceleration adjustment weight k in the second time period is obtained. i, this acceleration adjustment weight is also obtained by manual configuration and is used for acceleration adjustment in PID adjustment, and the configuration of the acceleration adjustment weight in each time period is the same. Finally, based on the acceleration adjustment weight in the second time period, the third seat resource to be scheduled is processed to obtain the second seat resource in the second time period. That is, the acceleration adjustment weight k is directly used. i The resource summation result is weighted (multiplied) to obtain the second seat resource in the second time period.

[0111] For example, the available seat resources provided by the business system are 30 seats. In the three time periods when the target event is executed, the seat resources to be scheduled are 30 seats, 28 seats, and 26 seats, respectively. Then, by summing up, the third seat resource to be scheduled is 84 (i.e., 30+28+26). At this time, the acceleration adjustment weight in the PID adjustment is 0.03. The third seat resource to be scheduled 84 is weighted to obtain the second seat resource of 2.52 seats in the third time period, and the third seat resource to be scheduled in the third time period is 58 (i.e., 30+28) by summing up. The second seat resource is calculated to be 1.74 seats. Similarly, the second seat resource in the first time period is 0.9 seats.

[0112] In some embodiments, see Figure 3G , Figure 3E The "obtaining the third seat resource within the second time period" in step 1032 shown can be implemented by following the steps 10321B to 10322B, which are described in detail below.

[0113] In step 10321B, a fourth seat resource to be scheduled is obtained according to the first seat resource to be scheduled and the second seat resource to be scheduled in the third time period.

[0114] In some embodiments, the purpose of the smooth adjustment in the PID adjustment is to make the seat resources allocated in each time period as uniform as possible and to prevent the difference between the seat resources allocated in adjacent time periods from being too large. Therefore, when performing the acceleration adjustment in the second time period, it is necessary to count the seat resources to be scheduled in the second time period and the time period before the second time period, that is, to determine the seat resources of the first seat resource to be scheduled in the second time period and the second seat resource to be scheduled in the third time period (a time period adjacent to the second time period), and determine the difference between the first seat resource to be scheduled and the second seat resource to be scheduled as the fourth seat resource to be scheduled.

[0115] In step 10322B, the smooth adjustment weight in the second time period is obtained, and the third seat resource is obtained according to the smooth adjustment weight and the fourth seat resource to be scheduled.

[0116] Following the above embodiment, after determining the fourth seat resource to be scheduled, the smooth adjustment weight k in the second time period is obtained. i , this smooth adjustment weight is also obtained by manual configuration and is used for smooth adjustment in PID adjustment, and the configuration of the smooth adjustment weight in each time period is the same. Finally, based on the smooth adjustment weight in the second time period, the fourth seat resource to be scheduled is processed to obtain the third seat resource in the second time period. That is, the smooth adjustment weight K is directly used. i The seat resource differences are weighted (multiplied) to obtain the third seat resource in the second time period.

[0117] For example, the available seat resources provided by the business system are 30 seats. In the three time periods when the target event is executed, the seat resources to be scheduled are 30 seats, 28 seats, and 26 seats, respectively. Then, the seat resource difference between the seat resources to be scheduled in the third time period and the seat resources to be scheduled in the second time period is calculated to be -2 (i.e., 26-28). At this time, the smooth adjustment weight in the PID adjustment is 0.03. The seat resource difference -2 is weighted to obtain the third seat resource of the third time period as -0.06 seats, and the seat resource difference of the second time period is calculated to be -2 (i.e., 28-30). The third seat resource is calculated to be -0.06 seats. There is no time period before the first time period, so the third seat resource of the first time period is 0 and can be ignored.

[0118] Continue to see Figure 3E In step 1033, a second target allocated seat resource is obtained according to the first seat resource, the second seat resource and the third seat resource.

[0119] Through the PID adjustment of step 1031 and step 1032, after calculating the first seat resource, the second seat resource and the third seat resource in each time period, the first seat resource, the second seat resource and the third seat resource are processed (such as summed) to obtain the second target allocated seat resource in the second time period. The second target allocated seat resource is less than the available seat resource.

[0120] In some embodiments, the method of calculating the second target allocation seat resources through PID adjustment in steps 1031, 1032, and 1033 can be implemented by the following formula (2):

[0121]

[0122] In the above formula (2), e(t) represents the seat resources to be scheduled in the tth time period. u(t) represents the target allocated seat resources in the tth time period, K Pis the proportional adjustment weight (for example, it can be 0.05), K P *e(t) represents the first seat resource. K i Adjust the weight for acceleration (for example, it can be 0.03), Indicates the second seat resource. d To smoothly adjust the weight (for example, it can be 0.03), K d *[e(t)-e(t-1)] represents the third seat resource.

[0123] For example, in the third time period of the target event execution, the seat resources to be scheduled are 26 seats. Then, through PID adjustment calculation, in the third time period, the first seat resource is 1.5 seats, the second seat resource is 2.52 seats, and the third seat resource is -0.06 seats. Adding the three together, we get 3.96 seats. Then the target seat resources for the third time period are 3.96 seats. That is, theoretically speaking, 4 seats need to be allocated for the executed target event in the third time period.

[0124] In some embodiments, after the second target allocated seat resources are determined, the second target allocated seat resources are allocated from the first seat resources to be scheduled in the second time period.

[0125] In some embodiments, for each time period, after the target allocated seat resources are calculated based on the seat resources to be scheduled in the time period, the target allocated seat resources are then allocated from the seat resources to be scheduled within the time period, that is, the target allocated seat resources are allocated from the seat resources to be scheduled to be allocated to the target event with slow task progress, which can speed up the execution of the target event with slow task progress.

[0126] In some embodiments, see Figure 3H , see Figure Figure 3A After step 103 shown, step 104 may be performed, which is described in detail below.

[0127] In step 104, the second target allocated agent resource allocated from the first to-be-scheduled agent resource is allocated to the executed target event.

[0128] In each time period, after allocating the target allocated agent resources from the agent resources to be scheduled, the target allocated agent resources allocated from the agent resources to be scheduled are allocated to the target events to be executed. Specifically, there may be multiple target events to be executed in the business system, and these target events may be set with execution priorities according to business needs, so the target allocated agent resources should be allocated to the target events with high execution priorities first.

[0129] Based on this, the embodiment of the present application first determines the execution priority of each target event in the first time period before allocating the target allocation seat resources to the target event to be executed; sorts the target events in the second time period according to the execution priority of the target event, and sequentially allocates the second target allocation seat resources to the target event in the sorted order. In other words, the target allocation seat resources are sequentially allocated to each target event in the order of the execution priority of the target event, so that the target event with a high execution priority is preferentially allocated the target allocation seat resources, while the target event with a low execution priority has a slow progress and there is a queuing phenomenon, so the target allocation seat resources will not be preferentially allocated or even not allocated.

[0130] For example, the target events executed in the business system are Task A, Task B, and Task C, among which B has the highest execution priority, A is the second, and C is the lowest. When in the third time period, the target allocated seat resources allocated from the 26 seats to be scheduled are 4 seats, the tasks are sorted in descending order according to the execution priority of the tasks to obtain BAC, and then the 4 seats of the target allocated seat resources are allocated to Task B, Task A, and Task C in descending order.

[0131] In some embodiments, when executing a target event in a certain time period, the execution priority can be adjusted according to the task progress of the target event, and then the target allocated agent resources are allocated to the target event according to the adjusted priority. In other words, the execution priority of some target events is very low, resulting in slow task progress. At this time, the execution priority of the target event can be adjusted to be increased (set to the highest), and then the target allocated agent resources are allocated to the target event with slow task progress but high execution priority, so that the task progress of each target event can be balanced. And when some target events are suspended by or the business system, the agent resources occupied by the target event can be released, merged with the target allocated agent resources, and allocated to other target events.

[0132] Through the above steps, when the target allocation seat resources are allocated to the target event, the seat resources will be reasonably allocated according to the execution priority of the target event, so that the target event with a high execution priority can be executed quickly and smoothly. In some cases, the execution priority of the target event will also be adjusted to ensure that the target event with slow task progress can be allocated to the seat resources as much as possible, thereby improving the execution efficiency of the target event.

[0133] In some embodiments, the second target allocated seat resources are processed (such as summed) with the second allocated seat resources in the second time period, and the summed result is used as the allocated seat resources in the fourth time period, wherein the fourth time period is the next time period of the second time period.

[0134] Here, after the second target allocated seat resources in the second time period are allocated, the target event is waited to be executed and the fourth time period is reached, wherein the fourth time period is a time period adjacent to the second time period and located after the second time period, that is, the next unexecuted time period after the second time period. However, before reaching the fourth time period, the target allocated seat resources need to be summed with the allocated seat resources in the second time period, and the summed result is used as the allocated seat resources of the fourth time period.

[0135] For example, the available agent resources provided by the business system are 30 seats. In the third time period of the target event execution, the agent resources to be scheduled are 26 seats, indicating that the allocated agent resources in the third time period are 4 seats, and the target allocated agent resources in the third time period are 4 seats calculated through PID adjustment, which are allocated to the target event. Then, the 4 seats of the allocated agent resources in the third time period are summed with the 4 seats of the target allocated agent resources in the third time period, and the allocated agent resources in the fourth time period are 8 seats.

[0136] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0137] In the intelligent outbound call scenario, it is generally known through the collection of daily call data that there will be a large number of outbound call tasks running and AI agent resource scheduling during the outbound call process. When there are too many tasks running or queued, AI agents need to be assigned to the tasks. However, the allocation process is prone to low AI agent utilization, uneven allocation, and competition for AI agent resources, resulting in a high QPS of the business system, which slows down the progress of outbound call tasks and seriously affects the efficiency of dialing.

[0138] In the related technology, the task dialing scheduling allocation is based on the number of AI seats configured by the task template, and when creating a task template, the conventional allocation method is usually adopted when setting up and allocating AI seats. The outbound call tasks in the next 30 seconds are scanned every 30 seconds and added to the task pool for dialing. The number of AI seats that should be allocated when the outbound call task is dialed is based on the AI ​​seats set in the task template. When the progress of the outbound call task is slow, even if there are spare AI seat resources, they will not be used in real time, and the total number of AI seats is unevenly distributed, resulting in the illusion that the AI ​​seats are full. If there are new outbound call tasks coming in and need to be dialed, they will be queued. If the priority of the new outbound call task is higher than the current outbound call task, there will still be competition for the AI ​​agent resources of the existing outbound call task, and this will be repeated.

[0139] Based on the above scenarios, an embodiment of the present application provides a method for dynamic allocation of agents based on intelligent outbound call tasks, which is suitable for intelligent outbound call scenarios of various types of outbound call tasks (manual tasks, scheduled tasks, real-time tasks, recall tasks, etc.). It automatically controls the allocation of AI agent resources according to the progress of the outbound call tasks, has high flexibility, and improves the utilization rate of AI agent resources and the dialing rate of outbound call tasks.

[0140] See also Figure 4 , Figure 4 This is a flow chart of the seat dynamic allocation method provided in the embodiment of the present application. Figure 4 The steps shown are used to describe in detail the dynamic seat allocation method provided in the embodiment of the present application.

[0141] In step 401, the system executes a scheduled task.

[0142] See also Figure 5 , Figure 5 This is a schematic diagram of the seat allocation provided in the embodiment of the present application. The system extracts the number to be dialed for the outbound call by drawing the number pool, and executes the outbound call task after receiving the number. The system (such as the business system) will continuously execute scheduled tasks, that is, scheduled outbound call tasks (referred to as tasks). For example, if a task is executed every five minutes, every five minutes can be regarded as a call round (referred to as round, equivalent to the time period above, denoted as t). During the execution of each round of tasks, it will detect whether the number of AI seats needs to be allocated.

[0143] Continue to see Figure 4 , In step 402, query the indicators of historical data.

[0144] During the execution of the scheduled task, multiple indicator values ​​in the historical call task in the current system will be queried in real time. Specifically, they include: the historical connection rate of the day (denoted as x), the experience control value (denoted as y), the historical average call duration (denoted as a), the historical average number of calls per call (denoted as b), the peak QPS, the current model call request volume (r), and other indicators. Among them, the query method can be a real-time calculation through the code logic plus algorithm, and the corresponding data stored in the database. The historical connection rate of the day is the quotient of the number of connected customers and the total number of numbers sent in the task as of the time when the scheduled task is executed. The experience control value is a key variable indicator for calculating the "number of available seats", denoted as y. Because the other indicators are fixed values ​​calculated according to various rule logics, reserving a variable indicator here can make the entire seat control more flexible. The historical average call duration is the quotient of the sum of the call durations of all outbound call rounds and the number of outbound calls connected as of the time when the scheduled task is executed, denoted as a. The historical average number of rounds per call is the quotient of the sum of all outbound call rounds and the number of outbound calls connected, denoted by b. In an outbound call that is connected, one conversation between the system's robot and the customer can be counted as one round of conversation. Peak QPS is the detection data obtained based on the current system hardware resources, task instance deployment, and current task dialing conditions. It characterizes the system's data throughput. The peak QPS represents the highest utilization of the current system resources. The current model call request volume is equivalent to identifying the customer's speaking intention by calling certain models during the process of connecting the customer to an outbound call. The current model call volume can be calculated by using data embedding, denoted by r. Through the above indicators, the number of available seats in the current time period (i.e., the second time period mentioned above) can be calculated.

[0145] In step 403, the number of available seats in the current time period (referred to as current, ie, the second time period mentioned above) is calculated.

[0146] like Figure 5 As shown, after determining multiple indicators in the system, these indicators are used to perform real-time control according to the available seats control formula to determine the available seats in the current time period. The available seats control formula is specifically as follows:

[0147]

[0148] In the above formula (3), x is the historical connection rate of the day, y is the empirical control value, a is the historical average call duration, b is the historical average number of rounds per call, QPS is the peak value, which represents the data throughput of the system, and r represents the current call model request volume.

[0149] Here, the deduction process of formula (3) is as follows:

[0150] Step 1: (1.2*Number of available seats*Historical connection rate*Experience control value)*(60 / (Historical average call duration / Historical average number of calls per call))=Peak QPS*60-Number of outbound calls*(60 / Historical average call duration per call);

[0151] Step 2: (1.2*Number of available seats*Historical connection rate*Experience control value)*(60 / Historical average call duration) = Peak QPS*60-Number of sent numbers*(60 / Historical average call duration);

[0152] Step 3: (1.2*Number of available seats*Historical connection rate*Experience control value)*Average number of call rounds per minute = Peak QPS*60-List of sent numbers*Average number of call rounds per minute;

[0153] Step 4: (1.2*number of available seats*predicted connection rate)*average number of call rounds per minute=peak QPS per minute-predicted number of requests for the sent number list, where the average number of call rounds is the predicted number of requests, that is, 1.2*number of available seats*predicted number of requests=peak QPS per minute-predicted number of requests for the sent number list.

[0154] For example, during a call of a certain round of outbound call tasks, the system query shows that the historical connection rate x is 23%, and the empirical control value y is configured on demand according to the configuration file, for example, set to 1. The historical average call duration a is 30 seconds, and the historical number of calls b is 1.5 times. In addition, the system obtains the peak QPS of 138 through real-time detection, and the current model call request volume r is 3000. Then substitute these indicators into the above formula (3), that is, substitute It can be calculated that the number of available seats is approximately 6376.

[0155] Continue to see Figure 4 , in step 404, query all ongoing tasks in the database.

[0156] After calculating the number of available seats in the system, you can query all ongoing outbound call tasks in the database (redis database) to determine the outbound call tasks being dialed in this round, and determine the current number of allocated seats based on the outbound call tasks being dialed in this round. If there are no outbound call tasks being dialed in this round, it means that the allocation of seat resources has not yet begun, that is, the current number of allocated seats is 0. After determining the number of allocated seats, the difference between the number of available seats and the number of allocated seats is calculated as the target value to be adjusted this time, that is, the number of newly allocated seats.

[0157] Specifically, in a certain round, when the current number of allocated seats is 0, no outbound call tasks are being performed and seats are not being allocated, then the number of available seats is the target value that needs to be adjusted in this round, that is, the number of seats that need to be newly allocated (represented as err). When the current number of allocated seats is not 0, the outbound call tasks are currently being performed and some seats have been allocated, then the target value that needs to be adjusted in this round is the difference between the number of available seats and the number of currently allocated seats, and the number of seats that need to be newly allocated is obtained.

[0158] In step 405 , it is determined whether the task requires adjustment of seats. If the determination result is no, the process proceeds to step 406 . If the determination result is no, the process proceeds to step 407 .

[0159] In each round, the system needs to determine whether the task being executed needs to adjust the seats, that is, whether it is necessary to assign new seats. The basis for judgment is the task progress of the current task, and the task progress is determined according to the task execution status and scheduling rules, that is, whether it is necessary to assign new seats according to the task execution status and scheduling rules.

[0160] In the current system, there are various types of tasks, such as scheduled (scheduled dialing), real-time (immediate dialing), manual (can only be dialed when manually started), re-call tasks (dial again according to the task configuration time point if the first call is not answered), etc., and each type of outbound call task involves different dialing time periods. Outbound call tasks can set priority levels, such as high, relatively high, medium, slow, low, etc. For example, the dialing time period of scheduled task A is 12-15 o'clock, but the task priority is low. When the task is carried out at 14 o'clock and it is detected that there are still a large number of names that have not been dialed, the priority of this task can be adjusted to high, and seats need to be allocated to this task first. If there is a task in the queue that has not been dialed for a long time, and the priority of the task is low, seats will not be allocated first. If the task is suspended during the process, the seat needs to be released. Through the above series of scheduling and control rules, seat resources can be reasonably allocated and controlled for the tasks in execution.

[0161] The task progress is determined by the ratio of the task execution time to the total task execution time and the ratio of the number of dialed lists to the total number of dialed lists. When the ratio of the executed time is greater than the ratio of the dialed lists, it means that the progress is normal, otherwise it is abnormal.

[0162] For example, the total number of names to be dialed in a certain outbound call task is 60,000, and it takes three hours to complete the dialing. Now one hour has passed, accounting for one-third of the time. At this time, the number of names dialed is not less than one-third of the total number of names to be dialed (that is, 30,000), which means that the task progress of the current outbound call task is normal.

[0163] Here, when the task progress of the outbound call task is normal, it means that there is no need to adjust the seats at this time, that is, there is no need to add new seat resources, then go to step 406 for execution. When the task progress of the outbound call task is abnormal, it means that the seats need to be adjusted at this time, and new seat resources need to be allocated, then go to step 407 for execution.

[0164] In step 406, the system does not perform any processing and executes the task normally.

[0165] When the task progress of the outbound call task is normal, it means that there is no need to adjust the seats, that is, there is no need to add new seat resources. At this time, the system does not perform any processing and executes the task normally.

[0166] In step 407, seats are allocated according to the index adjustment.

[0167] When the progress of the outbound call task is abnormal, it means that the seats need to be adjusted, that is, new seat resources need to be added. At this time, the system gradually allocates seats according to the preset indicators through each round (t) from the number of seats to be newly allocated (the initial allocation is recorded as e(t), t is the round) calculated in step 403. Figure 5 As shown, the index adjustment of each round is proportional integral derivative (PID) adjustment, including proportional adjustment (parameter K P ), acceleration adjustment (parameter is K i ), stable adjustment (parameter is K d ), where the proportional adjustment is a univariate equation parameter that controls the number of seats allocated, the acceleration adjustment is an integral parameter that controls the increase in the number of seats to prevent the number of seats from increasing at a relative speed and failing to reach the QPS peak, and the smooth adjustment parameter is a differential parameter that controls the increase in the number of seats to make the speed curve of the number of seats increase smooth. At the same time, a regulation formula is formulated through the three parameters of proportional adjustment, acceleration adjustment, and smooth adjustment, and the adjustment process is based on the number of seats to be allocated e t , according to the PID adjustment formula, calculate the number of newly allocated seats u for each round (t) t , thereby gradually adding seat resources to the executing tasks through multiple rounds, where the number of newly allocated seats u is calculated t The PID adjustment formula is as follows:

[0168]

[0169] In the above formula (4), e(t) represents the number of newly allocated seats in the tth round, that is, the target value to be adjusted in this round. u(t) represents the number of newly allocated seats obtained after PID adjustment in the tth round. K Pis the proportional adjustment parameter (for example, it can be 0.05), K i is the acceleration adjustment parameter (for example, it can be 0.03), K d is a stable adjustment parameter (for example, it can be 0.03).

[0170] Proportional adjustment parameters, acceleration adjustment parameters, and smooth adjustment parameters. These adjustment indicators can be flexibly set according to the actual task dialing monitoring indicators. The data is set in the system dictionary. When the program logic executes the algorithm, it will read the configuration content of the configuration file at the current time to calculate the adjustment indicator. This indicator can actually be set arbitrarily as needed. The core purpose of changing this indicator is to allow the AI ​​seat to reach the target value in the fastest and smoothest way to prevent a sharp increase from causing unpredictable problems in the system or service crashes.

[0171] In the process of seat resource allocation in each round, the PID algorithm is used to calculate the number of newly allocated seats in the current round, and then the sum of the newly allocated seats in the current round and the number of allocated seats in the current round (when t is equal to 0, that is, the first round, the number of allocated seats is 0) is used as the number of allocated seats in the new round, and the number of allocated seats in the new round is updated to the database (redis database).

[0172] For example, when executing an outbound call task, the number of available seats is calculated to be 30 according to the indicators of the historical data queried. Then, when executing the task in the first round (t is 0), the seats that need to be adjusted (i.e., the number of seats that need to be added) are determined according to the task progress of all the tasks executed. At this time, the number of allocated seats in the first round is 0, and the number of seats that need to be newly allocated (err) is determined to be 30, that is, the target value that needs to be adjusted in the first round is 30. Next, the PID algorithm is used to calculate the number of newly allocated seats in the first round to be 4, indicating that 4 seats need to be newly allocated in the first round, and then the sum of the number of allocated seats in the first round and the number of newly allocated seats is used as the number of allocated seats in the second round (t is 1) (i.e., 0+4=4). In the second round, the target value that needs to be adjusted is calculated as the difference between the number of available seats 30 and the number of allocated seats 4 in the second round, and the number of newly allocated seats that need to be added in the second round is 26. Then, it is continued to determine whether the task progress of all the tasks executed needs to adjust the seats, and the number of newly allocated seats is calculated. Thus, through multiple rounds of seat resource allocation, until the number of available seats is allocated, the detailed data of each round is obtained as shown in Table 1:

[0173] Table 1

[0174]

[0175]

[0176] Continue to see Figure 4, in step 408, the scheduling allocation is ended.

[0177] According to the above Table 1, it can be seen that through 14 rounds (t is 13), the seat resources (that is, the number of available seats is 30) are gradually allocated, and finally the seat resources are reasonably allocated according to the task progress.

[0178] Through the embodiments of the present application, a method of dynamically allocating seats for scheduling outbound call tasks is used to maximize the use of seat resources. From the original one-time fixed allocation of seat resources to the flexible calculation and allocation of seat resources according to the real-time task progress of the outbound call task, the problem of uneven allocation of seat resources for multiple outbound call tasks, scramble for seat resources, and waste of system resources is solved, which greatly improves the dialing rate of intelligent outbound call tasks. In addition, since the number of seats pre-set in the original outbound call task is usually large, the sum of seats for all outbound call tasks is usually greater than the sum of available seat resources, which will cause a sharp increase in system QPS when the outbound call task is at its peak. The embodiments of the present application can effectively reduce the QPS threshold and improve system stability and resource utilization by evenly allocating seat resources in multiple rounds.

[0179] The following further describes an exemplary structure of the resource scheduling device 453 provided in the embodiment of the present application implemented as a software module. In some embodiments, for example Figure 2 As shown, the software modules stored in the resource scheduling device 453 of the memory 450 may include: a determination module 4531, which is used to determine the second allocated seat resources in the second time period based on the first target allocated seat resources in the first time period and the first allocated seat resources in the first time period; determine the first seat resources to be scheduled in the second time period according to the second allocated seat resources; determine the task progress of the target event in the second time period; if the task progress indicates that seat resources need to be allocated in the second time period, determine the second target allocated seat resources in the second time period based on the first seat resources to be scheduled.

[0180] In some embodiments, the determination module 4531 is further configured to obtain available agent resources for executing the target event; and determine the difference between the available agent resources and the second allocated agent resources as the first agent resources to be scheduled.

[0181] In some embodiments, the determination module 4531 is also used to determine the execution rate index, system available performance index, task control index and task execution success rate of the target event; determine a first ratio between the system available performance index and the execution rate index, and determine a second ratio between the first ratio and the task execution success rate; determine the ratio between the second ratio and the task control index as the available agent resources.

[0182] In some embodiments, the determination module 4531 is also used to determine the total indicator and total duration of the target event; determine the indicator for completing the target event and the duration for executing the target event within the second time period; determine the indicator ratio and the duration ratio as the task progress, wherein the indicator ratio is the ratio of the indicator for completing the target event to the total indicator, and the duration ratio is the ratio of the duration for executing the target event to the total duration.

[0183] In some embodiments, the determination module 4531 is also used to determine that if the indicator ratio is less than the duration ratio, then determine that the task progress representation needs to be allocated seat resources within the second time period; if the indicator ratio is greater than or equal to the duration ratio, then determine that if the task progress representation does not need to be allocated seat resources within the second time period.

[0184] In some embodiments, the determination module 4531 is also used to obtain the proportional adjustment weight within the second time period, and perform data processing on the first to-be-scheduled seat resources based on the proportional adjustment weight to obtain the first seat resources; obtain the second seat resources within the second time period and the third seat resources within the second time period; obtain the second target allocated seat resources based on the first seat resources, the second seat resources and the third seat resources, wherein the second target allocated seat resources are less than the available seat resources.

[0185] In some embodiments, the determination module 4531 is further used to obtain a third seat resource to be scheduled based on the first seat resource to be scheduled and the second seat resource to be scheduled within a third time period; obtain the acceleration adjustment weight within the second time period; and obtain the second seat resource based on the acceleration adjustment weight and the third seat resource to be scheduled.

[0186] In some embodiments, the determination module 4531 is further used to obtain a fourth seat resource to be scheduled based on the first seat resource to be scheduled and the second seat resource to be scheduled within a third time period; obtain the smooth adjustment weight within the second time period; and obtain the third seat resource based on the smooth adjustment weight and the fourth seat resource to be scheduled.

[0187] In some embodiments, the allocation module 4532 is used to determine the execution priority of each target event in the first time period; sort the target events in the second time period according to the execution priority of the target events, and allocate the second target allocation seat resources to the target events in the order of the sorting.

[0188] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the resource scheduling method described in the embodiment of the present application.

[0189] The embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will be caused to execute the resource scheduling method provided in the embodiment of the present application, for example, 3A to 3H The resource scheduling method is shown.

[0190] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.

[0191] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0192] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0193] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0194] In summary, through the embodiments of the present application, when executing the target event, the allocated seat resources and the seat resources to be scheduled in the second time period are determined for the second time period. Then, according to the task progress of the target event in the second time period, when the task progress indicates that the seat resources need to be allocated in the second time period, the target allocated seat resources in the second time period are determined from the seat resources to be scheduled for allocation. Thus, by allocating the required seat resources to the target event in real time in the second time period, periodic dynamic allocation of seat resources is achieved. In the second time period, whether to allocate seat resources is determined based on the actual task progress of the target event, which not only improves the utilization rate of seat resources, but also improves the execution efficiency of the target event.

[0195] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A resource scheduling method, characterized in that: The method comprises: Determine a second allocated seat resource in a second time period based on a first target allocated seat resource in a first time period and a first allocated seat resource in the first time period; Determine the first seat resource to be scheduled within the second time period according to the second allocated seat resource; Determining the task progress of the target event within the second time period; If the task progress indicates that seat resources need to be allocated within the second time period, a second target allocated seat resource for the second time period is determined based on the first seat resources to be scheduled.

2. The method according to claim 1, characterized in that The determining the first seat resource to be scheduled within the second time period according to the second allocated seat resource includes: Obtaining available agent resources for executing the target event; The difference between the available seat resource and the second allocated seat resource is determined as the first seat resource to be scheduled.

3. The method according to claim 2, characterized in that The obtaining of available agent resources for executing the target event includes: Determine the execution rate index of the target event, the system available performance index, the task control index and the task execution success rate; Determine a first ratio between the system availability performance index and the execution rate index, and determine a second ratio between the first ratio and the task execution success rate; The ratio between the second ratio and the task control index is determined as the available agent resource.

4. The method according to claim 1, characterized in that: The determining the task progress of the target event within the second time period includes: Determine the total indicators and total duration of the target event; Determining an indicator for completing the target event within the second time period and a duration for executing the target event; The indicator ratio and the duration ratio are determined as the task progress, wherein the indicator ratio is the ratio of the indicator for completing the target event to the total indicator, and the duration ratio is the ratio of the duration for executing the target event to the total duration.

5. The method according to claim 4, characterized in that The method further comprises: If the indicator ratio is less than the duration ratio, determining that the task progress representation requires the allocation of seat resources within the second time period; If the indicator ratio is greater than or equal to the duration ratio, it is determined that the task progress representation does not need to allocate seat resources within the second time period.

6. The method according to claim 1, characterized in that The determining, based on the first to-be-scheduled seat resources, second target allocated seat resources for the second time period includes: Acquire the proportion adjustment weight in the second time period, and perform data processing on the first seat resource to be scheduled based on the proportion adjustment weight to obtain a first seat resource; Acquire the second seat resource within the second time period and the third seat resource within the second time period; The second target allocated seat resources are obtained according to the first seat resources, the second seat resources and the third seat resources, wherein the second target allocated seat resources are smaller than the available seat resources.

7. The method according to claim 6, characterized in that The acquiring of the second seat resource in the second time period includes: Obtaining a third seat resource to be scheduled according to the first seat resource to be scheduled and the second seat resource to be scheduled in a third time period; Obtaining the acceleration adjustment weight within the second time period; The second seat resource is obtained according to the acceleration adjustment weight and the third seat resource to be scheduled.

8. The method according to claim 6, characterized in that The acquiring of the third seat resource within the second time period includes: Obtaining a fourth seat resource to be scheduled according to the first seat resource to be scheduled and the second seat resource to be scheduled in a third time period; Obtaining a smooth adjustment weight within the second time period; The third seat resource is obtained according to the smooth adjustment weight and the fourth seat resource to be scheduled.

9. The method according to claim 1, characterized in that: The method further comprises: Determining the execution priority of each target event within the first time period; The target events in the second time period are sorted according to the execution priorities of the target events, and the second target allocation seat resources are sequentially allocated to the target events according to the sorting order.

10. A resource scheduling device, characterized in that: The device comprises: A determination module, configured to determine a second allocated seat resource in a second time period based on a first target allocated seat resource in a first time period and a first allocated seat resource in the first time period; Determine the first seat resource to be scheduled within the second time period according to the second allocated seat resource; Determining the task progress of the target event within the second time period; If the task progress indicates that seat resources need to be allocated within the second time period, a second target allocated seat resource for the second time period is determined based on the first seat resources to be scheduled.

11. An electronic device, characterized in that: The electronic device comprises: Memory for storing computer executable instructions or computer programs; The processor is used to implement the resource scheduling method described in any one of claims 1 to 9 when executing the computer executable instructions or computer programs stored in the memory.

12. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer program are executed by a processor, the resource scheduling method according to any one of claims 1 to 9 is implemented.

13. A computer program product, comprising computer executable instructions or a computer program, wherein the computer executable instructions or the computer program, when executed by a processor, implements the resource scheduling method according to any one of claims 1 to 9.