WO2022217708A1 - Artificial intelligence-based question and answer method and apparatus, server, and storage medium - Google Patents

Artificial intelligence-based question and answer method and apparatus, server, and storage medium Download PDF

Info

Publication number
WO2022217708A1
WO2022217708A1 PCT/CN2021/097022 CN2021097022W WO2022217708A1 WO 2022217708 A1 WO2022217708 A1 WO 2022217708A1 CN 2021097022 W CN2021097022 W CN 2021097022W WO 2022217708 A1 WO2022217708 A1 WO 2022217708A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
question
user
answer
template
Prior art date
Application number
PCT/CN2021/097022
Other languages
French (fr)
Chinese (zh)
Inventor
任龙伟
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2022217708A1 publication Critical patent/WO2022217708A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the field of computer technology, in particular to the field of artificial intelligence technology, and in particular to a question answering method, device, server and storage medium based on artificial intelligence.
  • the embodiments of the present application provide a question and answer method, device, server and storage medium based on artificial intelligence, which can improve the quality of question and answer service.
  • an embodiment of the present application provides a question and answer method based on artificial intelligence, including: acquiring a question and answer request submitted by a first terminal, where the question and answer request carries user information and question description information of a target user; Obtain the business information set of the target user; identify the questioning intention of the target user by using the problem description information, and obtain an intent identification result; convert the intent identification result into a target question and answer instruction; according to the business information set and the target question answering instruction matches a target reply template for the target user; obtains reply content for the target user according to the target reply template, and outputs the reply content through the first terminal.
  • the present application provides an artificial intelligence-based question-and-answer device, comprising: an acquisition module configured to acquire a question-and-answer request submitted by a first terminal, where the question-and-answer request carries user information and question description information of a target user; the The acquisition module is further configured to acquire the business information set of the target user according to the user information; the identification module is configured to identify the questioning intention of the target user by using the problem description information to obtain an intention identification result; the conversion module , for converting the intent recognition result into a target question and answer instruction; a matching module, for matching out a target reply template for the target user according to the business information set and the target question and answer instruction; the acquisition module, also using obtaining the reply content for the target user according to the target reply template; the communication module is used for outputting the reply content through the first terminal.
  • an acquisition module configured to acquire a question-and-answer request submitted by a first terminal, where the question-and-answer request carries user information and question description information of a target user
  • an embodiment of the present application provides a server, including a processor and a memory, where the processor and the memory are connected to each other, wherein the memory is used to store a computer program, and the computer program includes program instructions,
  • the processor is configured to invoke the program instruction and execute the following method: acquiring a question and answer request submitted by the first terminal, where the question and answer request carries user information and question description information of the target user; acquiring the question and answer request according to the user information; business information collection of the target user; use the problem description information to identify the questioning intention of the target user to obtain an intention identification result; convert the intention identification result into a target question and answer instruction; according to the business information collection and the
  • the target question answering instruction matches a target reply template for the target user; obtains reply content for the target user according to the target reply template, and outputs the reply content through the first terminal.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following method: obtaining a question and answer submitted by a first terminal
  • the question and answer request carries the user information and question description information of the target user; obtains the business information set of the target user according to the user information; uses the question description information to identify the questioning intention of the target user, and obtains Intention recognition result; convert the intention recognition result into a target question answering instruction; match a target reply template for the target user according to the business information set and the target question answering instruction; obtain a target answer template according to the target answer template reply content of the user, and output the reply content through the first terminal.
  • this application can obtain a collection of business information in real time, combined with the target question and answer obtained through technologies such as intent recognition Instructions are used to match templates, so as to generate answer content, the question and answer process is faster, the answer content is more accurate, and the quality of question and answer service is effectively improved.
  • FIG. 1 is a schematic flowchart of an artificial intelligence-based question answering method provided by an embodiment of the present application.
  • FIG. 2a is a schematic diagram of a relationship between a question and answer instruction and a reply template provided by an embodiment of the present application.
  • FIG. 2b is a schematic diagram of a target page provided by an embodiment of the present application.
  • FIG. 2c is a schematic diagram of another target page provided by an embodiment of the present application.
  • FIG. 2d is a schematic diagram of another target page provided by an embodiment of the present application.
  • FIG. 2e is a schematic diagram of another target page provided by an embodiment of the present application.
  • FIG. 2f is a schematic diagram of a question and answer process provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another question answering method based on artificial intelligence provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an artificial intelligence-based question answering device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the technical solution of the present application may relate to the field of artificial intelligence technology, for example, it can be applied to scenarios such as smart question and answer, so as to improve the quality of question and answer service, thereby promoting the construction of a smart city.
  • the data involved in this application such as user information, reply templates and/or reply content, can be stored in a database, or can be stored in a blockchain, such as distributed storage through a blockchain, which is not limited in this application. .
  • FIG. 1 is a schematic flowchart of an artificial intelligence-based question answering method according to an embodiment of the present application.
  • This method can be applied to the server.
  • the server can be a server or a cluster of servers. Specifically, the method may include the following steps.
  • the first terminal may be a smart phone, a tablet computer, a notebook computer, a self-service terminal, a robot, such as an intelligent question answering robot installed in a shopping mall.
  • the target user may be a user corresponding to the first terminal.
  • the user information may include user identification information.
  • User identification information is the information used to uniquely identify the target user, including but not limited to any of the following: user nickname, user account, user mobile phone number,
  • the problem description information includes a problem description sentence.
  • the question description information may include question description sentences and question context information
  • the question context information may include an ID of the question and answer request (used to uniquely identify a question and answer request) and question and answer rounds (such as round 1, round 2) ).
  • the question and answer request submitted by the first terminal may be forwarded to the server by the first terminal through another server, or may also be sent to the server by the first terminal.
  • the question-and-answer request may be generated by the first terminal after detecting the click operation of the send button by the target user, obtaining a question description sentence input by the target user, and generating the question description sentence.
  • the question and answer request may also be generated according to the target reply content after the first terminal detects the click operation of the target user on the send button and obtains the target reply content selected by the target user from the existing reply content.
  • the content may be a certain reply content that has been displayed on the chat interface.
  • the server may query the target user's service information set according to the user information.
  • the server may query the target user's service information set from a specified database or target service system according to the user information.
  • the link address for accessing the target business system may be configured based on the first plug-in template.
  • the acquired service information sets are also different.
  • the business information set may include loan amount, loan time, repayment period, repayment amount and other business information;
  • the business information set may include service date, user appeal, user attitude and other business information .
  • the intent recognition result may include at least one keyword indicating the questioning intent of the target user.
  • the target question-and-answer instruction refers to the question-and-answer instruction converted according to the intent recognition result.
  • the target question answering instruction can be a string.
  • the target question answering instruction may be a character string indicating a business field corresponding to the question description information, and the character string is composed of numbers and/or letters.
  • the server uses the problem description information to identify the questioning intention of the target user, and the method of obtaining the intention recognition result may be: the server invokes the intention recognition model to identify the questioning intention of the target user according to the problem description information, and obtains the intention identification result.
  • the server converts the intent recognition result into the target question answering instruction may be: the server determines the target question answering instruction corresponding to the intent identification result according to the correspondence between the keyword and the question answering instruction.
  • the server may also send question description information to a specified device (such as a specified robot), triggering the specified device to use the question description information to identify the questioning intent of the target user, obtain an intent identification result, and use the intent identification result Convert it to a target question and answer command, and receive the target question and answer command returned by the specified device.
  • a specified device such as a specified robot
  • the target reply template refers to a reply template matched for the target user.
  • the server may determine, according to the correspondence between the question and answer instruction and the answer template, the answer template corresponding to the target question and answer instruction as the target answer template.
  • the server may determine a use condition corresponding to the target question and answer instruction, and obtain the target reply template when the use condition is satisfied.
  • the usage condition can be used to judge whether the target reply template can be used, or can also be used to determine which reply template is specifically used as the target reply template.
  • the server may acquire the conditional expression corresponding to the target question and answer instruction, and acquire the target reply template according to the service information set and the conditional expression.
  • the server may obtain the conditional expression corresponding to the target question and answer instruction, and substitute each service information in the service information set into the conditional expression for operation to obtain the operation result; the server determines the reply corresponding to the operation result template, and determine the response template corresponding to the operation result as the target response template.
  • Different operation results correspond to different reply templates.
  • one operation instruction may correspond to 4 reply templates.
  • the reply template corresponding to the obtained operation result can be determined as the target reply template.
  • the symbol "*" in the drawings of the embodiments of the present application hides the corresponding characters (such as numbers or letters), and in the actual application process, the corresponding characters (such as numbers or letters) are displayed at the location of the symbol.
  • the server may output a target page through the second terminal, where the target page is a page capable of configuring question-and-answer instructions, usage conditions, and reply templates. Based on the target page, the second terminal may configure the target question-and-answer instruction, as well as the usage condition and reply template corresponding to the target question-and-answer instruction. After the second terminal completes the configuration of the target question and answer instruction, the use condition and the reply template corresponding to the target question and answer instruction, the server can obtain the target question and answer instruction, the use condition and the reply template corresponding to the target question and answer instruction, and save the target question and answer instruction, and the target question and answer instruction. The usage conditions and response templates corresponding to the question and answer command.
  • the second terminal may be a terminal corresponding to a developer who can use the server, or may also be a terminal corresponding to an administrator corresponding to the target business system, and so on.
  • the second terminal may be a desktop computer, a notebook computer, a laptop computer, and so on.
  • the target page may be a page as shown in FIG. 2b to FIG. 2c
  • the second terminal may display the page
  • the user corresponding to the second terminal may configure the target question and answer instruction based on the page, and the corresponding target question and answer instruction Use conditions and reply templates.
  • the user corresponding to the second terminal can click the OK button on the page to send the target question and answer instruction, the usage conditions and reply template corresponding to the target question and answer instruction to the server, and the server can receive the target question and answer.
  • the instruction, as well as the use conditions and response templates corresponding to the target question and answer instructions and save the target question and answer instructions, as well as the use conditions and answer templates corresponding to the target question and answer instructions.
  • the target page includes a question and answer instruction input area, a use condition input area, and a reply template input area.
  • the question and answer instruction input area is used to input question and answer instructions, such as target question and answer instructions. Use the conditional input area to enter conditional expressions.
  • the reply template input area is used to enter reply templates.
  • the conditional input area when used to set the conditional expression, it can be used to input the operator and the comparison value on both sides of the operator.
  • the target page may further include a status selection option, including a status valid option and a status invalid option, so that when it is determined that the setting is valid, it is determined whether the usage condition is satisfied.
  • the server may output a first page through the second terminal, where the first page includes multiple question and answer instructions, and the multiple question and answer instructions include target question and answer instructions.
  • the server After detecting the selection instruction for the target question and answer instruction sent by the second terminal, the server outputs a second page through the second terminal, so that the second terminal configures the conditional expression and reply corresponding to the target question and answer instruction based on the second page template.
  • the server acquires the conditional expression and the reply template corresponding to the target question and answer instruction, and saves the conditional expression and the reply template corresponding to the target question and answer instruction.
  • the second page includes a question and answer instruction display area, a conditional expression input area, and a reply template input area.
  • the target question and answer instructions are displayed in the question and answer instruction display area.
  • the question and answer instruction display area may not respond to the question and answer instruction input operation, that is, the user corresponding to the second terminal will not be able to perform the question and answer instruction input operation based on the question and answer instruction display area.
  • the conditional input area when used to set the conditional expression, it can be used to input the operator and the comparison value on both sides of the operator.
  • the second page may further include a status selection option, including a status valid option and a status invalid option, so that when it is determined that the setting is valid, it is determined whether the usage condition is satisfied.
  • examples of the second page can also refer to FIG. 2b-FIG. 2c.
  • the manner in which the server outputs the second page through the second terminal is specifically that the server searches for a second plug-in template, where the second plug-in template includes the page code of the second page.
  • the server sends the second plug-in template to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page.
  • the second plug-in template can be embedded in the second terminal in the form of a page plug-in.
  • the server may acquire a reply template corresponding to the target question-answer instruction as the target reply template.
  • the usage condition set based on the preset value does not need to perform conditional judgment.
  • the target page or the second page may also refer to the pages shown in FIG. 2d to FIG. 2e, and the target page and the second page have the above differences. From the pages shown in Figures 2d-2e, it can be seen that the conditions of use are generic responses.
  • S106 Obtain reply content for the target user according to the target reply template, and output the reply content through the first terminal.
  • the server may determine the target reply template as the reply content to the target user.
  • the server may identify the type of the target reply template, and when the target reply template is a general template, determine the target reply template as the reply content to the target user.
  • the server may use each service information in the service information set to replace the service variable corresponding to the service information in the target reply template, and obtain a replaced reply template, which will replace the The subsequent reply template is determined as the reply content to the target user.
  • the server may use each service information in the service information set to replace the service variable corresponding to the service information in the target reply template multiple times to obtain multiple replaced replies template, and merge multiple replaced reply templates to obtain a merged reply template, and determine the merged reply template as the reply content to the target user.
  • the server can process each piece of loan data (8 pieces in this example) of the target user in a loop, and use each piece of loan data to replace the business variables in the answer template to obtain 8 filled answer templates (The Nth loan data corresponds to the serial number N), and finally the 8 filled answer templates are combined into a complete answer template as the answer content to the target user.
  • the server can obtain the question and answer request submitted by the first terminal, and the question and answer request carries the user information and question description information of the target user; the server can obtain the target user's business information set according to the user information, and use the question description information. Obtain the intent recognition result about the target user; the server can convert the intent recognition result into a target question and answer instruction, and match a target reply template for the target user according to the business information set and the target question answer instruction, so as to obtain a reply for the target user according to the target reply template content, and output the reply content through the first terminal, this process can effectively improve the quality of the question and answer service.
  • FIG. 3 is a schematic flowchart of another question-answering method based on artificial intelligence provided by an embodiment of the present application.
  • This method can be applied to the server.
  • the server can be a server or a cluster of servers. Specifically, the method may include the following steps.
  • the user identification information is information used to uniquely identify the target user, including but not limited to any of the following: user nickname, user account, user mobile phone number, service system indication information is the indication information that can be used to determine the target service system,
  • the service system indication information may be identification information of the target service system or an application account registered by a service provider (eg, an enterprise).
  • the identification information of the target service system is information used for a unique target service system, for example, the identification information of the target service system may be xx service system or xx service.
  • the application account registered by the service provider is not the identification information of the service system.
  • the application account registered by the service provider may be the public account registered by the service provider on the public account platform.
  • the server obtains the service information set of the target user from the target service system according to the user identification information, and can query the link address for accessing the target service system for the server according to the service system indication information, and perform a query on the target service system for the server.
  • the user identification information and the link address are spliced to obtain a spliced link address, so as to obtain the target user's service information set from the target service system according to the spliced link address.
  • the link address may be a link address for accessing the business information set of each user of the target business system.
  • the server may look up a first plug-in template, where the first plug-in template includes page code of a link address configuration page.
  • the first plug-in template may be embedded in the target business system in the form of a page plug-in.
  • the server sends the first plug-in template to the target service system, so that the target service system configures a link address for accessing the target service system based on the first plug-in template.
  • the server receives the link address for accessing the target business system returned by the target business system, and stores the link address for accessing the target business system.
  • the server can search for the first plug-in template, and then send the first plug-in template to the target business system.
  • the administrator of the target business system can access the target business system and view the link address configuration generated based on the first plug-in template. page, and then configure the link address of the target business system based on the link address configuration page. Specifically, you can configure the link address for accessing the business information collection of each user of the target business system, and then return the configured link address to the target business system.
  • the business system can forward the link address to the server.
  • S306 Obtain reply content for the target user according to the target reply template, and output the reply content through the first terminal.
  • step S303-step S306 may refer to step S103-step S106, which will not be repeated here.
  • the server may initialize a problem context information, and send the problem context information to the first terminal. If the question description information includes question context information, update the saved question context information, and send the reply content and the updated question context information (including the ID of the new question and answer request and the updated question and answer round) to the first terminal, so that the user terminal submits a new question and answer request according to the updated question context information.
  • the server can obtain the question and answer request submitted by the first terminal, and the question and answer request carries the user information and question description information of the target user, and the user information includes user identification information and business system indication information;
  • the server Obtain the business information set of the target user from the target business system according to the user identification information, and the target business system is the business system indicated by the business system indication information;
  • the server uses the problem description information to identify the questioning intent of the target user, obtains the intent identification result, and Converting the intent recognition result into a target question and answer instruction, so as to match a target reply template for the target user according to the business information set and the target question answer instruction, and obtain the reply content for the target user according to the target reply template, and output the reply content through the first terminal,
  • This process can effectively connect the corresponding business system according to the actual question and answer business in the question and answer process to obtain the user's business information set. quality.
  • the question and answer request may be sent by the first terminal to the server through the blockchain network, and correspondingly, the content of the reply may also be sent to the first terminal through the blockchain network.
  • the server can write user information, question description information, and reply content into the blockchain. These data written to the blockchain can be used for subsequent question-and-answer service quality determination, or subsequent troubleshooting.
  • the question and answer apparatus may include: an acquisition module 401, configured to acquire a question and answer request submitted by a first terminal, where the question and answer request carries user information and question description information of a target user.
  • the obtaining module 401 is further configured to obtain the service information set of the target user according to the user information.
  • the identification module 402 is configured to identify the questioning intention of the target user by using the question description information, and obtain an intention identification result.
  • the conversion module 403 is configured to convert the intent recognition result into a target question and answer instruction.
  • the matching module 404 is configured to match a target reply template for the target user according to the service information set and the target question answering instruction.
  • the obtaining module 401 is further configured to obtain the reply content for the target user according to the target reply template.
  • the communication module 405 is configured to output the reply content through the first terminal.
  • the user information includes user identification information and service system indication information
  • the obtaining module 401 obtains the service information set of the target user according to the user information, specifically according to the user identification information
  • the service information set of the target user is acquired from the target service system, where the target service system is the service system indicated by the service system indication information.
  • the obtaining module 401 obtains the service information set of the target user from the target service system according to the user identification information, specifically querying the service information set for accessing the target user according to the service system indication information
  • the link address of the target business system perform splicing processing on the user identification information and the link address to obtain a spliced link address; obtain the target user's business information from the target business system according to the spliced link address gather.
  • the question and answer apparatus further includes a search module 406 and a storage module 407 .
  • the search module 406 is configured to search for a first plug-in template, where the first plug-in template includes page code of a link address configuration page.
  • the communication module 405 is further configured to send the first plug-in template to the target service system, so that the target service system is configured to access the target service system based on the first plug-in template. Describe the link address of the target business system.
  • the communication module 405 is further configured to receive a link address returned by the target service system for accessing the target service system.
  • the storage module 407 is configured to store the link address for accessing the target service system.
  • the matching module 404 matches a target reply template for the target user according to the business information set and the target question and answer instruction, and specifically acquires a conditional expression corresponding to the target question and answer instruction; Substitute each service information in the service information set into the conditional expression for operation to obtain an operation result; determine a reply template corresponding to the operation result, and determine the reply template corresponding to the operation result as a target reply template.
  • the communication module 405 is further configured to output a first page through the second terminal, where the first page includes multiple question and answer instructions, and the multiple question and answer instructions include the target question and answer instruction, And after detecting the selection instruction for the target question and answer instruction sent by the second terminal, output a second page through the second terminal, so that the second terminal configures the target question and answer instruction corresponding to the second page based on the second page. conditional expressions and reply templates.
  • the obtaining module 401 is further configured to obtain a conditional expression and a reply template corresponding to the target question and answer instruction.
  • the storage module 407 is further configured to save a conditional expression and a reply template configured by the second terminal for the target question answering instruction.
  • the communication module 405 outputting the second page through the second terminal includes: searching through the search module 406 for a second plug-in template, where the second plug-in template includes a page of the second page code; sending the second plug-in template to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page.
  • the question and answer device can obtain the question and answer request submitted by the first terminal, and the question and answer request carries the user information and question description information of the target user; the question and answer device can obtain the target user's business information set according to the user information, And use the question description information to obtain the intent recognition result about the target user; the question answering device can convert the intent recognition result into a target question and answer instruction, and match a target reply template for the target user according to the business information set and the target question and answer instruction, so that according to the target answer template Obtaining the reply content for the target user, and outputting the reply content through the first terminal, this process can effectively improve the quality of the question and answer service.
  • FIG. 5 is a schematic structural diagram of a server according to an embodiment of the present application.
  • the server described in this embodiment may include: one or more processors 1000 and a memory 2000 .
  • the processor 1000 and the memory 2000 may be connected through a bus or the like.
  • the processor 1000 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 2000 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a disk memory.
  • the memory 2000 is used to store a set of program codes, and the processor 1000 can call the program codes stored in the memory 2000 .
  • the processor 1000 is configured to obtain a question and answer request submitted by the first terminal, where the question and answer request carries the user information and question description information of the target user; obtain the service information set of the target user according to the user information; The question description information is used to identify the questioning intention of the target user, and an intention identification result is obtained; the intention identification result is converted into a target question and answer instruction; according to the business information set and the target question answer instruction, the target user is matched outputting a target reply template; obtaining reply content for the target user according to the target reply template, and outputting the reply content through the first terminal.
  • the server described in this application may also include a communication interface (not shown in FIG. 5 ).
  • the communication interface can be a standard wired or wireless communication interface.
  • the processor 1000 may send the reply content to the first terminal through the communication interface, so that the first terminal displays the reply content.
  • the user information includes user identification information and service system indication information
  • the processor 1000 obtains the target user's service information set according to the user information, specifically, according to the user identification information from the target service system
  • the service information set of the target user is obtained in the target service system, and the target service system is the service system indicated by the service system indication information.
  • the processor 1000 obtains the service information set of the target user from the target service system according to the user identification information, and specifically queries the service information set for accessing the target service system according to the service system indication information. link address; perform splicing processing on the user identification information and the link address to obtain a spliced link address; obtain the target user's service information set from the target service system according to the spliced link address.
  • the processor 1000 is further configured to search for a first plug-in template, where the first plug-in template includes page code of a link address configuration page; send the first plug-in template to the target business system, so that The target business system configures a link address for accessing the target business system based on the first plug-in template; receives the link address returned by the target business system for accessing the target business system, and saves the link address for accessing the target business system.
  • the processor 1000 may send the first plug-in template to the target service system through a communication interface, and may also receive a message returned by the target service system for accessing the target service system through the communication interface. link address.
  • the processor 1000 may store the link address for accessing the target service system through the memory 2000 .
  • the processor 1000 matches a target reply template for the target user according to the service information set and the target question and answer instruction, specifically acquiring a conditional expression corresponding to the target question and answer instruction; Substitute each service information in the information set into the conditional expression for operation to obtain an operation result; determine a reply template corresponding to the operation result, and determine the reply template corresponding to the operation result as a target reply template.
  • the processor 1000 is further configured to output a first page through the second terminal, where the first page includes multiple question and answer instructions, and the multiple question and answer instructions include the target question and answer instruction; After the second terminal sends the selection instruction for the target question and answer instruction, the second page is output through the second terminal, so that the second terminal configures the conditional expression and the corresponding conditional expression of the target question and answer instruction based on the second page.
  • Reply template obtain the conditional expression and reply template corresponding to the target question and answer instruction, and save the conditional expression and reply template configured by the second terminal for the target question and answer instruction.
  • the processor 1000 can send the first page to the second terminal through the communication interface, so that the second terminal can display the first page, and can also send the second page to the second terminal through the communication interface, so that the second terminal can display the first page.
  • the second terminal displays the second page.
  • the processor 1000 may store the conditional expression and the reply template of the target question-answer quality configuration through the memory 2000 .
  • the processor 1000 outputs the second page through the second terminal, specifically searching for a second plug-in template, where the second plug-in template includes page code of the second page;
  • the template is sent to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page.
  • the processor 1000 described in the embodiments of the present application may perform the implementation manners described in the embodiments of FIG. 1 and FIG. 3 , and may also perform the implementation manners described in the embodiments of the present application, which will not be repeated here. .
  • Each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of sampling hardware or in the form of sampling software function modules.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the methods in the foregoing embodiments can be implemented, or the computer program is When executed by the processor, the functions of each module of the apparatus in the foregoing embodiment can be implemented, which will not be repeated here.
  • the storage medium involved in this application such as a computer-readable storage medium, may be non-volatile or volatile.
  • the computer-readable storage medium can be volatile or non-volatile.
  • the computer storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), or the like.
  • the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; Use the created data, etc.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An artificial intelligence-based question and answer method and apparatus, a server, and a storage medium. The method is applied to the field of artificial intelligence, and the method comprises: acquiring a question and answer request submitted by a first terminal, the question and answer request carrying user information of a target user and question description information (S101); acquiring a service information set of the target user according to the user information (S102); identifying the question intention of the target user by using the question description information to obtain an intention recognition result (S103); converting the intention recognition result into a target question and answer instruction (S104); matching a target reply template for the target user according to the service information set and the target question and answer instruction (S105); and obtaining reply content for the target user according to the target reply template, and outputting the reply content by means of the first terminal (S106). The described method can improve the quality of a question and answer service. The method relates to blockchain technology, and can write user information, question description information, and reply content into a blockchain.

