CN110309931B - Service optimization method and device - Google Patents

Service optimization method and device Download PDF

Info

Publication number
CN110309931B
CN110309931B CN201810228929.8A CN201810228929A CN110309931B CN 110309931 B CN110309931 B CN 110309931B CN 201810228929 A CN201810228929 A CN 201810228929A CN 110309931 B CN110309931 B CN 110309931B
Authority
CN
China
Prior art keywords
service
information
client
processing logic
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810228929.8A
Other languages
Chinese (zh)
Other versions
CN110309931A (en
Inventor
刘楚蓉
罗家润
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810228929.8A priority Critical patent/CN110309931B/en
Publication of CN110309931A publication Critical patent/CN110309931A/en
Application granted granted Critical
Publication of CN110309931B publication Critical patent/CN110309931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The embodiment of the invention discloses a service optimization method and a device, wherein the method comprises the following steps: when receiving service request information sent by a client, carrying out service processing on a service requested by the service request information; acquiring a service processing result and generating processing logic information according to service processing logic; and sending the service processing result and the processing logic information to the client so that the client optimizes the service according to the service processing result and/or the processing logic information. By adopting the embodiment of the invention, the processing logic information required by artificial searching can be avoided, and the service optimization efficiency is improved.

Description

Service optimization method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a service optimization method and apparatus.
Background
In the process of service development, the performance of a service is typically checked through functional testing. When the function test is carried out, the tested service can be operated under the specified conditions by using a test tool according to a test scheme so as to find that the service has an optimization requirement. When testing the business, the tester can submit the information to be optimized according to the test result. When a developer optimizes a service based on information to be optimized, bug (defect generated by a program) positioning is needed, namely, required processing logic information is manually searched, and if multifunctional coupling is involved, other developers are needed to cooperate with positioning, so that service optimization efficiency is reduced.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a service optimization method and device, which can avoid manually searching the required processing logic information and improve the service optimization efficiency.
In order to solve the technical problem, in a first aspect, an embodiment of the present invention provides a service optimization method, where the method includes:
when receiving service request information sent by a client, carrying out service processing on a service requested by the service request information;
acquiring a service processing result and generating processing logic information according to the service processing logic;
and sending the service processing result and the processing logic information to the client so that the client optimizes the service according to the service processing result and/or the processing logic information.
Optionally, when receiving service request information sent by a client, before performing service processing on a service requested by the service request information, the method further includes:
acquiring at least one functional link for processing the service, wherein the service comprises an artificial intelligence AI dialogue, a functional test, an information search or an information push;
performing data embedding on the at least one functional link;
The logic for processing according to the service generates processing logic information, which comprises the following steps:
and acquiring processing logic information generated by each functional link passing through the data embedded point when the service is processed.
Optionally, sending the service processing result and the processing logic information to the client includes:
sending the service processing result to the client;
when receiving a service optimization requirement returned by the client, converting the processing logic information into a JavaScript object markup language (JSON) character string;
and sending the JSON character string to the client.
Optionally, before generating the processing logic information according to the logic of the service processing, the method further includes:
judging whether the service request information contains a problem positioning identifier or not;
and when the service request information contains the problem positioning identification, executing the step of generating processing logic information according to the logic of the service processing.
Optionally, if the service is an AI session, the acquiring at least one functional link for processing the service includes:
and at least one module of the central control system, the natural language understanding NLU module and the content providing CP module is obtained.
In a second aspect, an embodiment of the present invention provides a service optimization method, where the method includes:
the method comprises the steps that service request information is sent to a server, the service request information is used for triggering the server to process service requested by the service request information, and the server generates processing logic information according to logic of the service processing;
receiving a service processing result sent by the server and the processing logic information;
acquiring information to be optimized of the service returned based on the service processing result;
and outputting optimization prompt information, wherein the optimization prompt information comprises information to be optimized and the processing logic information, and the optimization prompt information is used for prompting the optimization of the service according to the information to be optimized and the processing logic information.
Optionally, the receiving the service processing result and the processing logic information sent by the server includes:
receiving a service processing result sent by the server;
sending a service optimization requirement to the server based on the service processing result;
receiving a JavaScript object markup language (JSON) string sent by the server in response to the service optimization requirement;
And analyzing the JSON character string to obtain the processing logic information.
Optionally, the service request information carries a problem positioning identifier, where the problem positioning identifier is used to trigger the server to generate the processing logic information according to the logic of the service processing.
Optionally, before sending the service request information to the server, the method further includes:
acquiring a service request through an input device;
and packaging the service request based on a hypertext transfer protocol (HTTP) to obtain the service request information.
In a third aspect, an embodiment of the present invention provides a service optimization device, where the device includes a unit for performing the method described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a service optimization device, where the device includes a unit for performing the method in the second aspect.
In a fifth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a server, cause the server to perform the method according to the first aspect.
In a sixth aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a client, cause the client to perform the method according to the second aspect.
In a seventh aspect, an embodiment of the present invention provides a server, including: the device comprises a processor, a memory and a communication interface, wherein the memory stores program instructions, and the processor calls the program instructions stored in the memory for executing the method according to the first aspect.
In an eighth aspect, an embodiment of the present invention provides a client, including: a processor, a memory, a communication interface and a display screen, the memory having stored therein program instructions, the processor invoking the program instructions stored in the memory for performing the method as described in the second aspect.
When the embodiment of the invention is implemented, when the service request information sent by the client is received, the service requested by the service request information is processed, the service processing result is obtained, the processing logic information is generated according to the service processing logic, and the service processing result and the processing logic information are sent to the client, so that the client optimizes the service according to the service processing result and/or the processing logic information, the process logic information required by human searching can be avoided, and the service optimizing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art;
fig. 1 is a schematic structural diagram of a service optimization system provided in an embodiment of the present invention;
FIG. 2A is a schematic diagram of a whiteboard platform according to an embodiment of the present invention;
FIG. 2B is a schematic diagram of a page display architecture according to an embodiment of the present invention;
FIG. 2C is a flow chart of a page presentation provided in an embodiment of the present invention;
fig. 3 is a schematic flow chart of a service optimization method provided in an embodiment of the present invention;
FIG. 4A is a schematic diagram of dialogue information provided in an embodiment of the invention;
FIG. 4B is a schematic diagram of service request information provided in an embodiment of the present invention;
FIG. 4C is a schematic diagram of one type of processing logic provided in an embodiment of the present invention;
FIG. 4D is a schematic diagram of a link to processing logic information provided in an embodiment of the present invention;
FIG. 4E is a schematic diagram of a service processing result provided in an embodiment of the present invention;
FIG. 4F is a schematic diagram of information to be optimized according to an embodiment of the present invention;
FIG. 4G is a schematic diagram of information to be optimized according to another embodiment of the present invention;
FIG. 4H is a schematic diagram of a processing logic provided in another embodiment of the present invention;
FIG. 4I is a schematic diagram of a list of information to be optimized according to an embodiment of the present invention;
FIG. 4J is a schematic diagram of a list of information to be optimized provided in another embodiment of the present invention;
FIG. 4K is a schematic diagram of a processing logic provided in another embodiment of the present invention;
FIG. 4L is a schematic illustration of an insert for an auxiliary analysis tool provided in an embodiment of the present invention;
FIG. 5A is a flow chart of a method for optimizing services according to another embodiment of the present invention;
FIG. 5B is a schematic diagram of a background information embedded point according to an embodiment of the present invention;
FIG. 5C is a flow chart of a method for optimizing services according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service optimization device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a server according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a service optimizing apparatus according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of a client according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a service optimization system according to an embodiment of the present invention. As shown in fig. 1, the traffic optimization system may include a client and a server, wherein the client may establish a communication connection with the server through the internet.
The server may run in a search platform, an artificial intelligence (Artificial Intelligence, AI) dialogue platform, or an intelligent recommendation data center, among others. The server is specifically configured to, when receiving service request information sent by the client, perform service processing on a service requested by the service request information, obtain a service processing result, generate processing logic information according to service processing logic, and send the service processing result and the processing logic information to the client.
The client can operate in a terminal such as a tablet computer, a mobile phone, a personal computer (Personal Computer, PC), a notebook computer, a vehicle-mounted device, or a network television. The client is specifically configured to send service request information to the server, receive a service processing result and processing logic information sent by the server, obtain information to be optimized of the service, and output optimization prompt information, where the optimization prompt information includes the information to be optimized and the processing logic information, and the optimization prompt information is configured to prompt that the service is optimized according to the information to be optimized and the processing logic information.
The services may include application experience, functional testing, bug positioning or badcase (poor cases, or test results that do not fit the user experience, etc.) positioning, etc. for applications such as AI dialogs, information searches, or intelligent recommendations (e.g., information push or advertisement push).
The processing logic information may be log (log) information generated by at least one functional link in the server during the service processing of the service. Taking the AI dialog scenario as an example, the at least one functional link may include a central control system, a natural language understanding (Natural Language Understanding, NLU) module, or a content providing (Content providers, CP) module, etc.
If the service has the problems of poor application experience or wrong functional test and the like in the processing process, the service can be understood to have service optimization requirements. When the server receives a service optimization demand returned by the client, processing logic information generated according to service processing logic can be sent to the client, the client can acquire information to be optimized of the service and output optimization prompt information, the optimization prompt information comprises the information to be optimized and the processing logic information, and the optimization prompt information is used for prompting that the service is optimized according to the information to be optimized and the processing logic information. Compared with the traditional service optimization method, when the service has the optimization requirement, a user is required to manually search the required processing logic information in the service log of the service according to the information to be optimized, wherein the service log of the service can comprise all functional links generated in the service processing process of the service, and the service optimization is performed according to the manually searched processing logic information.
Taking the schematic architecture of the whiteboard platform shown in fig. 2A as an example, the whiteboard platform may include a data embedding module, a background interaction module, an information management module and a page display module. The client may be the whiteboard platform. The data embedding module is specifically configured to perform logic combing of the background module, and in each link module dotting, for example, in an AI dialogue scene, the central control system and the NLU module need to perform data embedding. The background interaction module is specifically used for receiving an input request of a user, acquiring a service processing result from a server and assisting in analyzing processing logic information of each functional link of the background. The information management module is specifically configured to manage context information pulled in a test process, processing logic information, a context state when information to be optimized is input, or information to be optimized (i.e., bug list information). The page display module is specifically configured to display information such as a test flow page, processing logic information, a to-be-optimized information list (i.e. a problem list), or log field description.
Taking the architecture diagram of the page display shown in fig. 2B as an example, the client may use the Spring mvc framework to perform page display, for example, display a service processing result, information to be optimized, or processing logic information of a service in a page. The Spring mvc framework may include data access objects (Data Access Object, DAO), object relationship mapping (Object Relational Mapping, ORM), enterprise edition JAVA (Java Enterprise Edition, JEE), world Wide Web (Web), facet oriented programming (Aspect Oriented Programming, AOP), and core, which is a core class library of Spring, on which all functions of Spring depend.
Core technologies for the Spring mvc framework are control inversion (Inversion of Control, IOC) and AOP. The mvc is generally called Model View Controller, is an abbreviation of model-view-controller, and can ensure that the framework of the service optimization system is more clearly layered, has stronger expandability and reduces the coupling degree of the system. The controller is specifically used for packaging the web request into a data object, calling the business logic layer to process the data object, and returning a data processing result and a corresponding view to a user. The model is specifically used for processing service data and returning a processing result. The view is specifically used for rendering the view and displaying the data or the processing result to a user.
Taking the flow chart shown in the page of fig. 2C as an example, after a user initiates a request (for example, inputting dialogue information in a terminal), the controller may request a service model from the model, the model sends the determined service model to the controller, and the controller fills the model data into the view.
Based on the service optimization system shown in fig. 1, the embodiment of the invention discloses a flow diagram of a service optimization method shown in fig. 3. As shown in fig. 3, the service optimization method at least includes the following steps:
s301, the server acquires at least one functional link for processing the service.
The server may obtain at least one functional link that handles traffic. The functional links acquired are different for different services. For example, in an AI dialogue scenario, where the traffic is an AI dialogue, the server may acquire three functional links, i.e., a central control system, an NLU module, and a CP module.
S302, the server performs data embedding on at least one functional link.
The server may generate one or more of processing logic information, user information (e.g., user portraits), user behavior data, or context information, etc., according to the logic of the business process by burying the data into at least one functional link.
S303, the client sends service request information to the server, wherein the service request information carries a problem positioning identifier.
When the client needs to test the service, the client can send service request information to the server, the service request information can carry a problem positioning identifier, and the problem positioning identifier is used for triggering the server to acquire processing logic information generated when the service is processed by each functional link passing through the data embedded point. For example, in an AI dialog scenario, a user may input dialog information in a designated page of a client, after the user clicks a "send" key, the client may generate service request information from the dialog information, and the client sends the service request information to a server.
In particular, the communication protocol between the client and the server may be determined according to the service protocols of the interacted service, where the communication protocols corresponding to the different service protocols are different, and exemplary communication protocols may include a hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) or a secure data transfer protocol (Hyper Text Transfer Protocol over Secure Socket Layer, HTTPs) and the like. Taking the schematic diagram of the dialogue information shown in fig. 4A as an example, the client may receive the dialogue information input by the user. Taking the schematic diagram of the service request information shown in fig. 4B as an example, the client may perform processes such as message recognition and robot type recognition on the session information, encapsulate the processed data and the problem location identifier, obtain service request information with an HTTP format, and send the service request information to the server.
S304, the server acquires processing logic information generated when the service is processed by each functional link passing through the data embedded point, and acquires a service processing result.
After receiving the service request information from the client, the server can judge whether the service request information carries a problem positioning identifier, and when the service request information carries the problem positioning identifier, the server can acquire processing logic information generated when the service is processed by each functional link passing through the data embedded point and acquire a service processing result; when the service request information does not carry the problem positioning identification, the server does not need to generate processing logic information, and the service processing result of the service is directly sent to the client. According to the embodiment of the invention, when the service request information carries the problem positioning identifier, the server can determine that the client has positioning requirements, and then generates processing logic information according to the logic of service processing; when the service request information does not carry the problem positioning identification, the server can determine that the client does not have positioning requirements, and further, processing logic information is not required to be generated, service processing results of the service can be fed back to the client in time, and service processing efficiency is improved.
The processing logic information refers to algorithm logic, ordering logic, word segmentation logic or the like for processing the service request information by each functional link after the server receives the service request information from the client.
S305, the server sends the service processing result to the client.
Optionally, the server may send the service processing result and the processing logic information of the service to the client, and the client may display the service processing result and the processing logic information, so that the user may combine the service processing result and the processing logic information conveniently, and may effectively determine whether the service has an optimization requirement. Taking the schematic diagram of the processing logic information shown in fig. 4C as an example, the client may display the processing logic information through a platform, for example, the processing logic information generated when the service is processed through the platform display central control system.
Optionally, after the client receives the service processing result and the processing logic information of the service from the server, the client may generate links of the processing logic information generated when each functional link processes the service, display each link through the platformization, and when the client detects that the user clicks the designated link, display, through the platformization, the processing logic information generated when the target functional link indicated by the designated link processes the service. Taking the schematic diagram of the links of the processing logic information shown in fig. 4D as an example, the client may display, through a platform, the links of the processing logic information generated when each functional link processes the service, for example, a central control whiteboard log format, an NLU whiteboard log format, and the like.
S306, the client displays the service processing result.
Specifically, after receiving the service processing result from the server, the client may parse the service processing result and display the parsed service processing result in the page. Taking the schematic diagram of the service processing result shown in fig. 4E as an example, after the client receives the service processing result from the server, the client may request different addresses according to different robot types, analyze the service processing result based on the addresses, obtain an analyzed service processing result, and display the analyzed service processing result in the page.
S307, the client acquires information to be optimized submitted by the user responding to the service processing result.
After the client displays the service processing result, if the user finds that the service corresponding to the service processing result has an optimization requirement, the information to be optimized of the service can be input into the client. Taking the schematic diagram of the information to be optimized shown in fig. 4F as an example, after the client displays the service processing result, if the user finds that the service has a problem, the client can obtain the problem description information submitted by the user and obtain the service identifier of the service. The service identification may include a question description identification of the question description information, a robot identification or a context identification of a session with the client, etc. Taking the schematic diagram of the information to be optimized shown in fig. 4G as an example, when the client detects that the user clicks the "problem record" button, a problem recording interface may be displayed, the user may input problem description information in the problem recording interface, and when the client detects that the user clicks the "determine" button, the client may obtain the problem description information submitted by the user.
S308, the client sends service optimization requirements to the server.
After the client acquires the information to be optimized, the client can send the service optimization requirement to the server. For example, the client may send the service identification information to the server, and when the server receives the service identification information, the server may determine that there is an optimization requirement for the service corresponding to the service identification information. For another example, the client sends information to be optimized to the server, and the server can determine that the information to be optimized indicates that the service has optimization requirements.
S309, the server sends the processing logic information of the service to the client.
After determining that the service corresponding to the service identifier has an optimization requirement, the server can send the processing logic information of the service to the client. For different services, after the server determines that the service has an optimization requirement, the data returned to the client is different, for example, in an AI dialogue scene, the server can send the processing logic information, the context information, the user information and the user behavior data of the service to the client; in another example, in an intelligent recommendation scenario, the server may send processing logic information, user information, and user behavior data for the service to the client. Taking the processing logic information shown in fig. 4H as an example, the client may send service identification information including the problem description identifier, the robot identifier, and the context identifier to the server, and the server may send the processing logic information, the context information, the user information, and the user behavior data of the service to the client based on the service identification information.
In one possible embodiment, the client may use the time of submission of the user to the optimization information in response to the service processing result as a time stamp, generate verification information based on the time stamp and the random number, and send the service identifier and the verification information to the server. When the server determines that the service corresponding to the service identifier has an optimization requirement, the processing logic information and verification information can be sent to a cache center, the cache center can be a cache memory of a third-party server, and the cache center caches the processing logic information and the verification information. When the server successfully sends the processing logic information to the cache center, acknowledgement information may be sent to the client. The client may send authentication information for the service to the server in response to the confirmation information. The server sends the verification information to the cache center, receives the processing logic information searched by the cache center according to the verification information, and sends the processing logic information to the client. According to the embodiment of the invention, the verification information is generated based on the time stamp and the random number, and because the time stamp is unique, the verification information generated by the client is also unique, namely the processing logic information stored in the cache center corresponds to the verification information one by one, the client acquires the processing logic information based on the verification information, so that the interaction between the pseudo client and the server to acquire the processing logic information can be avoided, and the safety of the processing logic information is improved.
In one possible embodiment, after determining that the service corresponding to the service identifier has an optimization requirement, the server may convert the processing logic information into a JavaScript object notation language (JavaScript Object Notation, JSON string), and send the JSON string to the client.
And S310, the client generates optimization prompt information according to the information to be optimized and the processing logic information.
After the client acquires the processing logic information, the client can generate optimization prompt information according to the information to be optimized and the processing logic information. The optimization prompt information is used for prompting the optimization of the service according to the information to be optimized and the processing logic information.
Optionally, after the client acquires the processing logic information, the information to be optimized and the service identifier may be stored in an associated manner. Taking the schematic diagram of the information list to be optimized shown in fig. 4I as an example, when the client displays the information list to be optimized, the client may obtain at least one piece of information to be optimized from a local database of the client, and display each piece of information to be optimized on a page, and the client may also respond to the operation of the user to display the processing logic information associated with each piece of information to be optimized on the page.
Optionally, after receiving the JSON string, the client may parse the JSON string to obtain the processing logic information.
S311, the client outputs the optimization prompt information.
After the client outputs the optimization prompt information, the user can check the information list to be optimized when positioning the problem to be solved in response to the optimization prompt information, wherein the information list to be optimized can be as shown in fig. 4J, and the information list to be optimized can comprise a robot identifier, problem description information, a user identifier submitting the problem description information, a user identifier for solving the problem, a problem type, a problem state, processing logic information and the like. The user may select the required information to be optimized from the information to be optimized list, for example, when the user clicks a "view details" button in the information to be optimized, which is "no application information is displayed" on the problem description information in the information to be optimized list, the client may display the processing logic information as shown in fig. 4K in response to the operation of the user. The processing logic information can assist in improving analysis efficiency, and is helpful for users to solve problems.
Optionally, the client may add an auxiliary analysis tool plug-in, such as a text analysis tool, to the page according to the service requirement, and the text analysis tool may analyze whether the word segmentation result of a sentence is accurate, provide similar words of the phrase, and so on, so as to further assist in improving the problem positioning efficiency. A schematic diagram of the plug-in of the auxiliary analysis tool may be shown in fig. 4L, where if the auxiliary analysis tool performs text analysis on the sentence "i want to listen to a song", the client may display the analysis result, each phrase, its relevance, and so on.
It should be noted that, the user responds to the service processing result displayed by the client, inputs the information to be optimized in the client, optimizes the service based on the information to be optimized and the processing logic information stored in the client, and can perform information clustering and closed-loop analysis, thereby reducing the labor cost in the service processing process.
In the embodiment of the invention, when the service request information sent by the client is received, the server performs service processing on the service requested by the service request information, the server acquires the service processing result, generates the processing logic information according to the logic of the service processing, and sends the service processing result and the processing logic information to the client, so that the client optimizes the service according to the service processing result and/or the processing logic information, thereby avoiding the need of manually searching the processing logic information and improving the service optimizing efficiency.
In some possible implementations, as shown in fig. 5A, a flow chart of another service optimization method provided by the embodiment of the present invention is shown, and the server may perform a background information embedding point. The client assembles the service request information (such as head, request, etc.), and sends the assembled service request information to the server. The client may then receive the test result and the processing information (i.e., processing logic information) of each module from the server, where the test result and the processing information of each module are obtained after the server processes the service requested by the service request information. Further, the client can judge whether the user finds a problem, and if the user does not find the problem, the client can end the service optimization flow; if a problem is found, the client can obtain information to be optimized through one-key bill, and display a problem list (such as the information list to be optimized), wherein the problem list can comprise problem details, context information or log (such as processing logic information), and the like, and a user can analyze, locate and solve the problem based on the problem list, and then realize Bug state torsion, regression verification and the like.
The schematic diagram of the background information embedded point may be as shown in fig. 5B, where the terminal running with the client performs service interaction with the server, and the server may include a central control system, an NLU module, a CP module, and a chat module. The central control system can control the NLU module, the CP module and the chat module, and session state information, NLU ID, current intention, message category, intervention information, chatting or question-answering (Question and answer, QA) hit judgment and the like can be generated in the service processing process of the service through the central control system. The intention information, entity extraction information or intention matching templates and the like can be generated in the process of carrying out service processing on the service through the NLU module. And in the process of carrying out service processing on the service through the CP module and the chat module, the callback data, the identified entity, the user ID, the called URL or card number and the like can be generated.
In some possible implementations, as shown in fig. 5C, a flowchart of another service optimization method provided by the embodiment of the present invention is shown, where when a user experiences or tests a service, a server may send processing logic information generated in a service processing process of each functional link on the service to a client. The client displays the service processing result of the service on the whiteboard platform, and when a user finds a problem aiming at the service processing result, information to be optimized (namely a Bug bill of lad or a bad case bill of lad) can be input into the client. The client can generate an information list to be optimized (i.e. a problem list) according to the information to be optimized and the processing logic information, and when a user clicks a button for checking details in the client, the client can display the details of the problem, wherein the details of the problem can comprise the processing logic information, the user portrait or the dialogue context and other information related to the problem. After the user performs problem analysis and solution based on the problem details, the client can perform regression verification through the whiteboard platform, namely, interact with the server to determine that the service has no optimization requirement.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a service optimizing apparatus provided in an embodiment of the present invention, where the service optimizing apparatus in the embodiment of the present invention as shown in the drawing may at least include a receiving unit 601, a processing unit 602, and a sending unit 603, where:
the receiving unit 601 receives service request information sent by a client;
the processing unit 602 performs service processing on the service requested by the service request information;
the processing unit 602 obtains a service processing result and generates processing logic information according to the logic of the service processing;
the sending unit 603 sends the service processing result and the processing logic information to the client, so that the client optimizes the service according to the service processing result and/or the processing logic information.
Optionally, before the receiving unit 601 receives the service request information sent by the client, the processing unit 602 is further configured to obtain at least one functional link for processing the service, where the service includes an AI session, a functional test, an information search, or an information push;
the processing unit 602 is further configured to perform data embedding on the at least one functional link;
the processing unit 602 is further configured to generate processing logic information according to the logic of the service processing, and specifically, is configured to obtain processing logic information generated when each functional link passing through the data embedded point processes the service.
Optionally, the sending unit 603 sends the service processing result and the processing logic information to the client, specifically configured to:
sending the service processing result to the client;
when receiving a service optimization requirement returned by the client, converting the processing logic information into a JSON character string;
and sending the JSON character string to the client.
Optionally, before generating the processing logic information according to the logic of the service process, the processing unit 602 is further configured to determine whether the service request information includes a problem location identifier, and when the service request information includes the problem location identifier, execute the step of generating the processing logic information according to the logic of the service process.
Optionally, if the service is an AI session, the processing unit 602 obtains at least one functional link for processing the service, specifically for:
and acquiring at least one module of the central control system, the NLU module and the CP module.
In the embodiment of the present invention, the receiving unit 601 receives the service request information sent by the client, the processing unit 602 performs service processing on the service requested by the service request information, the processing unit 602 obtains a service processing result, generates processing logic information according to the logic of service processing, and the sending unit 603 sends the service processing result and the processing logic information to the client, so that the client optimizes the service according to the service processing result and/or the processing logic information, and does not need to manually search for the required processing logic information, thereby improving service optimization efficiency.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server according to the embodiment of the present invention may be used to implement the method implemented by the embodiment of the present invention shown in fig. 3, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, and specific technical details are not disclosed, and reference is made to the embodiment of the present invention shown in fig. 3.
As shown in fig. 7, the server includes: at least one processor 701, such as a CPU, at least one input device 703, at least one output device 704, a memory 705, at least one communication bus 702. Wherein the communication bus 702 is used to enable connected communications between these components. The input device 703 and the output device 704 may be specifically network interfaces, for interaction with clients. The memory 705 may include a high-speed RAM memory or may further include a non-volatile memory, such as at least one disk memory, for storing processing logic information. The memory 705 may optionally include at least one storage device located remotely from the processor 701. The processor 701 may incorporate the traffic optimization device shown in fig. 6. A set of program codes is stored in the memory 705, and the processor 701, the input device 703, and the output device 704 call the program codes stored in the memory 705 for performing the following operations:
When the input device 703 receives service request information sent by a client, the processor 701 performs service processing on a service requested by the service request information;
the processor 701 obtains a service processing result and generates processing logic information according to the logic of the service processing;
the output device 704 sends the service processing result and the processing logic information to the client, so that the client optimizes the service according to the service processing result and/or the processing logic information.
Optionally, when the input device 703 receives service request information sent by the client, before the processor 701 performs service processing on a service requested by the service request information, the method further includes:
the processor 701 obtains at least one functional link that processes the service, where the service includes an artificial intelligence AI dialogue, a functional test, an information search, or an information push;
the processor 701 performs data embedding on the at least one functional link;
the processor 701 generates processing logic information according to the logic of the service processing, including:
the processor 701 acquires processing logic information generated when each functional link passing through the data buried point processes the service.
Optionally, the sending, by the output device 704, the service processing result and the processing logic information to the client includes:
the output device 704 sends the service processing result to the client;
when the input device 703 receives a service optimization requirement returned by the client, the processor 701 converts the processing logic information into a JavaScript object notation language JSON string;
the output device 704 sends the JSON string to the client.
Optionally, before the processor 701 generates processing logic information according to the logic of the service processing, the method further includes:
the processor 701 judges whether the service request information contains a problem positioning identifier;
when the service request information contains a problem location identifier, the processor 701 performs a step of generating processing logic information according to the logic of the service processing.
Optionally, if the service is an AI session, the processor 701 obtains at least one functional link for processing the service, including:
the processor 701 obtains at least one of a central control system, a natural language understanding NLU module, and a content providing CP module.
Specifically, the server described in the embodiments of the present invention may be used to implement part or all of the flow in the method embodiment of the present invention described in connection with fig. 3.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a service optimizing apparatus provided in an embodiment of the present invention, where the service optimizing apparatus in the embodiment of the present invention as shown in the drawing may at least include a sending unit 801, a receiving unit 802, and a processing unit 803, where:
the sending unit 801 sends service request information to a server, where the service request information is used to trigger the server to perform service processing on a service requested by the service request information, and the server generates processing logic information according to logic of the service processing;
the receiving unit 802 receives the service processing result sent by the server and the processing logic information;
the processing unit 803 obtains information to be optimized of the service returned based on the service processing result;
the sending unit 801 outputs an optimization prompt message, where the optimization prompt message includes the information to be optimized and the processing logic information, and the optimization prompt message is used to prompt that the service is optimized according to the information to be optimized and the processing logic information.
Optionally, the receiving unit 802 receives the service processing result and the processing logic information sent by the server, and is specifically configured to:
Receiving a service processing result sent by the server;
sending a service optimization requirement to the server based on the service processing result;
receiving a JSON character string sent by the server in response to the service optimization requirement;
and analyzing the JSON character string to obtain the processing logic information.
Optionally, the service request information carries a problem positioning identifier, where the problem positioning identifier is used to trigger the server to generate the processing logic information according to the logic of the service processing.
Optionally, before the sending unit 801 sends the service request information to the server, the receiving unit 802 is further configured to obtain a service request through an input device;
the processing unit 803 is further configured to encapsulate the service request based on HTTP, to obtain the service request information.
In the embodiment of the invention, the sending unit 801 sends the service request information to the server, the receiving unit 802 receives the service processing result and the processing logic information sent by the server, the processing unit 803 obtains the information to be optimized of the service returned based on the service processing result, the sending unit 801 outputs the optimization prompt information, the optimization prompt information comprises the information to be optimized and the processing logic information, and the optimization prompt information is used for prompting the service to be optimized according to the information to be optimized and the processing logic information, so that the required processing logic information does not need to be searched manually, and the problem positioning efficiency can be improved.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a client provided in an embodiment of the present invention, where the client provided in the embodiment of the present invention may be used to implement the method implemented in the embodiment of the present invention shown in fig. 3, and for convenience of explanation, only the portion relevant to the embodiment of the present invention is shown, and specific technical details are not disclosed, and please refer to the embodiment of the present invention shown in fig. 3.
As shown in fig. 9, the client includes: at least one processor 901, such as a CPU, at least one input device 903, at least one output device 904, memory 905, at least one communication bus 902. Wherein a communication bus 902 is employed to facilitate a coupled communication between the components. The input device 903 and the output device 904 may be specifically network interfaces, which are used to interact with a server. The memory 905 may include a high-speed RAM memory, and may further include a non-volatile memory, such as at least one disk memory, for storing information to be optimized, processing logic information, and optimization hints information. The memory 905 may optionally comprise at least one storage device located remotely from the processor 901. The processor 901 may incorporate the traffic optimization device shown in fig. 8. A set of program codes is stored in the memory 905, and the processor 901, the input device 903, and the output device 904 call the program codes stored in the memory 905 for performing the following operations:
The output device 904 sends service request information to a server, wherein the service request information is used for triggering the server to process a service requested by the service request information, and the server generates processing logic information according to logic of the service processing;
the input device 903 receives the service processing result sent by the server and the processing logic information;
the processor 901 acquires information to be optimized of the service returned based on the service processing result;
the output device 904 outputs an optimization prompt message, where the optimization prompt message includes the information to be optimized and the processing logic information, and the optimization prompt message is used to prompt that the service is optimized according to the information to be optimized and the processing logic information.
Optionally, the input device 903 receives the service processing result sent by the server and the processing logic information, including:
the input device 903 receives the service processing result sent by the server;
the output device 904 sends a service optimization requirement to the server based on the service processing result;
the input device 903 receives JSON strings sent by the server in response to the service optimization requirement;
And the processor 901 analyzes the JSON character string to obtain the processing logic information.
Optionally, the service request information carries a problem positioning identifier, where the problem positioning identifier is used to trigger the server to generate the processing logic information according to the logic of the service processing.
Optionally, before the output device 904 sends the service request information to the server, the method further includes:
the input device 903 obtains a service request;
the processor 901 encapsulates the service request based on HTTP to obtain the service request information.
Specifically, the client described in the embodiment of the present invention may be used to implement part or all of the flow in the method embodiment of the present invention described in connection with fig. 3.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs stored in a computer-readable storage medium, which when executed, may include the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (12)