Description

基于人工智能的问答方法、装置、服务器及存储介质Question answering method, device, server and storage medium based on artificial intelligence
本申请要求于2021年4月13日提交中国专利局、申请号为202110395698.1,发明名称为“基于人工智能的问答方法、装置、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on April 13, 2021 with the application number 202110395698.1 and the invention titled "An artificial intelligence-based question answering method, device, server and storage medium", the entire content of which is approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及计算机技术领域,尤其涉及人工智能技术领域,尤其涉及一种基于人工智能的问答方法、装置、服务器及存储介质。The present application relates to the field of computer technology, in particular to the field of artificial intelligence technology, and in particular to a question answering method, device, server and storage medium based on artificial intelligence.
背景技术Background technique
在电子商务、电子政务、企业信息化广泛发展的今天,各个网站或平台面临着海量客户咨询、客户服务、客户通知等需求。传统的人工服务的方式已经远远不能满足需求,近年来业界引入智能客服机器人等以解放人力提高效率。Today, with the extensive development of e-commerce, e-government, and enterprise informatization, various websites or platforms are faced with massive demands for customer consultation, customer service, and customer notification. The traditional manual service method is far from meeting the demand. In recent years, the industry has introduced intelligent customer service robots to liberate manpower and improve efficiency.
发明人发现,传统的智能客服机器人通过引入分词处理、词性标注,搭配不断丰富的语义知识库通过语义理解后进行问句式检索,从问答检索库中检索出答案进行答复。更智能一点的,如果无法检索出准确的答案,会对客户问句做匹配处理,根据相似度计算从众多候选结果中选取一条相对准确的答案进行答复。The inventors found that the traditional intelligent customer service robot uses word segmentation processing, part-of-speech tagging, and a constantly enriched semantic knowledge base to perform question-style retrieval after semantic understanding, and retrieves answers from the question-and-answer database to answer. More intelligently, if an accurate answer cannot be retrieved, it will match the customer's question, and select a relatively accurate answer from a number of candidate results according to the similarity calculation.
发明人意识到,面对业务发展变化较快的场景,以及需要对不同业务进行分级处理或对答复内容有个性化的需求时,这类机器人往往无法快速精确应对,问答服务质量较差。The inventor realized that in the face of rapid business development and changes, and when different businesses need to be graded or have personalized requirements for answering content, such robots are often unable to respond quickly and accurately, and the quality of Q&A services is poor.
技术问题technical problem
本申请实施例提供了一种基于人工智能的问答方法、装置、服务器及存储介质,可以提升问答服务质量。The embodiments of the present application provide a question and answer method, device, server and storage medium based on artificial intelligence, which can improve the quality of question and answer service.
技术解决方案technical solutions
第一方面,本申请实施例提供了一种基于人工智能的问答方法,包括:获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;根据所述用户信息获取所述目标用户的业务信息集合;利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;将所述意图识别结果转换为目标问答指令;根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。In a first aspect, an embodiment of the present application provides a question and answer method based on artificial intelligence, including: acquiring a question and answer request submitted by a first terminal, where the question and answer request carries user information and question description information of a target user; Obtain the business information set of the target user; identify the questioning intention of the target user by using the problem description information, and obtain an intent identification result; convert the intent identification result into a target question and answer instruction; according to the business information set and the target question answering instruction matches a target reply template for the target user; obtains reply content for the target user according to the target reply template, and outputs the reply content through the first terminal.
第二方面,本申请提供了一种基于人工智能的问答装置,包括:获取模块,用于获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;所述获取模块,还用于根据所述用户信息获取所述目标用户的业务信息集合;识别模块,用于利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;转换模块,用于将所述意图识别结果转换为目标问答指令;匹配模块,用于根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;所述获取模块,还用于根据所述目标答复模板获得针对所述目标用户的答复内容;通信模块,用于通过所述第一终端输出所述答复内容。In a second aspect, the present application provides an artificial intelligence-based question-and-answer device, comprising: an acquisition module configured to acquire a question-and-answer request submitted by a first terminal, where the question-and-answer request carries user information and question description information of a target user; the The acquisition module is further configured to acquire the business information set of the target user according to the user information; the identification module is configured to identify the questioning intention of the target user by using the problem description information to obtain an intention identification result; the conversion module , for converting the intent recognition result into a target question and answer instruction; a matching module, for matching out a target reply template for the target user according to the business information set and the target question and answer instruction; the acquisition module, also using obtaining the reply content for the target user according to the target reply template; the communication module is used for outputting the reply content through the first terminal.
第三方面,本申请实施例提供了一种服务器,包括处理器和存储器,所述处理器和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行以下方法:获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;根据所述用户信息获取所述目标用户的业务信息集合;利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;将所述意图识别结果转换为目标问答指令;根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。In a third aspect, an embodiment of the present application provides a server, including a processor and a memory, where the processor and the memory are connected to each other, wherein the memory is used to store a computer program, and the computer program includes program instructions, The processor is configured to invoke the program instruction and execute the following method: acquiring a question and answer request submitted by the first terminal, where the question and answer request carries user information and question description information of the target user; acquiring the question and answer request according to the user information; business information collection of the target user; use the problem description information to identify the questioning intention of the target user to obtain an intention identification result; convert the intention identification result into a target question and answer instruction; according to the business information collection and the The target question answering instruction matches a target reply template for the target user; obtains reply content for the target user according to the target reply template, and outputs the reply content through the first terminal.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现以下方法:获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;根据所述用户信息获取所述目标用户的业务信息集合;利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;将所述意图识别结果转换为目标问答指令;根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following method: obtaining a question and answer submitted by a first terminal The question and answer request carries the user information and question description information of the target user; obtains the business information set of the target user according to the user information; uses the question description information to identify the questioning intention of the target user, and obtains Intention recognition result; convert the intention recognition result into a target question answering instruction; match a target reply template for the target user according to the business information set and the target question answering instruction; obtain a target answer template according to the target answer template reply content of the user, and output the reply content through the first terminal.
有益效果beneficial effect
在面对业务发展变化较快的场景,以及需要对不同业务进行分级处理或对答复内容有个性化的需求时,本申请可以实时获取业务信息集合,并结合经由意图识别等技术获得的目标问答指令来匹配模板,从而生成答复内容,问答流程更加迅速,答复内容更加准确,有效提升了问答服务质量。In the face of rapid business development and changes, and the need for hierarchical processing of different businesses or individual requirements for response content, this application can obtain a collection of business information in real time, combined with the target question and answer obtained through technologies such as intent recognition Instructions are used to match templates, so as to generate answer content, the question and answer process is faster, the answer content is more accurate, and the quality of question and answer service is effectively improved.
附图说明Description of drawings
图1是本申请实施例提供的一种基于人工智能的问答方法的流程示意图。FIG. 1 is a schematic flowchart of an artificial intelligence-based question answering method provided by an embodiment of the present application.
图2a是本申请实施例提供的一种问答指令与答复模板的关系的示意图。FIG. 2a is a schematic diagram of a relationship between a question and answer instruction and a reply template provided by an embodiment of the present application.
图2b是本申请实施例提供的一种目标页面的示意图。FIG. 2b is a schematic diagram of a target page provided by an embodiment of the present application.
图2c是本申请实施例提供的另一种目标页面的示意图。FIG. 2c is a schematic diagram of another target page provided by an embodiment of the present application.
图2d是本申请实施例提供的另一种目标页面的示意图。FIG. 2d is a schematic diagram of another target page provided by an embodiment of the present application.
图2e是本申请实施例提供的另一种目标页面的示意图。FIG. 2e is a schematic diagram of another target page provided by an embodiment of the present application.
图2f是本申请实施例提供的一种问答过程的示意图。FIG. 2f is a schematic diagram of a question and answer process provided by an embodiment of the present application.
图3是本申请实施例提供的另一种基于人工智能的问答方法的流程示意图。FIG. 3 is a schematic flowchart of another question answering method based on artificial intelligence provided by an embodiment of the present application.
图4是本申请实施例提供的一种基于人工智能的问答装置的结构示意图。FIG. 4 is a schematic structural diagram of an artificial intelligence-based question answering device provided by an embodiment of the present application.
图5是本申请实施例提供的一种服务器的结构示意图。FIG. 5 is a schematic structural diagram of a server provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
本申请的技术方案可涉及人工智能技术领域,如可应用于智慧问答等场景中,以提升问答服务质量,从而推动智慧城市的建设。可选的,本申请涉及的数据如用户信息、答复模板和/或答复内容等可存储于数据库中,或者可以存储于区块链中,比如通过区块链分布式存储,本申请不做限定。The technical solution of the present application may relate to the field of artificial intelligence technology, for example, it can be applied to scenarios such as smart question and answer, so as to improve the quality of question and answer service, thereby promoting the construction of a smart city. Optionally, the data involved in this application, such as user information, reply templates and/or reply content, can be stored in a database, or can be stored in a blockchain, such as distributed storage through a blockchain, which is not limited in this application. .
请参阅图1,为本申请实施例提供的一种基于人工智能的问答方法的流程示意图。该方法可以应用于服务器。服务器可以为一个服务器或服务器集群。具体地,该方法可以包括以下步骤。Please refer to FIG. 1 , which is a schematic flowchart of an artificial intelligence-based question answering method according to an embodiment of the present application. This method can be applied to the server. The server can be a server or a cluster of servers. Specifically, the method may include the following steps.
S101、获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息。S101. Obtain a question and answer request submitted by a first terminal, where the question and answer request carries user information and question description information of a target user.
其中,第一终端可以为智能手机、平板电脑、笔记本电脑、自助服务终端、机器人,如设置于商场的智能问答机器人等设备。目标用户可以是第一终端对应的用户。The first terminal may be a smart phone, a tablet computer, a notebook computer, a self-service terminal, a robot, such as an intelligent question answering robot installed in a shopping mall. The target user may be a user corresponding to the first terminal.
其中,用户信息可以包括用户标识信息。用户标识信息为用于唯一标识目标用户的信息,包括但不限于以下任一项:用户昵称、用户账号、用户手机号,The user information may include user identification information. User identification information is the information used to uniquely identify the target user, including but not limited to any of the following: user nickname, user account, user mobile phone number,
其中,问题描述信息包括问题描述语句。在一个实施例中,问题描述信息可以包括问题描述语句和问题上下文信息,问题上下文信息可以包括问答请求的ID(用于唯一标识一个问答请求)以及问答轮次(比如第1轮、第2轮)。The problem description information includes a problem description sentence. In one embodiment, the question description information may include question description sentences and question context information, and the question context information may include an ID of the question and answer request (used to uniquely identify a question and answer request) and question and answer rounds (such as round 1, round 2) ).
在一个实施例中,第一终端提交的问答请求可以是第一终端通过其它服务器转发至服务器的,或还可以是由第一终端发送至服务器的。In one embodiment, the question and answer request submitted by the first terminal may be forwarded to the server by the first terminal through another server, or may also be sent to the server by the first terminal.
在一个应用场景中,问答请求可以是第一终端在检测到目标用户对发送按钮的点击操作后,获得目标用户输入问题描述语句,根据该问题描述语句生成的。或,问答请求还可以是第一终端在检测到目标用户对发送按钮的点击操作后,获得目标用户从已有的答复内容选取的目标答复内容后,根据该目标答复内容生成的,该目标答复内容可以是聊天界面已经显示的某条答复内容。In an application scenario, the question-and-answer request may be generated by the first terminal after detecting the click operation of the send button by the target user, obtaining a question description sentence input by the target user, and generating the question description sentence. Or, the question and answer request may also be generated according to the target reply content after the first terminal detects the click operation of the target user on the send button and obtains the target reply content selected by the target user from the existing reply content. The content may be a certain reply content that has been displayed on the chat interface.
S102、根据所述用户信息获取所述目标用户的业务信息集合。S102. Acquire the service information set of the target user according to the user information.
本申请实施例中,服务器可以根据用户信息查询出目标用户的业务信息集合,例如,服务器可以根据用户信息从指定数据库中或目标业务系统中查询出目标用户的业务信息集合。其中,用于访问目标业务系统的链接地址可以是基于第一插件模板配置的。其中,根据用户使用或咨询的业务的不同,获取的业务信息集合也存在不同。例如,对于贷款业务,业务信息集合可以包括放款金额、放款时间、还款期数、还款金额等业务信息;对于客服业务,业务信息集合可以包括服务日期、用户诉求、用户态度等业务信息 In this embodiment of the present application, the server may query the target user's service information set according to the user information. For example, the server may query the target user's service information set from a specified database or target service system according to the user information. The link address for accessing the target business system may be configured based on the first plug-in template. Wherein, according to the different services used or consulted by the user, the acquired service information sets are also different. For example, for loan business, the business information set may include loan amount, loan time, repayment period, repayment amount and other business information; for customer service business, the business information set may include service date, user appeal, user attitude and other business information .
S103、利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果。S103: Identify the questioning intent of the target user by using the question description information to obtain an intent identification result.
S104、将所述意图识别结果转换为目标问答指令。S104. Convert the intent recognition result into a target question answering instruction.
其中,意图识别结果可以包括至少一个表明目标用户的提问意图的关键词。目标问答指令指根据所述的意图识别结果转换得到的问答指令。目标问答指令可以是字符串。在一个实施例中,目标问答指令可以为指示了该问题描述信息对应的业务领域的字符串,该字符串由数字和/或字母构成。Wherein, the intent recognition result may include at least one keyword indicating the questioning intent of the target user. The target question-and-answer instruction refers to the question-and-answer instruction converted according to the intent recognition result. The target question answering instruction can be a string. In one embodiment, the target question answering instruction may be a character string indicating a business field corresponding to the question description information, and the character string is composed of numbers and/or letters.
本申请实施例中,服务器利用问题描述信息对目标用户的提问意图进行识别,得到意图识别结果的方式可以为:服务器调用意图识别模型根据问题描述信息对目标用户的提问意图进行识别,得到意图识别结果。In the embodiment of the present application, the server uses the problem description information to identify the questioning intention of the target user, and the method of obtaining the intention recognition result may be: the server invokes the intention recognition model to identify the questioning intention of the target user according to the problem description information, and obtains the intention identification result.
在一个实施例中,服务器将所述意图识别结果转换为目标问答指令的方式可以为:服务器根据关键词与问答指令的对应关系,确定意图识别结果对应的目标问答指令。In one embodiment, the server converts the intent recognition result into the target question answering instruction may be: the server determines the target question answering instruction corresponding to the intent identification result according to the correspondence between the keyword and the question answering instruction.
在一个实施例中,服务器还可以将问题描述信息发送至指定设备(如指定机器人),触发指定设备利用问题描述信息对目标用户的提问意图进行识别,得到意图识别结果,并将该意图识别结果转换为目标问答指令,接收指定设备返回的目标问答指令。In one embodiment, the server may also send question description information to a specified device (such as a specified robot), triggering the specified device to use the question description information to identify the questioning intent of the target user, obtain an intent identification result, and use the intent identification result Convert it to a target question and answer command, and receive the target question and answer command returned by the specified device.
S105、根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板。S105. Match a target reply template for the target user according to the service information set and the target question answering instruction.
其中,目标答复模板指为目标用户匹配出的答复模板。The target reply template refers to a reply template matched for the target user.
在一个实施例中,服务器可以根据问答指令与答复模板的对应关系,确定目标问答指令对应的答复模板作为目标答复模板。In one embodiment, the server may determine, according to the correspondence between the question and answer instruction and the answer template, the answer template corresponding to the target question and answer instruction as the target answer template.
在一个实施例中,服务器可以确定目标问答指令对应的使用条件,在该使用条件满足时,获取目标答复模板。该使用条件可以用于判断是否可以使用目标答复模板,或还可以用于确定具体使用哪一种答复模板作为目标答复模板。In one embodiment, the server may determine a use condition corresponding to the target question and answer instruction, and obtain the target reply template when the use condition is satisfied. The usage condition can be used to judge whether the target reply template can be used, or can also be used to determine which reply template is specifically used as the target reply template.
在一个实施例中,在该使用条件为基于条件表达式设置的使用条件时,服务器可以获取目标问答指令对应的条件表达式,并根据该业务信息集合以及该条件表达式获取目标答复模板。In one embodiment, when the usage condition is a usage condition set based on a conditional expression, the server may acquire the conditional expression corresponding to the target question and answer instruction, and acquire the target reply template according to the service information set and the conditional expression.
在一个实施例中,服务器可以获取该目标问答指令对应的条件表达式,并将该业务信息集合中各业务信息代入该条件表达式以进行运算,得到运算结果;服务器确定该运算结果对应的答复模板,并将该运算结果对应的答复模板确定为目标答复模板。不同运算结果对应不同的答复模板,例如,参见图2a,一条运算指令可以对应的4个答复模板。此处可以将得到的运算结果所对应的答复模板确定为目标答复模板。本申请实施例附图中的“*”这个符号,隐藏了对应的字符(如数字或字母),在实际应用过程上该符号所在位置显示的为对应的字符(如数字或字母)。In one embodiment, the server may obtain the conditional expression corresponding to the target question and answer instruction, and substitute each service information in the service information set into the conditional expression for operation to obtain the operation result; the server determines the reply corresponding to the operation result template, and determine the response template corresponding to the operation result as the target response template. Different operation results correspond to different reply templates. For example, referring to FIG. 2a, one operation instruction may correspond to 4 reply templates. Here, the reply template corresponding to the obtained operation result can be determined as the target reply template. The symbol "*" in the drawings of the embodiments of the present application hides the corresponding characters (such as numbers or letters), and in the actual application process, the corresponding characters (such as numbers or letters) are displayed at the location of the symbol.
在一个实施例中,服务器可以通过第二终端输出目标页面,目标页面为能够配置问答指令、使用条件以及答复模板的页面。第二终端可以基于该目标页面配置目标问答指令、以及目标问答指令对应的使用条件以及答复模板。在第二终端配置完成目标问答指令、以及目标问答指令对应的使用条件以及答复模板后,服务器可以获取目标问答指令、以及目标问答指令对应的使用条件以及答复模板,并保存目标问答指令、以及目标问答指令对应的使用条件以及答复模板。在一个实施例中,第二终端可以为能够使用服务器的开发人员对应的终端,或还可以是目标业务系统对应的管理人员对应的终端,等等。其中,第二终端可以为台式电脑、笔记本电脑、膝上计算机,等等。In one embodiment, the server may output a target page through the second terminal, where the target page is a page capable of configuring question-and-answer instructions, usage conditions, and reply templates. Based on the target page, the second terminal may configure the target question-and-answer instruction, as well as the usage condition and reply template corresponding to the target question-and-answer instruction. After the second terminal completes the configuration of the target question and answer instruction, the use condition and the reply template corresponding to the target question and answer instruction, the server can obtain the target question and answer instruction, the use condition and the reply template corresponding to the target question and answer instruction, and save the target question and answer instruction, and the target question and answer instruction. The usage conditions and response templates corresponding to the question and answer command. In one embodiment, the second terminal may be a terminal corresponding to a developer who can use the server, or may also be a terminal corresponding to an administrator corresponding to the target business system, and so on. Wherein, the second terminal may be a desktop computer, a notebook computer, a laptop computer, and so on.
在一个实施例中,目标页面可以为如图2b-图2c所示的页面,第二终端可以显示该页面,第二终端对应的用户可以基于该页面配置目标问答指令、以及目标问答指令对应的使用条件以及答复模板,第二终端对应的用户在配置完成后,可以点击页面上的确定按钮以将目标问答指令、以及目标问答指令对应的使用条件以及答复模板发送至服务器,服务器可以接收目标问答指令、以及目标问答指令对应的使用条件以及答复模板,并保存目标问答指令、以及目标问答指令对应的使用条件以及答复模板。目标页面包括问答指令输入区域、使用条件输入区域、答复模板输入区域。其中,问答指令输入区域用于输入问答指令,如目标问答指令。使用条件输入区域用于输入条件表达式。答复模板输入区域用于输入答复模板。在一个实施例中,使用条件输入区域在用于设置条件表达式时,可以用于输入运算符以及运算符两边的比较值。在一个实施例中,目标页面还可以包括状态选择选项,包括状态有效选项和状态无效选项,以便后续在确定设置的为有效状态时,判断使用条件是否满足。In one embodiment, the target page may be a page as shown in FIG. 2b to FIG. 2c, the second terminal may display the page, and the user corresponding to the second terminal may configure the target question and answer instruction based on the page, and the corresponding target question and answer instruction Use conditions and reply templates. After the configuration is completed, the user corresponding to the second terminal can click the OK button on the page to send the target question and answer instruction, the usage conditions and reply template corresponding to the target question and answer instruction to the server, and the server can receive the target question and answer. The instruction, as well as the use conditions and response templates corresponding to the target question and answer instructions, and save the target question and answer instructions, as well as the use conditions and answer templates corresponding to the target question and answer instructions. The target page includes a question and answer instruction input area, a use condition input area, and a reply template input area. The question and answer instruction input area is used to input question and answer instructions, such as target question and answer instructions. Use the conditional input area to enter conditional expressions. The reply template input area is used to enter reply templates. In one embodiment, when the conditional input area is used to set the conditional expression, it can be used to input the operator and the comparison value on both sides of the operator. In one embodiment, the target page may further include a status selection option, including a status valid option and a status invalid option, so that when it is determined that the setting is valid, it is determined whether the usage condition is satisfied.
在一个实施例中,服务器可以通过第二终端输出第一页面,第一页面包括多个问答指令,多个问答指令包括目标问答指令。服务器在检测到该第二终端发送的对目标问答指令的选择指令后,通过该第二终端输出第二页面,以便该第二终端基于该第二页面配置目标问答指令对应的条件表达式和答复模板。服务器获取该目标问答指令对应的条件表达式和答复模板,并保存该目标问答指令对应的条件表达式和答复模板。第二页面包括问答指令显示区域、条件表达式输入区域、答复模板输入区域。此处的第二页面,其问答指令显示区域显示的为目标问答指令。在一个实施例中,该问答指令显示区域可以不响应问答指令输入操作,即第二终端对应的用户将不能基于该问答指令显示区域执行问答指令输入操作。在一个实施例中,使用条件输入区域在用于设置条件表达式时,可以用于输入运算符以及运算符两边的比较值。在一个实施例中,第二页面还可以包括状态选择选项,包括状态有效选项和状态无效选项,以便后续在确定设置的为有效状态时,判断使用条件是否满足。其中,第二页面的示例也可以参见图2b-图2c。第二页面虽然与目标页面的样式可以一致,但是二者在问答指令显示区域和问答指令输入区域的功能存在差异。In one embodiment, the server may output a first page through the second terminal, where the first page includes multiple question and answer instructions, and the multiple question and answer instructions include target question and answer instructions. After detecting the selection instruction for the target question and answer instruction sent by the second terminal, the server outputs a second page through the second terminal, so that the second terminal configures the conditional expression and reply corresponding to the target question and answer instruction based on the second page template. The server acquires the conditional expression and the reply template corresponding to the target question and answer instruction, and saves the conditional expression and the reply template corresponding to the target question and answer instruction. The second page includes a question and answer instruction display area, a conditional expression input area, and a reply template input area. On the second page here, the target question and answer instructions are displayed in the question and answer instruction display area. In one embodiment, the question and answer instruction display area may not respond to the question and answer instruction input operation, that is, the user corresponding to the second terminal will not be able to perform the question and answer instruction input operation based on the question and answer instruction display area. In one embodiment, when the conditional input area is used to set the conditional expression, it can be used to input the operator and the comparison value on both sides of the operator. In one embodiment, the second page may further include a status selection option, including a status valid option and a status invalid option, so that when it is determined that the setting is valid, it is determined whether the usage condition is satisfied. Wherein, examples of the second page can also refer to FIG. 2b-FIG. 2c. Although the style of the second page and the target page may be consistent, there are differences in the functions of the two in the question and answer instruction display area and the question and answer instruction input area.
在一个实施例中,服务器通过该第二终端输出第二页面的方式具体为服务器查找第二插件模板,该第二插件模板包括该第二页面的页面代码。服务器将该第二插件模板发送至该第二终端,以便该第二终端根据该第二插件模板生成该第二页面,并输出该第二页面。此处,第二插件模板能够以页面插件的方式嵌入第二终端。In one embodiment, the manner in which the server outputs the second page through the second terminal is specifically that the server searches for a second plug-in template, where the second plug-in template includes the page code of the second page. The server sends the second plug-in template to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page. Here, the second plug-in template can be embedded in the second terminal in the form of a page plug-in.
在一个实施例中,在使用条件为基于预设值,如通用答复设置的使用条件时,服务器可以获取该目标问答指令对应的答复模板作为目标答复模板。相较于基于条件表达式设置的使用条件,基于预设值设置的使用条件,无需执行条件的判断。例如,目标页面或第二页面还可以参见图2d-图2e所示的页面,目标页面与第二页面存在上述的区别。由图2d-图2e所示的页面可以看出使用条件为通用答复。In one embodiment, when the use condition is based on a preset value, such as a use condition set by a general answer, the server may acquire a reply template corresponding to the target question-answer instruction as the target reply template. Compared with the usage condition set based on the conditional expression, the usage condition set based on the preset value does not need to perform conditional judgment. For example, the target page or the second page may also refer to the pages shown in FIG. 2d to FIG. 2e, and the target page and the second page have the above differences. From the pages shown in Figures 2d-2e, it can be seen that the conditions of use are generic responses.
S106、根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。S106: Obtain reply content for the target user according to the target reply template, and output the reply content through the first terminal.
在一个实施例中,服务器可以将目标答复模板确定为对所述目标用户的答复内容。In one embodiment, the server may determine the target reply template as the reply content to the target user.
在一个实施例中,服务器可以识别目标答复模板的类型,在目标答复模板为通用模板时,将目标答复模板确定为对目标用户的答复内容。In one embodiment, the server may identify the type of the target reply template, and when the target reply template is a general template, determine the target reply template as the reply content to the target user.
在一个实施例中,服务器可以在目标答复模板为替换模板时,利用业务信息集合中的各业务信息替换该业务信息在该目标答复模板中对应的业务变量,得到替换后的答复模板,将替换后的答复模板确定为对目标用户的答复内容。In one embodiment, when the target reply template is a replacement template, the server may use each service information in the service information set to replace the service variable corresponding to the service information in the target reply template, and obtain a replaced reply template, which will replace the The subsequent reply template is determined as the reply content to the target user.
在一个实施例中,服务器可以在目标答复模板为循环模板时,多次利用业务信息集合中的各业务信息替换该业务信息在该目标答复模板中对应的业务变量,得到多个替换后的答复模板,并将多个替换后的答复模板进行合并,得到合并的答复模板,并将合并后的答复模板确定为对目标用户的答复内容。In one embodiment, when the target reply template is a circular template, the server may use each service information in the service information set to replace the service variable corresponding to the service information in the target reply template multiple times to obtain multiple replaced replies template, and merge multiple replaced reply templates to obtain a merged reply template, and determine the merged reply template as the reply content to the target user.
例如,参见图2f,假设目标用户有8笔贷款数据,而对应配置的答案模板是:申请时间:【申请时间】,产品:【产品名称】,贷款金额:【贷款金额】。服务器可以在目标答复模板为循环模板时,循环处理目标用户的每一条(此例为8条)贷款数据,并利用每一条贷款数据替换答案模板中的业务变量,得到8个填充后的答案模板(第N条贷款数据对应序号N),最终8条填充后的答案模板再合成一个完整的答复模板作为对目标用户的答案内容。For example, referring to Figure 2f, suppose the target user has 8 loan data, and the corresponding configured answer template is: application time: [application time], product: [product name], loan amount: [loan amount]. When the target answer template is a loop template, the server can process each piece of loan data (8 pieces in this example) of the target user in a loop, and use each piece of loan data to replace the business variables in the answer template to obtain 8 filled answer templates (The Nth loan data corresponds to the serial number N), and finally the 8 filled answer templates are combined into a complete answer template as the answer content to the target user.
可见,图1实施例中,服务器可以获取第一终端提交的问答请求,问答请求携带目标用户的用户信息和问题描述信息;服务器可以根据用户信息获取目标用户的业务信息集合,并利用问题描述信息获取关于目标用户的意图识别结果;服务器可以将意图识别结果转换为目标问答指令,并根据业务信息集合以及目标问答指令为目标用户匹配出目标答复模板,从而根据目标答复模板获得针对目标用户的答复内容,并通过第一终端输出所述答复内容,该过程可以有效提升问答服务质量。It can be seen that in the embodiment of FIG. 1, the server can obtain the question and answer request submitted by the first terminal, and the question and answer request carries the user information and question description information of the target user; the server can obtain the target user's business information set according to the user information, and use the question description information. Obtain the intent recognition result about the target user; the server can convert the intent recognition result into a target question and answer instruction, and match a target reply template for the target user according to the business information set and the target question answer instruction, so as to obtain a reply for the target user according to the target reply template content, and output the reply content through the first terminal, this process can effectively improve the quality of the question and answer service.
请参阅图3,为本申请实施例提供的另一种基于人工智能的问答方法的流程示意图。该方法可以应用于服务器。服务器可以为一个服务器或服务器集群。具体地,该方法可以包括以下步骤。Please refer to FIG. 3 , which is a schematic flowchart of another question-answering method based on artificial intelligence provided by an embodiment of the present application. This method can be applied to the server. The server can be a server or a cluster of servers. Specifically, the method may include the following steps.
S301、获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息,所述用户信息包括用户标识信息和业务系统指示信息。S301. Obtain a question and answer request submitted by a first terminal, where the question and answer request carries user information and question description information of a target user, and the user information includes user identification information and service system indication information.
其中,用户标识信息为用于唯一标识目标用户的信息,包括但不限于以下任一项:用户昵称、用户账号、用户手机号,业务系统指示信息为能够用于确定目标业务系统的指示信息,例如业务系统指示信息可以为目标业务系统的标识信息或是业务提供方(如企业)注册的应用账号。其中,目标业务系统的标识信息为用于唯一目标业务系统的信息,例如目标业务系统的标识信息可以为xx业务系统,或者xx业务。业务提供方注册的应用账号不为业务系统的标识信息,例如业务提供方注册的应用账号可以为业务提供方在公众号平台注册的公众号。Wherein, the user identification information is information used to uniquely identify the target user, including but not limited to any of the following: user nickname, user account, user mobile phone number, service system indication information is the indication information that can be used to determine the target service system, For example, the service system indication information may be identification information of the target service system or an application account registered by a service provider (eg, an enterprise). Wherein, the identification information of the target service system is information used for a unique target service system, for example, the identification information of the target service system may be xx service system or xx service. The application account registered by the service provider is not the identification information of the service system. For example, the application account registered by the service provider may be the public account registered by the service provider on the public account platform.
S302、根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,所述目标业务系统为所述业务系统指示信息指示的业务系统。S302. Acquire the service information set of the target user from the target service system according to the user identification information, where the target service system is the service system indicated by the service system indication information.
在一个实施例中,服务器根据该用户标识信息从目标业务系统中获取该目标用户的业务信息集合,可以为服务器根据该业务系统指示信息查询出用于访问该目标业务系统的链接地址,并对该用户标识信息以及该链接地址进行拼接处理,得到拼接的链接地址,从而根据该拼接的链接地址从该目标业务系统中获取该目标用户的业务信息集合。在一个实施例中,所述链接地址可以为用于访问目标业务系统的各个用户的业务信息集合的链接地址。In one embodiment, the server obtains the service information set of the target user from the target service system according to the user identification information, and can query the link address for accessing the target service system for the server according to the service system indication information, and perform a query on the target service system for the server. The user identification information and the link address are spliced to obtain a spliced link address, so as to obtain the target user's service information set from the target service system according to the spliced link address. In one embodiment, the link address may be a link address for accessing the business information set of each user of the target business system.
在一个实施例中,服务器可以查找第一插件模板,该第一插件模板包括链接地址配置页面的页面代码。第一插件模板可以以页面插件形式嵌入目标业务系统。服务器将该第一插件模板发送至目标业务系统,以便该目标业务系统基于该第一插件模板配置用于访问该目标业务系统的链接地址。服务器接收该目标业务系统返回的用于访问该目标业务系统的链接地址,并保存该用于访问该目标业务系统的链接地址。在一个应用场景中,服务器可以查找第一插件模板,然后将第一插件模板发送至目标业务系统,目标业务系统的管理人员可以访问目标业务系统,并查看基于第一插件模板生成的链接地址配置页面,然后基于该链接地址配置页面配置目标业务系统的链接地址,具体可以配置用于访问标业务系统的各个用户的业务信息集合的链接地址,然后将配置的链接地址返回至目标业务系统,目标业务系统可以将该链接地址转发至服务器。In one embodiment, the server may look up a first plug-in template, where the first plug-in template includes page code of a link address configuration page. The first plug-in template may be embedded in the target business system in the form of a page plug-in. The server sends the first plug-in template to the target service system, so that the target service system configures a link address for accessing the target service system based on the first plug-in template. The server receives the link address for accessing the target business system returned by the target business system, and stores the link address for accessing the target business system. In an application scenario, the server can search for the first plug-in template, and then send the first plug-in template to the target business system. The administrator of the target business system can access the target business system and view the link address configuration generated based on the first plug-in template. page, and then configure the link address of the target business system based on the link address configuration page. Specifically, you can configure the link address for accessing the business information collection of each user of the target business system, and then return the configured link address to the target business system. The business system can forward the link address to the server.
S303、利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果。S303: Identify the questioning intent of the target user by using the question description information, and obtain an intent identification result.
S304、将所述意图识别结果转换为目标问答指令。S304. Convert the intent recognition result into a target question and answer instruction.
S305、根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板。S305. Match out a target reply template for the target user according to the service information set and the target question answering instruction.
S306、根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。S306: Obtain reply content for the target user according to the target reply template, and output the reply content through the first terminal.
其中,步骤S303-步骤S306可参见步骤S103-步骤S106,在此不做赘述。Wherein, step S303-step S306 may refer to step S103-step S106, which will not be repeated here.
在一个实施例中,若前述提及的问题描述信息不包含问题上下文信息,则服务器可以初始化一个问题上下文信息,并将该问题上下文信息发送至第一终端。若问题描述信息包含问题上下文信息,则对更新保存的问题上下文信息,并将答复内容以及更新后的问题上下文信息(包括新的问答请求的ID,以及更新后的问答轮次)发送至第一终端,以便用户终端根据更新后的问题上下文信息提交新的问答请求。In one embodiment, if the aforementioned problem description information does not include problem context information, the server may initialize a problem context information, and send the problem context information to the first terminal. If the question description information includes question context information, update the saved question context information, and send the reply content and the updated question context information (including the ID of the new question and answer request and the updated question and answer round) to the first terminal, so that the user terminal submits a new question and answer request according to the updated question context information.
可见,图3所示的实施例中,服务器可以获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息,用户信息包括用户标识信息和业务系统指示信息;服务器根据用户标识信息从目标业务系统中获取目标用户的业务信息集合,目标业务系统为业务系统指示信息指示的业务系统;服务器利用问题描述信息对目标用户的提问意图进行识别,得到意图识别结果,并将意图识别结果转换为目标问答指令,从而根据业务信息集合以及目标问答指令为目标用户匹配出目标答复模板,并根据目标答复模板获得针对目标用户的答复内容,并通过第一终端输出答复内容,该过程可以在问答过程中根据实际问答的业务有效对接相应的业务系统以获取用户的业务信息集合,其答复内容将覆盖更多的业务场景,满足用户针对不同业务的问答需求,提升问答服务的质量。It can be seen that in the embodiment shown in FIG. 3, the server can obtain the question and answer request submitted by the first terminal, and the question and answer request carries the user information and question description information of the target user, and the user information includes user identification information and business system indication information; the server Obtain the business information set of the target user from the target business system according to the user identification information, and the target business system is the business system indicated by the business system indication information; the server uses the problem description information to identify the questioning intent of the target user, obtains the intent identification result, and Converting the intent recognition result into a target question and answer instruction, so as to match a target reply template for the target user according to the business information set and the target question answer instruction, and obtain the reply content for the target user according to the target reply template, and output the reply content through the first terminal, This process can effectively connect the corresponding business system according to the actual question and answer business in the question and answer process to obtain the user's business information set. quality.
本申请涉及区块链技术,如该问答请求可以是第一终端通过区块链网络发送至服务器的,相应的,答复内容也可以通过区块链网络发送至第一终端。或,服务器可将用户信息、问题描述信息以及答复内容写入区块链中。写入区块链的这些数据可以用于后续的问答服务质量的确定,或后续的故障排查。This application involves blockchain technology. For example, the question and answer request may be sent by the first terminal to the server through the blockchain network, and correspondingly, the content of the reply may also be sent to the first terminal through the blockchain network. Or, the server can write user information, question description information, and reply content into the blockchain. These data written to the blockchain can be used for subsequent question-and-answer service quality determination, or subsequent troubleshooting.
请参阅图4,为本申请实施例提供的一种基于人工智能的问答装置的结构示意图。该问答装置可以应用于服务器。具体地,该问答装置可以包括:获取模块401,用于获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息。获取模块401,还用于根据所述用户信息获取所述目标用户的业务信息集合。识别模块402,用于利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果。转换模块403,用于将所述意图识别结果转换为目标问答指令。匹配模块404,用于根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板。获取模块401,还用于根据所述目标答复模板获得针对所述目标用户的答复内容。通信模块405,用于通过所述第一终端输出所述答复内容。Please refer to FIG. 4 , which is a schematic structural diagram of an artificial intelligence-based question answering device according to an embodiment of the present application. The question answering device can be applied to the server. Specifically, the question and answer apparatus may include: an acquisition module 401, configured to acquire a question and answer request submitted by a first terminal, where the question and answer request carries user information and question description information of a target user. The obtaining module 401 is further configured to obtain the service information set of the target user according to the user information. The identification module 402 is configured to identify the questioning intention of the target user by using the question description information, and obtain an intention identification result. The conversion module 403 is configured to convert the intent recognition result into a target question and answer instruction. The matching module 404 is configured to match a target reply template for the target user according to the service information set and the target question answering instruction. The obtaining module 401 is further configured to obtain the reply content for the target user according to the target reply template. The communication module 405 is configured to output the reply content through the first terminal.
在一种可选的实施方式中,所述用户信息包括用户标识信息和业务系统指示信息,获取模块401根据所述用户信息获取所述目标用户的业务信息集合,具体为根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,所述目标业务系统为所述业务系统指示信息指示的业务系统。In an optional implementation manner, the user information includes user identification information and service system indication information, and the obtaining module 401 obtains the service information set of the target user according to the user information, specifically according to the user identification information The service information set of the target user is acquired from the target service system, where the target service system is the service system indicated by the service system indication information.
在一种可选的实施方式中,获取模块401根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,具体为根据所述业务系统指示信息查询出用于访问所述目标业务系统的链接地址;对所述用户标识信息以及所述链接地址进行拼接处理,得到拼接的链接地址;根据所述拼接的链接地址从所述目标业务系统中获取所述目标用户的业务信息集合。In an optional implementation manner, the obtaining module 401 obtains the service information set of the target user from the target service system according to the user identification information, specifically querying the service information set for accessing the target user according to the service system indication information The link address of the target business system; perform splicing processing on the user identification information and the link address to obtain a spliced link address; obtain the target user's business information from the target business system according to the spliced link address gather.
在一种可选的实施方式中,所述问答装置还包括查找模块406和存储模块407。In an optional implementation manner, the question and answer apparatus further includes a search module 406 and a storage module 407 .
在一种可选的实施方式中,查找模块406,用于查找第一插件模板,所述第一插件模板包括链接地址配置页面的页面代码。In an optional implementation manner, the search module 406 is configured to search for a first plug-in template, where the first plug-in template includes page code of a link address configuration page.
在一种可选的实施方式中,通信模块405,还用于将所述第一插件模板发送至所述目标业务系统,以便所述目标业务系统基于所述第一插件模板配置用于访问所述目标业务系统的链接地址。In an optional implementation manner, the communication module 405 is further configured to send the first plug-in template to the target service system, so that the target service system is configured to access the target service system based on the first plug-in template. Describe the link address of the target business system.
在一种可选的实施方式中,通信模块405,还用于接收所述目标业务系统返回的用于访问所述目标业务系统的链接地址。In an optional implementation manner, the communication module 405 is further configured to receive a link address returned by the target service system for accessing the target service system.
在一种可选的实施方式中,存储模块407,用于保存所述用于访问所述目标业务系统的链接地址。In an optional implementation manner, the storage module 407 is configured to store the link address for accessing the target service system.
在一种可选的实施方式中,匹配模块404根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板,具体为获取所述目标问答指令对应的条件表达式;将所述业务信息集合中各业务信息代入所述条件表达式以进行运算,得到运算结果;确定所述运算结果对应的答复模板,并将所述运算结果对应的答复模板确定为目标答复模板。In an optional implementation manner, the matching module 404 matches a target reply template for the target user according to the business information set and the target question and answer instruction, and specifically acquires a conditional expression corresponding to the target question and answer instruction; Substitute each service information in the service information set into the conditional expression for operation to obtain an operation result; determine a reply template corresponding to the operation result, and determine the reply template corresponding to the operation result as a target reply template.
在一种可选的实施方式中,通信模块405,还用于通过第二终端输出第一页面,所述第一页面包括多个问答指令,所述多个问答指令包括所述目标问答指令,并在检测到所述第二终端发送的对所述目标问答指令的选择指令后,通过所述第二终端输出第二页面,以便所述第二终端基于所述第二页面配置目标问答指令对应的条件表达式和答复模板。In an optional implementation manner, the communication module 405 is further configured to output a first page through the second terminal, where the first page includes multiple question and answer instructions, and the multiple question and answer instructions include the target question and answer instruction, And after detecting the selection instruction for the target question and answer instruction sent by the second terminal, output a second page through the second terminal, so that the second terminal configures the target question and answer instruction corresponding to the second page based on the second page. conditional expressions and reply templates.
在一种可选的实施方式中,获取模块401,还用于获取所述目标问答指令对应的条件表达式和答复模板。In an optional implementation manner, the obtaining module 401 is further configured to obtain a conditional expression and a reply template corresponding to the target question and answer instruction.
在一种可选的实施方式中,存储模块407,还用于保存所述第二终端为所述目标问答指令配置的条件表达式和答复模板。In an optional implementation manner, the storage module 407 is further configured to save a conditional expression and a reply template configured by the second terminal for the target question answering instruction.
在一种可选的实施方式中,通信模块405通过所述第二终端输出第二页面,包括:通过查找模块406查找第二插件模板,所述第二插件模板包括所述第二页面的页面代码;将所述第二插件模板发送至所述第二终端,以便所述第二终端根据所述第二插件模板生成所述第二页面,并输出所述第二页面。In an optional implementation manner, the communication module 405 outputting the second page through the second terminal includes: searching through the search module 406 for a second plug-in template, where the second plug-in template includes a page of the second page code; sending the second plug-in template to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page.
可见,图4所示的实施例中,问答装置可以获取第一终端提交的问答请求,问答请求携带目标用户的用户信息和问题描述信息;问答装置可以根据用户信息获取目标用户的业务信息集合,并利用问题描述信息获取关于目标用户的意图识别结果;问答装置可以将意图识别结果转换为目标问答指令,并根据业务信息集合以及目标问答指令为目标用户匹配出目标答复模板,从而根据目标答复模板获得针对目标用户的答复内容,并通过第一终端输出所述答复内容,该过程可以有效提升问答服务质量。It can be seen that in the embodiment shown in FIG. 4 , the question and answer device can obtain the question and answer request submitted by the first terminal, and the question and answer request carries the user information and question description information of the target user; the question and answer device can obtain the target user's business information set according to the user information, And use the question description information to obtain the intent recognition result about the target user; the question answering device can convert the intent recognition result into a target question and answer instruction, and match a target reply template for the target user according to the business information set and the target question and answer instruction, so that according to the target answer template Obtaining the reply content for the target user, and outputting the reply content through the first terminal, this process can effectively improve the quality of the question and answer service.
请参阅图5,为本申请实施例提供的一种服务器的结构示意图。本实施例中所描述的服务器可以包括:一个或多个处理器1000和存储器2000。处理器1000和存储器2000可以通过总线等方式连接。Please refer to FIG. 5 , which is a schematic structural diagram of a server according to an embodiment of the present application. The server described in this embodiment may include: one or more processors 1000 and a memory 2000 . The processor 1000 and the memory 2000 may be connected through a bus or the like.
处理器1000可以是中央处理模块(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 1000 may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC) , Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
存储器2000可以是高速RAM存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。存储器2000用于存储一组程序代码,处理器1000可以调用存储器2000中存储的程序代码。具体地:处理器1000,用于获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;根据所述用户信息获取所述目标用户的业务信息集合;利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;将所述意图识别结果转换为目标问答指令;根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。The memory 2000 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a disk memory. The memory 2000 is used to store a set of program codes, and the processor 1000 can call the program codes stored in the memory 2000 . Specifically: the processor 1000 is configured to obtain a question and answer request submitted by the first terminal, where the question and answer request carries the user information and question description information of the target user; obtain the service information set of the target user according to the user information; The question description information is used to identify the questioning intention of the target user, and an intention identification result is obtained; the intention identification result is converted into a target question and answer instruction; according to the business information set and the target question answer instruction, the target user is matched outputting a target reply template; obtaining reply content for the target user according to the target reply template, and outputting the reply content through the first terminal.
在一个实施例中,本申请中所描述的服务器还可以包括通信接口(图5未示)。通信接口可以为标准的有线或无线通信接口。In one embodiment, the server described in this application may also include a communication interface (not shown in FIG. 5 ). The communication interface can be a standard wired or wireless communication interface.
在一个实施例中,处理器1000可以通过通信接口将答复内容发送至第一终端,以便第一终端显示所述答复内容。In one embodiment, the processor 1000 may send the reply content to the first terminal through the communication interface, so that the first terminal displays the reply content.
在一个实施例中,所述用户信息包括用户标识信息和业务系统指示信息,处理器1000根据所述用户信息获取所述目标用户的业务信息集合,具体为根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,所述目标业务系统为所述业务系统指示信息指示的业务系统。In one embodiment, the user information includes user identification information and service system indication information, and the processor 1000 obtains the target user's service information set according to the user information, specifically, according to the user identification information from the target service system The service information set of the target user is obtained in the target service system, and the target service system is the service system indicated by the service system indication information.
在一个实施例中,处理器1000根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,具体为根据所述业务系统指示信息查询出用于访问所述目标业务系统的链接地址;对所述用户标识信息以及所述链接地址进行拼接处理,得到拼接的链接地址;根据所述拼接的链接地址从所述目标业务系统中获取所述目标用户的业务信息集合。In one embodiment, the processor 1000 obtains the service information set of the target user from the target service system according to the user identification information, and specifically queries the service information set for accessing the target service system according to the service system indication information. link address; perform splicing processing on the user identification information and the link address to obtain a spliced link address; obtain the target user's service information set from the target service system according to the spliced link address.
在一个实施例中,处理器1000,还用于查找第一插件模板,所述第一插件模板包括链接地址配置页面的页面代码;将所述第一插件模板发送至所述目标业务系统,以便所述目标业务系统基于所述第一插件模板配置用于访问所述目标业务系统的链接地址;接收所述目标业务系统返回的用于访问所述目标业务系统的链接地址,并保存所述用于访问所述目标业务系统的链接地址。在一个实施例中,处理器1000可以通过通信接口将所述第一插件模板发送至所述目标业务系统,还可以通过通信接口接收所述目标业务系统返回的用于访问所述目标业务系统的链接地址。在一个实施例中,处理器1000可以通过存储器2000保存所述用于访问所述目标业务系统的链接地址。In one embodiment, the processor 1000 is further configured to search for a first plug-in template, where the first plug-in template includes page code of a link address configuration page; send the first plug-in template to the target business system, so that The target business system configures a link address for accessing the target business system based on the first plug-in template; receives the link address returned by the target business system for accessing the target business system, and saves the link address for accessing the target business system. The link address for accessing the target business system. In one embodiment, the processor 1000 may send the first plug-in template to the target service system through a communication interface, and may also receive a message returned by the target service system for accessing the target service system through the communication interface. link address. In one embodiment, the processor 1000 may store the link address for accessing the target service system through the memory 2000 .
在一个实施例中,处理器1000根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板,具体为获取所述目标问答指令对应的条件表达式;将所述业务信息集合中各业务信息代入所述条件表达式以进行运算,得到运算结果;确定所述运算结果对应的答复模板,并将所述运算结果对应的答复模板确定为目标答复模板。In one embodiment, the processor 1000 matches a target reply template for the target user according to the service information set and the target question and answer instruction, specifically acquiring a conditional expression corresponding to the target question and answer instruction; Substitute each service information in the information set into the conditional expression for operation to obtain an operation result; determine a reply template corresponding to the operation result, and determine the reply template corresponding to the operation result as a target reply template.
在一个实施例中,处理器1000,还用于通过第二终端输出第一页面,所述第一页面包括多个问答指令,所述多个问答指令包括所述目标问答指令;在检测到所述第二终端发送的对所述目标问答指令的选择指令后,通过所述第二终端输出第二页面,以便所述第二终端基于所述第二页面配置目标问答指令对应的条件表达式和答复模板;获取所述目标问答指令对应的条件表达式和答复模板,并保存所述第二终端为所述目标问答指令配置的条件表达式和答复模板。在一个实施例中,处理器1000可以通过通信接口将第一页面发送至第二终端,以便第二终端显示所述第一页面,还可以通过通信接口将第二页面发送至第二终端,以便第二终端显示所述第二页面。在一个实施例中,处理器1000可以通过存储器2000保存所述目标问答质量配置的条件表达式和答复模板。In one embodiment, the processor 1000 is further configured to output a first page through the second terminal, where the first page includes multiple question and answer instructions, and the multiple question and answer instructions include the target question and answer instruction; After the second terminal sends the selection instruction for the target question and answer instruction, the second page is output through the second terminal, so that the second terminal configures the conditional expression and the corresponding conditional expression of the target question and answer instruction based on the second page. Reply template; obtain the conditional expression and reply template corresponding to the target question and answer instruction, and save the conditional expression and reply template configured by the second terminal for the target question and answer instruction. In one embodiment, the processor 1000 can send the first page to the second terminal through the communication interface, so that the second terminal can display the first page, and can also send the second page to the second terminal through the communication interface, so that the second terminal can display the first page. The second terminal displays the second page. In one embodiment, the processor 1000 may store the conditional expression and the reply template of the target question-answer quality configuration through the memory 2000 .
在一个实施例中,处理器1000通过所述第二终端输出第二页面,具体为查找第二插件模板,所述第二插件模板包括所述第二页面的页面代码;将所述第二插件模板发送至所述第二终端,以便所述第二终端根据所述第二插件模板生成所述第二页面,并输出所述第二页面。In one embodiment, the processor 1000 outputs the second page through the second terminal, specifically searching for a second plug-in template, where the second plug-in template includes page code of the second page; The template is sent to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page.
具体实现中,本申请实施例中所描述的处理器1000可执行图1实施例、图3实施例所描述的实现方式,也可执行本申请实施例所描述的实现方式,在此不再赘述。In specific implementation, the processor 1000 described in the embodiments of the present application may perform the implementation manners described in the embodiments of FIG. 1 and FIG. 3 , and may also perform the implementation manners described in the embodiments of the present application, which will not be repeated here. .
在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采样硬件的形式实现,也可以采样软件功能模块的形式实现。Each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of sampling hardware or in the form of sampling software function modules.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时可实现上述实施例中方法的步骤,或者,该计算机程序被处理器执行时可实现上述实施例中装置的各模块的功能,这里不再赘述。可选的,本申请涉及的存储介质如计算机可读存储介质可以是非易失性的,也可以是易失性的。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the methods in the foregoing embodiments can be implemented, or the computer program is When executed by the processor, the functions of each module of the apparatus in the foregoing embodiment can be implemented, which will not be repeated here. Optionally, the storage medium involved in this application, such as a computer-readable storage medium, may be non-volatile or volatile.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的计算机可读存储介质可为易失性的或非易失性的。例如,该计算机存储介质可以为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。所述的计算机可读存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. Wherein, the computer-readable storage medium can be volatile or non-volatile. For example, the computer storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), or the like. The computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; Use the created data, etc.
其中,本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。Among them, the blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
以上所揭露的仅为本申请一种较佳实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本申请权利要求所作的等同变化,仍属于本申请所涵盖的范围。What is disclosed above is only a preferred embodiment of the present application, and of course, it cannot limit the scope of the right of the present application. Those skilled in the art can understand that all or part of the process of implementing the above-mentioned embodiment can be realized according to the right of the present application. The equivalent changes required to be made still fall within the scope covered by this application.

Claims (20)

  1. 一种基于人工智能的问答方法,包括:An artificial intelligence-based question answering method including:
    获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;obtaining a question and answer request submitted by the first terminal, where the question and answer request carries the user information and question description information of the target user;
    根据所述用户信息获取所述目标用户的业务信息集合;Acquire the service information set of the target user according to the user information;
    利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;Identify the questioning intent of the target user by using the question description information, and obtain an intent identification result;
    将所述意图识别结果转换为目标问答指令;converting the intent recognition result into a target question answering instruction;
    根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;Matching a target reply template for the target user according to the service information set and the target question answering instruction;
    根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。The reply content for the target user is obtained according to the target reply template, and the reply content is output through the first terminal.
  2. 根据权利要求1所述的方法,其中,所述用户信息包括用户标识信息和业务系统指示信息,所述根据所述用户信息获取所述目标用户的业务信息集合,包括:The method according to claim 1, wherein the user information includes user identification information and service system indication information, and the acquiring the service information set of the target user according to the user information includes:
    根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,所述目标业务系统为所述业务系统指示信息指示的业务系统。The service information set of the target user is acquired from the target service system according to the user identification information, where the target service system is the service system indicated by the service system indication information.
  3. 根据权利要求2所述的方法,其中,所述根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,包括:The method according to claim 2, wherein the acquiring the service information set of the target user from the target service system according to the user identification information comprises:
    根据所述业务系统指示信息查询出用于访问所述目标业务系统的链接地址;Query the link address for accessing the target business system according to the business system indication information;
    对所述用户标识信息以及所述链接地址进行拼接处理,得到拼接的链接地址;Perform splicing processing on the user identification information and the link address to obtain a spliced link address;
    根据所述拼接的链接地址从所述目标业务系统中获取所述目标用户的业务信息集合。Acquire the service information set of the target user from the target service system according to the spliced link address.
  4. 根据权利要求3所述的方法,其中,所述方法还包括:The method of claim 3, wherein the method further comprises:
    查找第一插件模板,所述第一插件模板包括链接地址配置页面的页面代码;Find a first plug-in template, where the first plug-in template includes the page code of the link address configuration page;
    将所述第一插件模板发送至所述目标业务系统,以便所述目标业务系统基于所述第一插件模板配置用于访问所述目标业务系统的链接地址;sending the first plug-in template to the target service system, so that the target service system configures a link address for accessing the target service system based on the first plug-in template;
    接收所述目标业务系统返回的用于访问所述目标业务系统的链接地址,并保存所述用于访问所述目标业务系统的链接地址。The link address for accessing the target business system returned by the target business system is received, and the link address for accessing the target business system is saved.
  5. 根据权利要求1所述的方法,其中,所述根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板,包括:The method according to claim 1, wherein the matching a target reply template for the target user according to the service information set and the target question answering instruction comprises:
    获取所述目标问答指令对应的条件表达式;obtaining the conditional expression corresponding to the target question and answer instruction;
    将所述业务信息集合中各业务信息代入所述条件表达式以进行运算,得到运算结果;Substitute each service information in the service information set into the conditional expression to perform an operation to obtain an operation result;
    确定所述运算结果对应的答复模板,并将所述运算结果对应的答复模板确定为目标答复模板。A reply template corresponding to the operation result is determined, and the reply template corresponding to the operation result is determined as a target reply template.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5, wherein the method further comprises:
    通过第二终端输出第一页面,所述第一页面包括多个问答指令,所述多个问答指令包括所述目标问答指令;Outputting a first page through the second terminal, where the first page includes multiple question-and-answer instructions, and the multiple question-and-answer instructions include the target question-and-answer instruction;
    在检测到所述第二终端发送的对所述目标问答指令的选择指令后,通过所述第二终端输出第二页面,以便所述第二终端基于所述第二页面配置目标问答指令对应的条件表达式和答复模板;After detecting the selection instruction for the target question and answer instruction sent by the second terminal, output a second page through the second terminal, so that the second terminal configures the target question and answer instruction corresponding to the second page based on the second page. Conditional expressions and reply templates;
    获取所述目标问答指令对应的条件表达式和答复模板,并保存所述第二终端为所述目标问答指令配置的条件表达式和答复模板。Acquire a conditional expression and a reply template corresponding to the target question-and-answer instruction, and save the conditional expression and reply template configured by the second terminal for the target question-and-answer instruction.
  7. 根据权利要求6所述的方法,其中,所述通过所述第二终端输出第二页面,包括:The method according to claim 6, wherein the outputting the second page through the second terminal comprises:
    查找第二插件模板,所述第二插件模板包括所述第二页面的页面代码;Find a second plug-in template, where the second plug-in template includes the page code of the second page;
    将所述第二插件模板发送至所述第二终端,以便所述第二终端根据所述第二插件模板生成所述第二页面,并输出所述第二页面。Sending the second plug-in template to the second terminal, so that the second terminal generates the second page according to the second plug-in template, and outputs the second page.
  8. 一种基于人工智能的问答装置,包括:An artificial intelligence-based question answering device, comprising:
    获取模块,用于获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;an obtaining module, configured to obtain a question and answer request submitted by the first terminal, where the question and answer request carries the user information and question description information of the target user;
    所述获取模块,还用于根据所述用户信息获取所述目标用户的业务信息集合;The obtaining module is further configured to obtain the service information set of the target user according to the user information;
    识别模块,用于利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;an identification module, configured to identify the questioning intention of the target user by using the question description information to obtain an intention identification result;
    转换模块,用于将所述意图识别结果转换为目标问答指令;a conversion module for converting the intent recognition result into a target question answering instruction;
    匹配模块,用于根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;a matching module, configured to match a target reply template for the target user according to the service information set and the target question and answer instruction;
    所述获取模块,还用于根据所述目标答复模板获得针对所述目标用户的答复内容;The obtaining module is further configured to obtain the reply content for the target user according to the target reply template;
    通信模块,用于通过所述第一终端输出所述答复内容。A communication module, configured to output the reply content through the first terminal.
  9. 一种服务器,包括处理器和存储器,所述处理器和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行以下方法:A server includes a processor and a memory, the processor and the memory being interconnected, wherein the memory is used to store a computer program, the computer program including program instructions, the processor is configured to invoke the The following program instructions are executed:
    获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;obtaining a question and answer request submitted by the first terminal, where the question and answer request carries the user information and question description information of the target user;
    根据所述用户信息获取所述目标用户的业务信息集合;Acquire the service information set of the target user according to the user information;
    利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;Identify the questioning intent of the target user by using the question description information, and obtain an intent identification result;
    将所述意图识别结果转换为目标问答指令;converting the intent recognition result into a target question answering instruction;
    根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;Matching a target reply template for the target user according to the service information set and the target question answering instruction;
    根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。The reply content for the target user is obtained according to the target reply template, and the reply content is output through the first terminal.
  10. 根据权利要求9所述的服务器,其中,执行所述用户信息包括用户标识信息和业务系统指示信息,所述根据所述用户信息获取所述目标用户的业务信息集合,包括:The server according to claim 9, wherein executing the user information includes user identification information and service system indication information, and acquiring the target user's service information set according to the user information includes:
    根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,所述目标业务系统为所述业务系统指示信息指示的业务系统。The service information set of the target user is acquired from the target service system according to the user identification information, where the target service system is the service system indicated by the service system indication information.
  11. 根据权利要求10所述的服务器,其中,执行所述根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,包括:The server according to claim 10, wherein performing the acquiring the service information set of the target user from the target service system according to the user identification information comprises:
    根据所述业务系统指示信息查询出用于访问所述目标业务系统的链接地址;Query the link address for accessing the target business system according to the business system indication information;
    对所述用户标识信息以及所述链接地址进行拼接处理,得到拼接的链接地址;Perform splicing processing on the user identification information and the link address to obtain a spliced link address;
    根据所述拼接的链接地址从所述目标业务系统中获取所述目标用户的业务信息集合。Acquire the service information set of the target user from the target service system according to the spliced link address.
  12. 根据权利要求11所述的服务器,其中,所述处理器还用于执行:The server of claim 11, wherein the processor is further configured to perform:
    查找第一插件模板,所述第一插件模板包括链接地址配置页面的页面代码;Find a first plug-in template, where the first plug-in template includes the page code of the link address configuration page;
    将所述第一插件模板发送至所述目标业务系统,以便所述目标业务系统基于所述第一插件模板配置用于访问所述目标业务系统的链接地址;sending the first plug-in template to the target service system, so that the target service system configures a link address for accessing the target service system based on the first plug-in template;
    接收所述目标业务系统返回的用于访问所述目标业务系统的链接地址,并保存所述用于访问所述目标业务系统的链接地址。The link address for accessing the target business system returned by the target business system is received, and the link address for accessing the target business system is saved.
  13. 根据权利要求9所述的服务器,其中,执行所述根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板,包括:The server according to claim 9, wherein performing the matching of the target response template for the target user according to the service information set and the target question answering instruction comprises:
    获取所述目标问答指令对应的条件表达式;obtaining the conditional expression corresponding to the target question and answer instruction;
    将所述业务信息集合中各业务信息代入所述条件表达式以进行运算,得到运算结果;Substitute each service information in the service information set into the conditional expression to perform an operation to obtain an operation result;
    确定所述运算结果对应的答复模板,并将所述运算结果对应的答复模板确定为目标答复模板。A reply template corresponding to the operation result is determined, and the reply template corresponding to the operation result is determined as a target reply template.
  14. 根据权利要求13所述的服务器,其中,所述处理器还用于执行:The server of claim 13, wherein the processor is further configured to perform:
    通过第二终端输出第一页面,所述第一页面包括多个问答指令,所述多个问答指令包括所述目标问答指令;Outputting a first page through the second terminal, where the first page includes multiple question-and-answer instructions, and the multiple question-and-answer instructions include the target question-and-answer instruction;
    在检测到所述第二终端发送的对所述目标问答指令的选择指令后,通过所述第二终端输出第二页面,以便所述第二终端基于所述第二页面配置目标问答指令对应的条件表达式和答复模板;After detecting the selection instruction for the target question and answer instruction sent by the second terminal, output a second page through the second terminal, so that the second terminal configures the target question and answer instruction corresponding to the second page based on the second page. Conditional expressions and reply templates;
    获取所述目标问答指令对应的条件表达式和答复模板,并保存所述第二终端为所述目标问答指令配置的条件表达式和答复模板。Acquire a conditional expression and a reply template corresponding to the target question-and-answer instruction, and save the conditional expression and reply template configured by the second terminal for the target question-and-answer instruction.
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行以实现以下方法:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following method:
    获取第一终端提交的问答请求,所述问答请求携带目标用户的用户信息和问题描述信息;obtaining a question and answer request submitted by the first terminal, where the question and answer request carries the user information and question description information of the target user;
    根据所述用户信息获取所述目标用户的业务信息集合;Acquire the service information set of the target user according to the user information;
    利用所述问题描述信息对所述目标用户的提问意图进行识别,得到意图识别结果;Identify the questioning intent of the target user by using the question description information, and obtain an intent identification result;
    将所述意图识别结果转换为目标问答指令;converting the intent recognition result into a target question answering instruction;
    根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板;Matching a target reply template for the target user according to the service information set and the target question answering instruction;
    根据所述目标答复模板获得针对所述目标用户的答复内容,并通过所述第一终端输出所述答复内容。The reply content for the target user is obtained according to the target reply template, and the reply content is output through the first terminal.
  16. 根据权利要求15所述的计算机可读存储介质,其中,执行所述用户信息包括用户标识信息和业务系统指示信息,所述根据所述用户信息获取所述目标用户的业务信息集合,包括:The computer-readable storage medium according to claim 15, wherein executing the user information includes user identification information and service system indication information, and acquiring the target user's service information set according to the user information includes:
    根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,所述目标业务系统为所述业务系统指示信息指示的业务系统。The service information set of the target user is acquired from the target service system according to the user identification information, where the target service system is the service system indicated by the service system indication information.
  17. 根据权利要求16所述的计算机可读存储介质,其中,执行所述根据所述用户标识信息从目标业务系统中获取所述目标用户的业务信息集合,包括:The computer-readable storage medium according to claim 16, wherein performing the acquiring the target user's service information set from the target service system according to the user identification information comprises:
    根据所述业务系统指示信息查询出用于访问所述目标业务系统的链接地址;Query the link address for accessing the target business system according to the business system indication information;
    对所述用户标识信息以及所述链接地址进行拼接处理,得到拼接的链接地址;Perform splicing processing on the user identification information and the link address to obtain a spliced link address;
    根据所述拼接的链接地址从所述目标业务系统中获取所述目标用户的业务信息集合。Acquire the service information set of the target user from the target service system according to the spliced link address.
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时还用于实现:The computer-readable storage medium of claim 17, wherein the computer program, when executed by the processor, is further configured to:
    查找第一插件模板,所述第一插件模板包括链接地址配置页面的页面代码;Find a first plug-in template, where the first plug-in template includes the page code of the link address configuration page;
    将所述第一插件模板发送至所述目标业务系统,以便所述目标业务系统基于所述第一插件模板配置用于访问所述目标业务系统的链接地址;sending the first plug-in template to the target service system, so that the target service system configures a link address for accessing the target service system based on the first plug-in template;
    接收所述目标业务系统返回的用于访问所述目标业务系统的链接地址,并保存所述用于访问所述目标业务系统的链接地址。The link address for accessing the target business system returned by the target business system is received, and the link address for accessing the target business system is saved.
  19. 根据权利要求15所述的计算机可读存储介质,其中,执行所述根据所述业务信息集合以及所述目标问答指令为所述目标用户匹配出目标答复模板,包括:The computer-readable storage medium according to claim 15, wherein performing the matching to the target user according to the business information set and the target question answering instruction to obtain a target reply template, comprising:
    获取所述目标问答指令对应的条件表达式;obtaining the conditional expression corresponding to the target question and answer instruction;
    将所述业务信息集合中各业务信息代入所述条件表达式以进行运算,得到运算结果;Substitute each service information in the service information set into the conditional expression to perform an operation to obtain an operation result;
    确定所述运算结果对应的答复模板,并将所述运算结果对应的答复模板确定为目标答复模板。A reply template corresponding to the operation result is determined, and the reply template corresponding to the operation result is determined as a target reply template.
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述计算机程序被处理器执行时还用于实现:The computer-readable storage medium of claim 19, wherein the computer program, when executed by the processor, is further configured to:
    通过第二终端输出第一页面,所述第一页面包括多个问答指令,所述多个问答指令包括所述目标问答指令;Outputting a first page through the second terminal, where the first page includes multiple question-and-answer instructions, and the multiple question-and-answer instructions include the target question-and-answer instruction;
    在检测到所述第二终端发送的对所述目标问答指令的选择指令后,通过所述第二终端输出第二页面,以便所述第二终端基于所述第二页面配置目标问答指令对应的条件表达式和答复模板;After detecting the selection instruction for the target question and answer instruction sent by the second terminal, output a second page through the second terminal, so that the second terminal configures the target question and answer instruction corresponding to the second page based on the second page. Conditional expressions and reply templates;
    获取所述目标问答指令对应的条件表达式和答复模板,并保存所述第二终端为所述目标问答指令配置的条件表达式和答复模板。Acquire a conditional expression and a reply template corresponding to the target question-and-answer instruction, and save the conditional expression and reply template configured by the second terminal for the target question-and-answer instruction.