1. A method of traffic optimization, the method comprising:
when receiving service request information sent by a client, carrying out service processing on a service requested by the service request information;
acquiring a service processing result and generating processing logic information according to the service processing logic;
sending the service processing result to the client so that the client generates verification information based on the timestamp and the random number of the service processing result; wherein the timestamp refers to: responding to the service processing result and submitting time when submitting the information to be optimized;
receiving a service identifier and the verification information of the service sent by the client;
when the business corresponding to the business identifier is determined to have optimization requirements, the processing logic information and the verification information are sent to a cache center;
when the processing logic information is successfully sent to the cache center, acknowledgement information is sent to the client so that the client responds to the acknowledgement information to feed back verification information of the service;
Transmitting the verification information fed back by the client to the cache center, and receiving the processing logic information searched by the cache center according to the verification information fed back by the client;
and sending the processing logic information from the cache center to the client so that the client optimizes the service according to the service processing result and/or the processing logic information.
2. The method of claim 1, wherein when receiving the service request information sent by the client, before performing service processing on the service requested by the service request information, the method further comprises:
acquiring at least one functional link for processing the service, wherein the service comprises an artificial intelligence AI dialogue, a functional test, an information search or an information push;
performing data embedding on the at least one functional link;
the logic for processing according to the service generates processing logic information, which comprises the following steps:
and acquiring processing logic information generated by each functional link passing through the data embedded point when the service is processed.
3. The method of claim 1, wherein the sending processing logic information from the cache center to the client comprises:
When receiving a service optimization requirement returned by the client, converting the processing logic information into a JavaScript object markup language (JSON) character string;
and sending the JSON character string to the client.
4. A method according to any of claims 1-3, wherein before generating processing logic information according to the logic of the business process, further comprising:
judging whether the service request information contains a problem positioning identifier or not;
and when the service request information contains the problem positioning identification, executing the step of generating processing logic information according to the logic of the service processing.
5. The method of claim 2, wherein the service is an AI session;
the obtaining at least one functional link for processing the service includes:
and at least one module of the central control system, the natural language understanding NLU module and the content providing CP module is obtained.
6. A method of traffic optimization, the method comprising:
the method comprises the steps that service request information is sent to a server, the service request information is used for triggering the server to process service requested by the service request information, and the server generates processing logic information according to logic of the service processing;
Receiving a service processing result sent by the server;
acquiring information to be optimized of the service returned based on the service processing result;
generating verification information based on the timestamp and the random number of the service processing result; wherein the timestamp refers to: responding to the service processing result and submitting time when submitting the information to be optimized;
the service identification and the verification information of the service are sent to the server, so that the server sends the processing logic information and the verification information to a cache center when determining that the service corresponding to the service identification has an optimization requirement;
receiving acknowledgement information sent by the server when the processing logic information is successfully sent to the cache center;
responding to the confirmation information and feeding back the verification information of the service to the server so that the server can send the fed-back verification information to the cache center, and the server can receive the processing logic information searched by the cache center according to the fed-back verification information;
receiving processing logic information from the cache center, wherein the processing logic information is sent by the server;
and outputting optimization prompt information, wherein the optimization prompt information comprises information to be optimized and processing logic information from the cache center, and the optimization prompt information is used for prompting the optimization of the service according to the information to be optimized and the processing logic information from the cache center.
7. The method of claim 6, wherein receiving processing logic information from the cache center sent by the server comprises:
sending a service optimization requirement to the server based on the service processing result;
receiving a JavaScript object markup language (JSON) string sent by the server in response to the service optimization requirement;
and analyzing the JSON character string to obtain the processing logic information.
8. The method of claim 6 or 7, wherein the service request information carries a problem location identifier, the problem location identifier being used to trigger the server to generate the processing logic information according to the logic of the service processing.
9. The method of claim 6, wherein before sending the service request information to the server, further comprising:
acquiring a service request through an input device;
and packaging the service request based on a hypertext transfer protocol (HTTP) to obtain the service request information.
10. A traffic optimization device, characterized in that the device comprises means for performing the method according to any of claims 1-5.
11. A traffic optimization device, characterized in that the device comprises means for performing the method according to any of claims 6-9.
12. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising first program instructions which, when executed by a server, cause the server to perform the method of any of claims 1-5; alternatively, the computer program comprises second program instructions which, when executed by a client, cause the client to perform the method according to any of claims 6-9.
CN201810228929.8A 2018-03-20 2018-03-20 Service optimization method and device Active CN110309931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810228929.8A CN110309931B (en) 2018-03-20 2018-03-20 Service optimization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810228929.8A CN110309931B (en) 2018-03-20 2018-03-20 Service optimization method and device

Publications (2)

Publication Number Publication Date
CN110309931A CN110309931A (en) 2019-10-08
CN110309931B true CN110309931B (en) 2023-06-23

Family

ID=68073931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810228929.8A Active CN110309931B (en) 2018-03-20 2018-03-20 Service optimization method and device

Country Status (1)

Country Link
CN (1) CN110309931B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178014A (en) * 2019-12-13 2020-05-19 中国建设银行股份有限公司 Method and device for processing business process
CN111078435A (en) * 2019-12-18 2020-04-28 支付宝(杭州)信息技术有限公司 Service processing method and device and electronic equipment
CN111640019A (en) * 2020-05-12 2020-09-08 中信银行股份有限公司 Method and device for acquiring test data, storage medium and electronic device
CN111737615A (en) * 2020-05-14 2020-10-02 北京百度网讯科技有限公司 Method and device for acquiring page resources, electronic equipment and readable storage medium
CN111950776A (en) * 2020-07-23 2020-11-17 优车库网络科技发展(深圳)有限公司 Business process optimization method and device, computer equipment and storage medium
CN112801771A (en) * 2021-01-08 2021-05-14 深圳乐信软件技术有限公司 Credit processing method, device, equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445536A (en) * 2016-09-28 2017-02-22 湛江市霞山区新软佳科技有限公司 Automated business design management system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854371B (en) * 2009-03-31 2016-08-03 华为技术有限公司 The method called and process of JavaScript object, device
CN103473178B (en) * 2013-09-24 2017-08-04 上海斐讯数据通信技术有限公司 The method and system that a kind of optimal inspection flow is performed
CN104359495A (en) * 2014-11-20 2015-02-18 百度在线网络技术(北京)有限公司 Application testing method and device
US10387656B2 (en) * 2016-03-21 2019-08-20 Checkmarx Ltd. Integrated interactive application security testing
CN106970872B (en) * 2016-11-10 2021-01-05 创新先进技术有限公司 Information point burying method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445536A (en) * 2016-09-28 2017-02-22 湛江市霞山区新软佳科技有限公司 Automated business design management system