PCT/CN2021/097022 2021-04-13 2021-05-29 Artificial intelligence-based question and answer method and apparatus, server, and storage medium WO2022217708A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110395698.1 2021-04-13
CN202110395698.1A CN112925898B (en) 2021-04-13 2021-04-13 Question-answering method and device based on artificial intelligence, server and storage medium

Publications (1)

Publication Number Publication Date
WO2022217708A1 true WO2022217708A1 (en) 2022-10-20

Family

ID=76174320

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/097022 WO2022217708A1 (en) 2021-04-13 2021-05-29 Artificial intelligence-based question and answer method and apparatus, server, and storage medium

Country Status (2)

Country Link
CN (1) CN112925898B (en)
WO (1) WO2022217708A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116307663A (en) * 2023-02-16 2023-06-23 广州力麒智能科技有限公司 Intelligent self-service government affair service system, government affair service general method and terminal
CN116932911A (en) * 2023-07-24 2023-10-24 山东翰林科技有限公司 Electric power knowledge question-answering assistant construction method based on ChatGPT

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489557B (en) * 2021-12-15 2024-03-22 青岛海尔科技有限公司 Voice interaction method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885874A (en) * 2017-11-28 2018-04-06 上海智臻智能网络科技股份有限公司 Data query method and apparatus, computer equipment and computer-readable recording medium
CN110968663A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Answer display method and device of question-answering system
US20210012352A1 (en) * 2018-03-27 2021-01-14 Hitachi, Ltd. Customer service assistance system and customer service assistance method
CN112328871A (en) * 2020-10-27 2021-02-05 深圳集智数字科技有限公司 Reply generation method, device, equipment and storage medium based on RPA module

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019836A (en) * 2017-08-23 2019-07-16 中兴通讯股份有限公司 A kind of intelligent answer method and device
CN108595494B (en) * 2018-03-15 2022-05-20 腾讯科技(深圳)有限公司 Method and device for acquiring reply information
CN108664599B (en) * 2018-05-09 2022-02-22 腾讯科技(深圳)有限公司 Intelligent question-answering method and device, intelligent question-answering server and storage medium
CN110298906B (en) * 2019-06-28 2023-08-11 北京百度网讯科技有限公司 Method and device for generating information
CN111104495B (en) * 2019-11-19 2023-07-28 深圳追一科技有限公司 Information interaction method, device, equipment and storage medium based on intention recognition
CN112202978A (en) * 2020-08-24 2021-01-08 维知科技张家口有限责任公司 Intelligent outbound call system, method, computer system and storage medium
CN112182185A (en) * 2020-09-30 2021-01-05 深圳供电局有限公司 Intelligent client auxiliary processing method and system for power supply field

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885874A (en) * 2017-11-28 2018-04-06 上海智臻智能网络科技股份有限公司 Data query method and apparatus, computer equipment and computer-readable recording medium
US20210012352A1 (en) * 2018-03-27 2021-01-14 Hitachi, Ltd. Customer service assistance system and customer service assistance method
CN110968663A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Answer display method and device of question-answering system
CN112328871A (en) * 2020-10-27 2021-02-05 深圳集智数字科技有限公司 Reply generation method, device, equipment and storage medium based on RPA module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116307663A (en) * 2023-02-16 2023-06-23 广州力麒智能科技有限公司 Intelligent self-service government affair service system, government affair service general method and terminal
CN116307663B (en) * 2023-02-16 2023-09-08 广州力麒智能科技有限公司 Intelligent self-service government affair service system, government affair service general method and terminal
CN116932911A (en) * 2023-07-24 2023-10-24 山东翰林科技有限公司 Electric power knowledge question-answering assistant construction method based on ChatGPT
CN116932911B (en) * 2023-07-24 2023-12-15 山东翰林科技有限公司 Electric power knowledge question-answering assistant construction method based on ChatGPT

Also Published As

Publication number Publication date
CN112925898A (en) 2021-06-08
CN112925898B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US10503834B2 (en) Template generation for a conversational agent
US10275448B2 (en) Automatic question generation and answering based on monitored messaging sessions
US10997258B2 (en) Bot networks
WO2022217708A1 (en) Artificial intelligence-based question and answer method and apparatus, server, and storage medium
WO2022134421A1 (en) Multi-knowledge graph based intelligent reply method and apparatus, computer device and storage medium
CN111552799B (en) Information processing method, information processing device, electronic equipment and storage medium
CN111310436B (en) Text processing method and device based on artificial intelligence and electronic equipment
US11126938B2 (en) Targeted data element detection for crowd sourced projects with machine learning
US20190236155A1 (en) Feedback for a conversational agent
JP7483929B2 (en) Method and apparatus for evaluating jointly trained models - Patents.com
US20210294724A1 (en) Action validation for digital assistant-based applications
WO2020155747A1 (en) Method and apparatus for recommending answer to question, and storage medium and server
CN110162675B (en) Method and device for generating answer sentence, computer readable medium and electronic device
CN111026858A (en) Project information processing method and device based on project recommendation model
EP3486842A1 (en) Template generation for a conversational agent
CN111552797B (en) Name prediction model training method and device, electronic equipment and storage medium
CN111414122A (en) Intelligent text processing method and device, electronic equipment and storage medium
JP2024514069A (en) electronic messaging methods
CN110781676B (en) Text processing method, device and system, electronic equipment and storage medium
CN111552798A (en) Name information processing method and device based on name prediction model and electronic equipment
CN112582073B (en) Medical information acquisition method, device, electronic equipment and medium
US11762937B2 (en) Information processing apparatus, information processing system, and method of processing information
US20200388280A1 (en) Action validation for digital assistant-based applications
WO2020024824A1 (en) Method and device for determining user status identifier
CN111144139A (en) Uniqueness authentication method and identification system of translation result based on block chain

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21936580

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21936580

Country of ref document: EP

Kind code of ref document: A1