Also Published As

Publication number Publication date
CN110309931A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110309931B (en) Service optimization method and device
US11822919B2 (en) Auto-generation of API documentation via implementation-neutral analysis of API traffic
CN107112016B (en) Multi-modal state cycling
US10108535B2 (en) Web application test script generation to test software functionality
CN107508720B (en) Automatic testing method and device
CN111813701B (en) HTTP-based interface testing method and device, computer equipment and storage medium
CN112988599B (en) Page debugging method and device, electronic equipment and storage medium
EP3796178B1 (en) Immersive web-based simulator for digital assistant-based applications
WO2016082696A1 (en) Ua recognition method and device
US11556454B2 (en) Immersive web-based simulator for digital assistant-based applications
WO2023142451A1 (en) Workflow generation methods and apparatuses, and electronic device
CN111143532B (en) Dialogue unit access method, device, equipment and storage medium
CN103970882A (en) Method and device for rendering page
CN107888451B (en) Method and device for testing Web server
CN107239265B (en) Binding method and device of Java function and C function
US20230252242A1 (en) Question based chatbot generator from api specifications
CN110874278A (en) Embedding method of external system, workflow system, device and storage medium
JP2009211278A (en) Retrieval system using mobile terminal, and its retrieval method
CN113626321B (en) Bridging test method, device, system and storage medium
CN112363699B (en) Interaction method and device applied to multi-language development platform
CN114691486A (en) Program debugging method and device and computer equipment
CN112433752A (en) Page parsing method, device, medium and electronic equipment
CN113886216A (en) Interface test and tool configuration method, device, electronic equipment and storage medium
CN113703819B (en) Dynamic message analysis method, device, equipment and medium
CN113364614B (en) Request processing method, device, server, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant