CN110019731A - Intelligent interactive method, device, terminal device and storage medium - Google Patents

Intelligent interactive method, device, terminal device and storage medium Download PDF

Info

Publication number
CN110019731A
CN110019731A CN201711421670.0A CN201711421670A CN110019731A CN 110019731 A CN110019731 A CN 110019731A CN 201711421670 A CN201711421670 A CN 201711421670A CN 110019731 A CN110019731 A CN 110019731A
Authority
CN
China
Prior art keywords
target
node
answer
question
transaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711421670.0A
Other languages
Chinese (zh)
Inventor
李波
姜中秋
曾永梅
朱频频
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xiaoi Robot Technology Co Ltd
Shanghai Zhizhen Intelligent Network Technology Co Ltd
Original Assignee
Shanghai Zhizhen Intelligent Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhizhen Intelligent Network Technology Co Ltd filed Critical Shanghai Zhizhen Intelligent Network Technology Co Ltd
Priority to CN201711421670.0A priority Critical patent/CN110019731A/en
Priority to US16/106,680 priority patent/US11341422B2/en
Publication of CN110019731A publication Critical patent/CN110019731A/en
Pending legal-status Critical Current

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

Abstract

The embodiment of the invention discloses a kind of intelligent interactive method, equipment and media.Intelligent interactive method includes: acquisition original request message, and is matched according to original request message with the knowledge point in knowledge base;If it is determined that original request message is matched with the problem of subject in target topic knowledge point, then according to the theme answer in target topic knowledge point, target question and answer process module corresponding with target topic knowledge point is triggered;When target transaction node in question and answer process module is triggered, target transaction node is sent to destination service call address according to the target dynamic structure's variable target transaction information of input, and the target transaction processing result that the destination service call address is fed back is back to the target question and answer process module.The scheme of the embodiment of the present invention proposes a kind of specific implementation interacted based on the intelligent Answer System for including transaction node with user's progress question and answer, greatly meets the question and answer demand of user, improves question and answer efficiency and accuracy.

Description

Intelligent interactive method, device, terminal device and storage medium
Technical field
The present embodiments relate to intelligent answer technology more particularly to a kind of intelligent interactive method, device, terminal device and Storage medium.
Background technique
Human-computer interaction is the science of the interactive relation between research system and user.System can be various machines Device is also possible to the system and software of computerization.For example, various artificial intelligence system (intelligence may be implemented by human-computer interaction Energy customer service system, speech control system etc.).Artificial intelligence semantics recognition is the basis of human-computer interaction, can be to human language Identified, to be converted into machine it will be appreciated that language.
Intelligent Answer System is a kind of typical case of human-computer interaction, wherein after user's proposition problem, intelligent answer system System provides the answer of the problem.In the prior art, process design personnel can ask according to different question and answer Demand Designs is different Flow chart is answered, and is realized above-mentioned question and answer flow chart in the form of code by developer, to finally obtain corresponding intelligence It can question answering system.
With the continuous progress of technology, people are continuously improved to intelligent Answer System and for the question and answer demand of system, Existing question and answer technology can no longer meet the question and answer demand of the growing personalization of people, facilitation.
Summary of the invention
The embodiment of the invention provides a kind of intelligent interactive method, device, terminal device and storage mediums, existing to optimize The intelligent interactive method based on intelligent Answer System, improve question and answer efficiency and accuracy.
In a first aspect, being applied to the embodiment of the invention provides a kind of intelligent interactive method based on intelligent Answer System In intelligent Answer System, comprising:
The original request message of user's input is obtained, and is clicked through according to the knowledge in the original request message and knowledge base Row matches, and is stored with multiple knowledge points in the knowledge base, each knowledge point includes problem and answer;
If it is determined that the original request message of user's input matches with the problem of subject in target topic knowledge point, Then according to the theme answer in the target topic knowledge point, target question and answer stream corresponding with the target topic knowledge point is triggered The root node of journey module includes at least one transaction node in the target question and answer process module;
When target transaction node in the question and answer process module is triggered, the target transaction node is according to being input to At least one target dynamic structure's variable target transaction information of own node is sent to corresponding destination service call address, and The target transaction processing result that the destination service call address is fed back is back to the target question and answer process module, so that institute Target question and answer process module is stated to be continued to execute according to the target transaction processing result;
The intelligent Answer System includes:
Question and answer process module corresponding with question and answer flow chart includes multiple graphic assemblies in the question and answer flow chart, described Graphic assembly includes: at least one transaction node, casting node and the connector for connecting different nodes, the transaction section Point is associated with the setting service interface of type of service is executed;
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, The problem of subject is answered for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme Case is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
Second aspect, the embodiment of the invention also provides a kind of terminal device, the terminal device includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the intelligent interactive method based on intelligent Answer System as described in any embodiment of the present invention.
The third aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, The intelligent interaction side based on intelligent Answer System as described in any embodiment of the present invention is realized when the program is executed by processor Method.
Fourth aspect, the embodiment of the invention also provides a kind of intelligent interaction devices, are applied in intelligent Answer System, packet It includes:
Original request message obtains module, for obtaining the original request message of user's input, and is initially asked according to described It asks information to be matched with the knowledge point in knowledge base, multiple knowledge points, each knowledge point is stored in the knowledge base Including problem and answer;
Target question and answer process module trigger module, for if it is determined that the original request message and target that the user inputs Problem of subject in thematic knowledge point matches, then according to the theme answer in the target topic knowledge point, triggering with it is described The root node of the corresponding target question and answer process module in target topic knowledge point includes at least one in the target question and answer process module A transaction node;
Target transaction processing result return module, for the target transaction node in the question and answer process module by success When triggering, the target transaction node is believed according at least one the target dynamic structure's variable target transaction for being input to own node Breath is sent to corresponding destination service call address, and the target transaction processing result that the destination service call address is fed back Be back to the target question and answer process module so that the target question and answer process module according to the target transaction processing result after It is continuous to execute;
The intelligent Answer System includes:
Question and answer process module corresponding with question and answer flow chart includes multiple graphic assemblies in the question and answer flow chart, described Graphic assembly includes: at least one transaction node, casting node and the connector for connecting different nodes, the transaction section Point is associated with the setting service interface of type of service is executed;
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, The problem of subject is answered for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme Case is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
The embodiment of the invention provides a kind of intelligent interactive method, device, terminal device and storage mediums, are used by obtaining The original request message of family input, and matched according to the original request message with the knowledge point in knowledge base;If really The original request message for determining user's input matches with the problem of subject in target topic knowledge point, then according to the target topic Theme answer in knowledge point triggers the root node of target question and answer process module corresponding with the target topic knowledge point;? When target transaction node in question and answer process module is triggered, target transaction node is according at least one for being input to own node Target dynamic structure's variable target transaction information is sent to corresponding destination service call address, and the destination service is called The target transaction processing result of address feedback is back to the technological means of the target question and answer process module, proposes one kind and is based on Include the specific implementation that the intelligent Answer System of transaction node is interacted with user's progress question and answer, greatly meets user Question and answer demand, improve question and answer efficiency and accuracy.
Detailed description of the invention
Fig. 1 a is a kind of flow chart of the generation method for intelligent Answer System that the embodiment of the present invention is applicable in;
Fig. 1 b is a kind of schematic diagram for patterned question and answer flow chart that the embodiment of the present invention is applicable in;
Fig. 1 c is a kind of schematic diagram for custom-configuring information for input transaction node that the embodiment of the present invention is applicable in;
Fig. 2 is the flow chart of the generation method for another intelligent Answer System that the embodiment of the present invention is applicable in;
Fig. 3 is the flow chart of one of the embodiment of the present invention one intelligent interactive method;
Fig. 4 is the flow chart of one of the embodiment of the present invention two intelligent interactive method;
Fig. 5 is the structural schematic diagram of one of the embodiment of the present invention three terminal device;
Fig. 6 is the structure chart of one of the embodiment of the present invention five intelligent interaction device.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
The content of embodiment to facilitate the understanding of the present invention first introduces question and answer knowledge point and language in intelligent answer The related notion of adopted expression formula is simply introduced:
1, question and answer knowledge point
Question and answer knowledge point most original and simplest form in knowledge base are exactly usually common FAQ, general form It is that " ask-answer " is right.For example, " rate of CRBT " are exactly that clearly standard asks description for expression.Here " asking " should not be by narrowly It is interpreted as " inquiring ", and should broadly understand one " input ", being somebody's turn to do " input " has corresponding " output ".For example, for being used for For the semantics recognition of control system, the instruction of user, such as " opening radio " should also be understood to be one " asking ", corresponding at this time " answering " can be the calling for executing the control program accordingly controlled.
User to machine when inputting, the most ideal situation is that asked using standard, then the intelligent semantic identifying system of machine At once it will be appreciated that the meaning of user.However, user often not uses standard to ask, but some deformations for asking of standard Form.For example, if being " changing a radio station " for the standard form of asking of the radio station switching of radio, then what user may use Order is " switching one radio station ", and what machine was also required to can to identify user's expression is the same meaning.
For intelligent semantic identification, the extension that the standard that needs in knowledge base is asked is asked, which, which asks, asks table with standard There is slight difference up to form, but expresses identical meaning.
It therefore, include multiple question and answer knowledge points in knowledge base, each question and answer knowledge point includes problem and answer, and problem includes Standard, which is asked, asks that the problems in question and answer knowledge point shows generally by the form of semantic formula with multiple extensions.
2, semantic formula
Semantic formula is mainly made of word, part of speech and their "or" relationship, and core depends on " part of speech ", part of speech Simple to understand to be one group of word for having general character, these words can be similar or dissimilar semantically, these words can also be with It is noted as important or inessential.Semantic formula and user's question sentence relationship and traditional template matching have very big difference, In conventional template matching, template and user's question sentence are only matched and not matched relationship, and semantic formula and user's question sentence Between relationship be indicated by the value (similarity) of quantization, while this quantization value between similar question sentence and user's question sentence Similarity can mutually compare.Since semantic formula will participate in together similarity calculation with similar question sentence, so mould The definition of plate grammer is unsuitable complicated, but has enough ability expression semantic again.
In addition, the intelligent interactive method for setting intelligent Answer System is given in various embodiments of the present invention, In, the intelligent Answer System specifically includes:
Question and answer process module corresponding with question and answer flow chart includes multiple graphic assemblies in the question and answer flow chart, described Graphic assembly includes: at least one transaction node, and the transaction node is associated with the setting service interface of type of service is executed;
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, The problem of subject is answered for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme Case is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
Further, the intelligent Answer System further include:
It is stored in the knowledge point corresponding with transaction node is set in the question and answer process module in the knowledge base;With institute Stating the corresponding knowledge point of transaction node includes: transaction issues and transaction answer, and the transaction answer includes: connected transaction node, The type of at least one incoming parameter, the type of at least one default parameters, and with the type matching of the default parameters Ask in reply content;
The transaction issues are matched for inputting information with received user;
The type of the incoming parameter, for inputting the type progress for the dynamic variable for including in information with the user Match;The type of the default parameters and rhetorical question content with the type matching of the default parameters, for determining with the use Family inputs the corresponding rhetorical question content of type of institute's default parameters in information;The connected transaction node, for determining the user The incoming transaction node of the dynamic variable for including in input information.
Further, question and answer process module corresponding with question and answer flow chart, specifically includes:
According to each graphic assembly for including in the question and answer flow chart, the generated and matched place of question and answer flow chart Manage frame;And
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, it is generated with Each graphic assembly is corresponding, make an addition in the processing frame with the customized generation at the associated position of graphic assembly Code;
Wherein, and the matched information that custom-configures of the transaction node includes: service call corresponding with transaction node Address, the service call address are directed toward and the associated service interface of the transaction node.
In order to make it easy to understand, the generation method of above-mentioned intelligent Answer System is simply introduced first.
Fig. 1 a is the flow chart of the generation method of above-mentioned intelligent Answer System, and the present embodiment is applicable to according to question and answer process Figure generates the case where intelligent Answer System, and the intelligent Answer System specifically refers to carry out what question and answer interacted with interactive user System, this method can be executed by question and answer system, and the mode which can be used software and/or hardware is realized, and generally may be used To be integrated in the terminal device or server for generating intelligent Answer System.As shown in Figure 1a, the method for the present embodiment It specifically includes:
S110, patterned one or more question and answer flow charts are obtained.
The question and answer flow chart specifically can be selection and combine each graphical set provided in setting process editing interface Part, obtained patterned flow chart.
Wherein, graphic assembly may include node and the connector (typical, connecting line) for connecting different nodes. It include one or more transaction node in the node.
The transaction node, it is associated with the setting service interface of type of service is executed, the transaction is input to for basis The dynamic variable construction Transaction Information of node is sent to associated service interface, and receives at the transaction that the service interface is fed back Manage result.
The service interface is obtained at corresponding transaction for the Transaction Information according to input by itself processing logic Reason as a result, for example, one for completing the scheduled service interface of meeting room, the meeting room predefined parameter according to input may be implemented (such as: XX time and XX meeting room) it is used as Transaction Information, the predetermined operation to meeting room is completed by itself processing logic, And it returns and makes a reservation for successfully or make a reservation for unsuccessfully wait meeting rooms predetermined result as trading processing result;Alternatively, one is used to complete The service interface of meeting room inquiry, may be implemented according to the meeting room query argument of input (such as: the XX time, XX number, band or Meeting room of the person without projector) it is used as Transaction Information, the inquiry operation to available conference room is completed by itself processing logic, And the meeting room information for meeting querying condition is returned as trading processing result.
By above-mentioned analysis it is found that if necessary to be had been carried out in an intelligent Answer System using one or more Service function, such as: meeting room is predetermined, network orders train or plane ticket or hospital registers, and can pass through to introduce and hand over The mode of easy node, calling and the matched service interface of the service function, without repeating to write in the intelligent Answer System Or transplanting reduces realization under the premise of streamlining procedures code significantly in the corresponding program code of required service function Workload needed for the intelligent Answer System.
In addition, it should be noted that, a service interface that can be called by transaction node, is also possible to based on a packet What the process code that the service flow diagram containing multiple nodes automatically generates was realized, above-mentioned service flow diagram and the embodiment of the present invention In the difference of question and answer flow chart essentially consist in, the question and answer flow chart of the embodiment of the present invention in process implementation procedure, according to User carries out question and answer interaction, according to the content that user inputs, controls the different trends of question and answer flow chart interior joint, and for one It for service flow diagram, only needs to start in process, receives one or more Transaction Information, be later exactly according to the service The set execution sequence of flow chart executes, and inputs any content again without user.
For the overall structure of question and answer flow chart, a question and answer flow chart may include having a root nodes stand process Beginning, one or more terminal nodes represent the end of process.It is, of course, understood that the node is in addition to can wrap It includes except one or more transaction node, can also include interaction node, casting node, variable setting node or recording section In point one or more etc., the present embodiment is not limited thereto, in general, the root section in a question and answer flow chart Point is transaction node or interaction node, and terminal node is casting node.
In order to make it easy to understand, showing a kind of patterned question and answer flow chart in Figure 1b.As shown in Figure 1 b, the question and answer In flow chart oval graphic assembly be transaction node (such as: meeting room query node 101 and meeting room destined node 105), rectangular graphic assembly is casting node (such as: broadcasting predetermined successful node 106), and the graphic assembly of diamond shape is interaction Node (such as: ask whether to determine destined node 104).By the connecting line of node-to-node (for example, even between each node Wiring A and connecting line B) it is connected.Wherein, the related notion about interaction node and casting node will be situated between below It continues.
S120, according to each graphic assembly for including in each question and answer flow chart, generate and the question and answer flow chart The processing frame matched, wherein the graphic assembly includes: at least one transaction node, the transaction node and execution setting class The service interface of type service is associated.
Therein it is proposed that a kind of question and answer process module that can be automatically generated.Correspondingly, being provided previously and different type figure The standard implementation code that shape component matches, such as: it establishes corresponding with transaction node, casting node and casting node Standard implementation code wrap pre-establishes pair between standard implementation code and corresponding graphic assembly in different library files It should be related to.Typically, it can be previously written in the process editing interface and realize generation with the matched standardization of each graphic assembly The storage address (or reference address) of code, correspondingly, can be for the question and answer process drawn based on the process editing interface Each graphic assembly for including in figure, the automatic corresponding matched processing frame of generation.
It should be noted that the embodiment of the present invention is concern is primarily with including the intelligent interactive method of transaction node, because This, includes one or more transaction node in question and answer flow chart, and still, above-mentioned technical proposal theoretically may be implemented any As long as drawing corresponding flow chart as needed corresponding processing frame can be obtained, and corresponded in turn in the question and answer of type Process module.
S130, according to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate Custom code corresponding with each graphic assembly make an addition in the processing frame with the associated position of graphic assembly Place, to generate question and answer process module corresponding with the question and answer flow chart.
It is understood that only including corresponding graphic assembly with the matched standard implementation code of each graphic assembly The general utility functions that can be realized.Such as: it is directed to a transaction node, includes what parameter was transmitted in corresponding standard time code Logic includes decision logic in corresponding standard implementation code for an interaction node, or for a casting section Point includes casting logic etc. in corresponding standard implementation code.In order to enable a graphic assembly can be realized different question and answer The different function that it is assigned in flow chart, needs to input and custom-configures parameter accordingly.
It cites a plain example, does not find meeting room node 102 for the casting in Fig. 1 b, need to broadcast the meeting of not finding It discusses room node 102 in a triggered, content " not finding meeting room " can be broadcasted, correspondingly, above-mentioned " not finding meeting room " Content is broadcasted, does not find the function of the imparting of meeting room node 102 to casting exactly, in order to enable meeting room node is not found in casting 102 can be realized above-mentioned function, need using above-mentioned casting content as custom-configure information be added in the processing frame and Casting is not found at the corresponding code position of meeting room node 102.
Typically, blank code can be reserved with the setting position in the matched standard implementation code of each graphic assembly Section is being obtained for the graphic assembly input in question and answer flow chart when custom-configuring parameter (for example, passing through process The parameter configuration interface input that editing interface provides), correspondence is added in the matched custom code of parameter that custom-configures Blank code segment in, to realize customized graphic assembly function.
Optionally, information (such as: not finding meeting room) will can be custom-configured directly as the custom code It makes an addition in the processing frame, the setting content that can also be selected in custom-configuring information input template according to user (for example, transferring mode for the interface of transaction node selection), what matching was write in advance custom-configures information matches with difference Custom code make an addition in the processing frame, the present embodiment is to this and is not limited.
Correspondingly, if completing customized setting to the whole graphic assemblies for including in a question and answer flow chart, The realization code that can be realized the question and answer flow chart function can be generated, namely: generate question and answer described in the embodiment of the present invention Process module.
It is wherein, associated with the setting service interface of type of service is executed due to transaction node, it is saved with the transaction The matched information that custom-configures of point includes: service call corresponding with transaction node address, and the service call address is directed toward With the associated service interface of the transaction node.
Wherein, when the transaction node in the question and answer process module is triggered, the transaction node is according to input At least one dynamic variable construction Transaction Information to own node is sent to corresponding service call address, and by the service The trading processing result of call address feedback is back to the question and answer process module, so that the question and answer process module is according to Trading processing result continues to execute.
It should be noted that when a transaction node is triggered, what which obtained, it is input to the one of own node A or multiple dynamic variables can from (for example, the meeting room query node 101 in Fig. 1 b) extracted in customer interaction information, It is also possible to (for example, the meeting room destined node 105 in Fig. 1 b) passed over from the upstream node in question and answer process module.
It distinguishes, if in question and answer process module a transaction node needs to extract one from customer interaction information Or multiple dynamic variables, then it needs in the corresponding relationship established in knowledge base between the transaction node and a knowledge point, In, knowledge point (being hereinafter knowledge point of trading) corresponding with transaction node includes transaction issues and transaction answer.
Wherein, it is matched, can be answered in conjunction with transaction in successful match with transaction issues by the way that user is inputted information Case is supplied to the transaction node using one or more corresponding dynamic variable as Transaction Information;If question and answer process module In a transaction node need upstream node from the question and answer process module to extract one or more dynamic variable, then without The corresponding relationship of the transaction node and a transaction knowledge point need to be established in knowledge base, as long as in the question and answer process module, Reasonable design cycle code can be realized.Therefore, whether can need to establish determine according to actual needs in practical applications The corresponding relationship between knowledge point in transaction node and knowledge base.
Further, it is contemplated that service interface can received Transaction Information have predetermined format requirement, therefore, can be with It is required that user, which inputs the user including dynamic variable according to the data format that the service interface can identify, inputs information, and trade Node can so that by the dynamic variable of input directly as Transaction Information with being sent to service call corresponding with service interface Location;In addition, it is contemplated that question and answer process module needs to reduce to user as far as possible for the usage experience of further satisfaction user Input requirements therefore the dynamic variable for being unsatisfactory for service interface requirement received can be converted at transaction node The Transaction Information for meeting service interface requirement is sent to service call corresponding with service interface address.
Correspondingly, the information that custom-configures can also include: corresponding with the first transaction node to enter to join defined item;Institute Stating into ginseng defined item includes that at least one enters to join title, and enters to join the parameter that enters of name-matches with described, described to enter to join name The parameter name that the referred to as described associated service interface of first transaction node can identify, it is described to enter parameter and to be input to described The dynamic variable of first transaction node matches;Wherein, the Transaction Information include: it is described enter join title and it is described enter ginseng become Amount.
Wherein, a kind of schematic diagram for custom-configuring information for inputting transaction node is shown in figure 1 c.Such as Fig. 1 c institute Show, can be inputted in a meeting room query node (such as: the meeting room query node 101 in Fig. 1 b) call address item It is directed toward the service call address with the associated service interface of the transaction node;It can enter accordingly entering to join input in defined item Join title (such as: startime and overtime), it is above-mentioned enter to join title be the parameter name that the service interface can identify, And this enter to join in defined item input accordingly enter parameter (such as: " $ { meeting start time } " and $ are { when meeting adjourned Between).It is above-mentioned enter parameter match with the dynamic variable for being input to the meeting room query node.
More specifically, in conjunction with Fig. 1 b, the user that this transaction node of meeting room query node 101 obtains inputs information are as follows: " the time of meeting is 9:00 to 11:00 ", it is corresponding with meeting room query node 101 with knowledge base by the way that the user is inputted information Transaction knowledge point matched, obtain dynamic variable are as follows: meeting start time=9:00, meeting adjourned time=11:00;It hands over For easy node by the dynamic variable meeting start time=9:00, meeting adjourned time=11:00 is configured to Transaction Information, namely: Startime=9:00;The variable that this service interface for being used to complete meeting room inquiry of overtime=11:00 can identify Form.After the Transaction Information is sent to service call corresponding with a service interface address by transaction node later, namely: Http:// voadev.sh.xaioi.com can receive the meeting room query result of service call address return.
S140, the addition thematic knowledge point corresponding with each question and answer process module in knowledge base, the theme are known Knowing point includes problem of subject and theme answer, and the problem of subject is used to indicate the trigger condition of question and answer process module, the master Topic answer is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
Wherein, after generating question and answer process module (code for realizing question and answer flow chart), in order to realize to the question and answer The normal use of process module, needs further that addition theme corresponding with each question and answer process module is known in knowledge base Know point.
It should be noted that above scheme, which gives one kind, firstly generates question and answer process module, theme is resettled later and is known Know the implementation of point, and it will be appreciated by persons skilled in the art that the establishment process of thematic knowledge point can not limit to It executes in after generating question and answer process module, here and is not limited thereof.For example, thematic knowledge can be initially set up Point resettles corresponding question and answer process module etc. later.
In fact, thematic knowledge point and the difference of the question and answer knowledge point in knowledge base are: when user inputs information and asks When answering the matching of the problems in knowledge point, the answer of the question and answer knowledge point can be directly exported, or execute and the answer content The calling for the control program matched, and when user inputs information and matches with the problem of subject of a thematic knowledge point, then it can correspond to Trigger the question and answer process module (for example, the root node for directly triggering the question and answer process module).
Typically, the theme answer in a thematic knowledge point can be the corresponding question and answer process module of thematic knowledge point Storage address or call address etc. the information of the question and answer process module can be accurately positioned.
The generation method of above-mentioned intelligent Answer System by patterned question and answer flow chart and is directed to the question and answer process What each graphic assembly in figure was arranged custom-configures information, can be automatically generated for realizing the question and answer flow chart function Can question and answer process module, later by adding thematic knowledge point corresponding with each question and answer process module in knowledge base Mode, can flexibly realize to the use of the intelligent Answer System generated based on the question and answer process module, give one kind The intelligent interactive method that can be realized by way of What You See Is What You Get optimizes the realization side of existing intelligent Answer System Formula, in addition, may be implemented by introducing transaction node in graphic assembly to functional or service a fast velocity modulation With, required service attribute in operation flow is obtained, avoids and realizes that the repetition of the code of identical function is write or transplanted, It ensure that intelligent Answer System realizes the terseness of code, reduce the workload and error probability of developer, realize The rapid build of intelligent Answer System and update avoid and introduce developer in intelligent Answer System generating process, greatly The workload for reducing developer greatly, reduces costs, improves accuracy rate and efficiency.
Further, as previously mentioned, if a transaction node in question and answer process module is needed from customer interaction information Middle one or more dynamic variable of extraction, the then intelligent interactive method further include: established and the transaction section in knowledge base The corresponding transaction knowledge point of point.Wherein, the transaction knowledge point includes: transaction issues and transaction answer.
The transaction issues for being matched with the Transaction Information being input in the transaction node, answer by the transaction Case generates dynamic and becomes for being combined at least one parameter transaction extracted from the successful Transaction Information of fuzzy matching Amount.Wherein, a kind of data structure of knowledge point of trading has been shown in table 1.
Table 1
As shown in table 1, need to extract the transaction section of one or more dynamic variable from customer interaction information at one When point (for example, meeting room query node 101 in Fig. 1 b) is triggered, user is inputted into information transaction corresponding with the transaction node Problem is matched (typical, fuzzy matching), if successful match, according to the transaction issues, determine the time, person-time and The particular content (actual content for the dynamic variable for including in transaction issues) of conference type, and by above-mentioned particular content and trade Answer is combined, and is obtained complete dynamic variable and is fed back to corresponding meeting room query node 101 (that is, corresponding transaction is answered Meeting room in case inquires this nodename).
More specifically, if inputting information for the user that meeting room query node 101 in Fig. 1 b obtains are as follows: " I will look into 9 points to 12 points of a tomorrow morning is ask, 3 individual demands have the meeting room of projector ", by the way that above-mentioned user is inputted information and table Transaction knowledge point described in 1 is matched, and determining person-time is 3, and the time is 9 points to 12 points, and conference type is projector, later will Above- mentioned information are matched with transaction answer, are obtained: " meeting person-time=3 ", " the time of meeting=9 point are to 12 points " and " meeting The complete dynamic variable of type=projector " is input to the meeting room query node 101, will by the meeting room query node 101 The Transaction Information that above-mentioned dynamic variable constitutes service interface and can identify is sent to corresponding service interface.
The benefit being arranged in this way is can further to improve the versatility of transaction node, by transaction node and can be showed Some knowledge bases are combined use.But, there is a problem by data structure setting transaction knowledge point as described in Table 1, It exactly requires user to input in information including whole dynamic variables needed for transaction node in other words service interface, can just trigger clothes Once business interface return to corresponding trading processing as a result, user to input the information dynamic variable that includes imperfect, it is necessary to again Complete to input whole dynamic variables, interactivity and intelligence are slightly worse, can influence the usage experience of user to a certain extent.Base In this, the data structure of another transaction knowledge point has been set forth below, the dynamic for including in information can have been inputted in user When variable is imperfect, the dynamic variable that lacks in information is inputted according to user, corresponding adjustment output words art so that user it is convenient, Quickly dynamic variable supplement is completed by lacking in subsequent input information, to further increase user experience and intelligence Can question answering system the problem of efficiency.
Fig. 2 is the flow chart of the generation method of another above-mentioned intelligent Answer System, wherein interactive from user for needing The transaction node that one or more dynamic variable is extracted in information gives another data knot of corresponding transaction knowledge point Structure.Correspondingly, the above method includes:
S210, patterned one or more question and answer flow charts are obtained.
S220, according to each graphic assembly for including in each question and answer flow chart, generate matched with question and answer flow chart Handle frame, wherein the graphic assembly includes: at least one transaction node, the transaction node and execution setting type clothes The service interface of business is associated.
S230, according to each graphic assembly in the question and answer flow chart is matched custom-configures information, generate Custom code corresponding with each graphic assembly make an addition in the processing frame with the associated position of graphic assembly Place, to generate question and answer process module corresponding with the question and answer flow chart.
Wherein, and the matched information that custom-configures of the transaction node includes: service call corresponding with transaction node Address, the service call address are directed toward and the associated service interface of the transaction node;
When the transaction node in the question and answer process module is triggered, the transaction node is according to being input to itself At least one dynamic variable construction Transaction Information of node is sent to corresponding service call address, and by the service call Location feedback trading processing result be back to the question and answer process module so that the question and answer process module according to the transaction at Reason result continues to execute.
S240, by setting, transaction node is corresponding with a knowledge point in knowledge base, corresponding with the transaction node to know Knowing point includes: transaction issues and transaction answer.
As previously mentioned, needing if one or more transaction node in question and answer process module from customer interaction information Middle one or more dynamic variable of extraction, then need to establish in above-mentioned transaction node and knowledge base a knowledge point (that is, Trade knowledge point) corresponding relationship.In order to solve the problems of knowledge point of trading in table 1, give in the present embodiment The data structure of another middle transaction knowledge point.
Wherein, the transaction answer includes: connected transaction node, and the type of at least one incoming parameter, at least one is lacked Lose the type of parameter, and the rhetorical question content with the type matching of the default parameters;
The transaction issues are matched for inputting information with received user;
The type of the incoming parameter, for inputting the type progress for the dynamic variable for including in information with the user Match;The type of the default parameters and rhetorical question content with the type matching of the default parameters, for determining with the use Family inputs the corresponding rhetorical question content of type of institute's default parameters in information;The connected transaction node, for determining the user The incoming transaction node of the dynamic variable for including in input information.
Wherein, a kind of data structure of specific above-mentioned transaction knowledge point has been shown in table 2.
Table 2
As shown in table 2, in the transaction knowledge point, the transaction issues, for received user input information into Row matching, obtain user input information in include time, person-time and conference type in one or more particular content; The type of the incoming parameter of at least one for including in the transaction answer, specifically: the time of meeting, meeting number and meeting class Type, the type for inputting the dynamic variable for including in information with the user match.
If it is determined that it includes the type that parameter is all passed to defined in the transaction answer in information that the user, which inputs, Then directly the incoming parameter type composite construction dynamic variable for including in above-mentioned particular content and transaction answer can be sent to In connected transaction node in the transaction answer, namely: " meeting room inquiry " this transaction node.
In addition, in the transaction knowledge point, also define the type of at least one default parameters, and with the missing The rhetorical question content of the type matching of parameter.Such as: " [@time]=may I ask the meeting room that you want several points to several points ", wherein " [@ Time] " types of corresponding default parameters, " may I ask the meeting rooms that you want several points to several points " corresponding corresponding rhetorical question content.Namely: If not including the particular content of the time of meeting in user's input information, it can be based on above-mentioned transaction knowledge point, be mentioned to user For asking in reply content accordingly: " may I ask the meeting room that you want several points to several points ", to request user to re-enter including the time of meeting Particular content;In another example " [@person-times] [@conference type]=may I ask number of participants and required equipment ", " [@person-times] [@ Conference type] " types of corresponding default parameters, " number of participants and required equipment that may I ask ", corresponding corresponding rhetorical question content. Namely: if not including the particular content of meeting number and conference type in user's input information, above-mentioned friendship can be based on Easy knowledge point provides a user corresponding rhetorical question content: " number of participants and required equipment that may I ask ", to request user again Input includes the particular content of meeting number and conference type.
By take described in table 2 trade knowledge point data structure, can not strict regulations be input to transaction node User inputs the data format of information, is based on above-mentioned transaction knowledge point, and the dynamic lacked in information can be inputted according to user and is become The type of amount returns to corresponding rhetorical question content to user, so that user corrects user's input content according to rhetorical question content, only again The dynamic variable of missing is provided, and the dynamic variable provided does not need then to provide again.Guaranteeing that transaction node can be just Often triggering while normal work, greatly reduces the requirement that information is inputted to user, and can significantly improve intelligent Answer System Question and answer efficiency and the usage experience of user.
Correspondingly, setting transaction node is corresponding with a knowledge point in knowledge base, it may include: if it is determined that in institute State in knowledge base include with the matched transaction knowledge point of the transaction node, then can in knowledge base directly establish both pair Should be related to, if it is determined that do not include in the knowledge base with the matched transaction knowledge point of the transaction node, then can know Know in library and initially set up the transaction knowledge point, establishes the corresponding relationship of the two later.
In addition, it is necessary to illustrate again, the transaction node has significantly different with previously mentioned question and answer knowledge point.Such as Preceding described, so-called question and answer knowledge point generally comprises problematic and corresponding answer (alternatively referred to as " ask-answer " to), wherein institute It states question and answer knowledge point to be primarily adapted for use in the scene for carrying out question and answer with interactive user, the problems in question and answer knowledge point is used for and user Input information is matched, if successful match, feeds back the answer in the question and answer knowledge point, or execute and the answer content The calling of matched control program.
Namely: question and answer knowledge point, which can be directly determined, inputs (answering for example, feeding back for the corresponding processing result of information with user Case content or the calling for executing setting control program), and knowledge point of trading is to correspond to transaction section for matching determining be input to The dynamic variable of point, the two purposes is different.For the ease of being distinguished in different application scene to above-mentioned two class knowledge point, Transaction knowledge point and question and answer knowledge point can be stored at storage location different in the knowledge base, or known in interaction Know the knowledge point label etc. that addition is distinguished with question and answer knowledge point in point.
Wherein, question and answer knowledge point with interact knowledge point not it is also possible to not distinguish to the two, all in this hair Within bright protection scope.
S250, the addition thematic knowledge point corresponding with each question and answer process module in knowledge base, the theme are known Knowing point includes problem of subject and theme answer, and the problem of subject is used to indicate the trigger condition of question and answer process module, the master Topic answer is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
Above-mentioned technical proposal is by establishing in transaction node and knowledge base the corresponding relationship of knowledge point of trading, and in the transaction In rhetorical question when defining one or more dynamic variable needed for inputting loss of learning transaction node in user in knowledge point Hold, ultimately constructed intelligent Answer System can be made in circulation to transaction node matched with transaction knowledge point, Neng Gougen Information is inputted according to different users, feeds back different rhetorical question contents, so that user is according in rhetorical question content amendment user's input Hold, the dynamic variable of missing is only provided again, and the dynamic variable provided does not need then to provide again.Guaranteeing transaction section Point can triggered as normal, while normal work, greatly reduce the requirement that information is inputted to user, and intelligence can be significantly improved and asked Answer the question and answer efficiency of system and the usage experience of user.
Further, the graphic assembly can also include: the connector for connecting different nodes, for example, such as Fig. 1 b It is shown, for connecting meeting room query node 101 and casting the connector A of meeting room node 102 is not found, for connecting meeting It discusses room query node 101 and asks whether to determine the connector B of destined node 104 and saved for connecting meeting room inquiry Point 101 and casting meeting room list select the connector C of node 103 for user.
Custom-configuring information described in corresponding includes: and the matched dynamic condition configuration information of the first connector;
For connecting association upper layer node and being associated with lower level node, the association upper layer node is first connector Second transaction node;
Wherein, the dynamic condition configuration information circulates from the association upper layer node to institute for the question and answer process module The condition of association lower level node is stated, the dynamic condition configuration information includes: to join defined item and condition setting value out, described Out ginseng defined item correspond at least one received trading processing of the transaction node as a result, the condition setting value for it is described The trading processing result joined in defined item out carries out condition comparison.
In a specific example, " $ { transaction node title } variable name+relational operator+variate-value " can be passed through Dynamic condition configuration information corresponding with the first connector is arranged in mode.
Wherein, $ { transaction node title } the variable name namely the ginseng defined item out, represent the transaction node and connect At least one trading processing received as a result, variate-value respective conditions setting value, for it is described go out ginseng defined item in the friendship Easy to handle result carries out condition comparison.
More specifically, as shown in Figure 1 b, connector A, connector B and connector C are connection transaction node (meeting rooms Query node 101) with the connectors of other nodes.It is returned assuming that the meeting room query node 101 receives corresponding with service interface The trading processing result returned be the meeting room quantity of the condition that meets (according to the Transaction Information of user's input information structuring), then can be with Relative configurations dynamic condition configuration information corresponding with connector A are as follows: " $ { transaction node title } .code=0 ";With connector B Corresponding dynamic condition configuration information are as follows: " $ { transaction node title } .code=1 ", dynamic condition corresponding with connector C is matched Confidence breath are as follows: " $ { transaction node title } .code > 1 "
Wherein, $ { transaction node title } .code represent the received trading processing of transaction node as a result, "=" and " > " is the relational operator indicated between trading processing result and corresponding condition setting value.
Namely: if the trading processing result that the meeting room query node 101 receives the return of corresponding with service interface is 1, then the dynamic condition configuration information that above-mentioned trading processing result meets is " $ { transaction node title } .code=1 ", correspondingly, The intelligent Answer System can from the meeting room query node 101 circulate to ask whether determine destined node 104 continue to hold Row.
Further, the graphic assembly can also include: interaction node;
Correspondingly, the method also includes: establish one or more knowledge points in each interaction node and knowledge base Corresponding relationship, knowledge point corresponding with the interaction node includes: interaction problems and interaction answer, and the interaction problems are used for Matched with the customer interaction information received, the interactive answer be used for determine the question and answer process module it is next walk To.
Wherein, the interaction node specifically refer to can to have carried out with interactive user question and answer (can be with question-response, can also be with One asks answer more) node of interaction, under the interaction node, the customer interaction information that can be inputted according to user determines that intelligence be asked Answer next trend of system.
For example, as shown in Figure 1 b, it is described to ask whether to determine that destined node 104 is an interaction node, if it is determined that User asks whether to determine that destined node 104 inputs "No" based on this, it is determined that next trend of intelligent Answer System is to terminate Process;If it is determined that user asks whether to determine that destined node 104 inputs "Yes" based on this, it is determined that intelligent Answer System Next trend is meeting room destined node 105.
Further, interaction node needs to determine the next of the question and answer process module established according to customer interaction information Trend.Namely: interaction node includes at least two branches, and different branches correspond to the different trends of the question and answer process module. Therefore, it is necessary to be the different branch condition of different branch establishings in the question and answer process module.
In fact, the expression-form for the customer interaction information that user inputs under an interaction node may be not unique, Customer interaction informations multiple and different in other words can correspond to the same branch condition.It as shown in Figure 1 b, for example, can be preparatory When providing that customer interaction information is "No" or " uncertain ", intelligent Answer System can circulate to terminating process, therefore, it is necessary to It is established in knowledge base and interaction node is matched interacts knowledge point: (no, no) and (not knowing, no).And it establishes respectively It states interactive knowledge point and asks whether the corresponding relationship of determining destined node 104.Similarly, it prespecified user can hand over simultaneously When mutual information is "Yes" or " determination ", intelligent Answer System can circulate to terminating process, it is also desirable to establish in knowledge base With interaction node is matched interacts knowledge point: (being yes), and (determining, yes).
Therefore, it asks whether to determine that destined node 104 need to interact knowledge point with four altogether and establish corresponding relationship.It is understood that , knowledge point corresponding with interaction node and question and answer knowledge point in the prior art be it is distinguishing, therefore, for the ease of Knowledge point corresponding with interaction node is referred to as interactive knowledge point hereinafter by difference.
Wherein, first half in each bracket represents the interaction problems of interaction knowledge point, for the user that receives Interactive information is matched, and the latter half in each bracket represents the interaction answer of the interaction knowledge point, described in determining Next trend of question and answer process module.
Further, the graphic assembly can also include: casting node.The casting node is for broadcasting by making by oneself The adopted preset casting content of configuration information.For example, meeting room node 102, casting meeting are not found in casting as shown in Figure 1 b It discusses room list and selects node 103, the predetermined successful node 106 of casting and casting failure cause node 107 for user.Such as: when Intelligent Answer System circulate to casting do not find meeting room node 102 when, the casting node can accordingly broadcast " it is sorry, do not find Qualified meeting room ".
Further, other than it can be directed to casting node sets casting content, other kinds of section can also be directed to Point setting casting content, so that each node in intelligent Answer System preferably carries out question and answer with user and interacts.
Correspondingly, the information that custom-configures includes: casting content corresponding with first node;
The first node is connected with third transaction node by connector, and the first node is located at third transaction The downstream of node, the first node include: interaction node, casting node or other transaction nodes;
The casting content includes: the received trading processing result of the third transaction node, third transaction The combination or the received friendship of the third transaction node of the received trading processing result of node and presupposed information The combination of easy to handle result and the dynamic variable for being input to the third transaction node.
Specifically, as shown in Figure 1 b, ask whether determine destined node 104 be one with transaction node (namely: meeting room Query node 101) pass through a connected interaction node of connector.Therefore, the interaction node, setting and meeting room can be directed to The matched different types of casting content of the received trading processing result of query node 101, for example, only including trading processing result Casting content be " meeting room meets condition ", alternatively, including broadcasting for the combination of trading processing result and presupposed information Reporting content is " according to the meeting room querying condition that you input, an only meeting room meets condition ", or, including the friendship The combined casting content of easy to handle result and the dynamic variable for being input to the transaction node is that " only one meets the time of meeting For XX, meeting number is XX, and conference type is the meeting room of XX " etc..
It is understood that above-described embodiment simply shows the set-up mode of several casting contents, in fact, this field Technical staff can casting content corresponding with node needed for customized setting according to the actual situation, the present embodiment to this not It is limited.
Further, the casting content can be list-mode data.Such as: casting meeting room list as shown in Figure 1 b Node 103 is selected for user, by Such analysis it is found that can circulate when determining has more than one meeting room to meet condition to this Therefore the casting meeting room list accordingly can be selected the casting curriculum offering of node 103 for column Phenotype Number by node for user According to, so that the node can broadcast multiple meeting rooms for meeting condition, such as: casting: " meeting the time of meeting is XX, meeting people Number be XX, conference type be XX meeting room it is as follows: meeting room A1, meeting room B2 ... ".
It typically, can be when user double-clicks or clicks a graphic assembly in question and answer flow chart, in corresponding pop-up State the input template for custom-configuring information, process design personnel can be realized pair by simply selecting and input operation Different graphic assemblies, which inputs, different custom-configures information.
Embodiment one
Fig. 3 is a kind of flow chart for intelligent interactive method based on intelligent Answer System that the embodiment of the present invention one provides, The basis of intelligent interactive method described in the present embodiment is the generation method intelligence generated by above-mentioned intelligent Answer System Question answering system, the present embodiment are applicable to carry out the situation that question and answer interact with user, and this method can be by being based on intelligent answer system The question and answer system of system executes, which can be realized by software and/or hardware, can generally be integrated in question and answer function (for example, intelligent robot) or the general end for being equipped with question and answer class software (for example, voice assistant) is integrated in special equipment In end equipment, (for example, mobile phone or tablet computer etc.), this method is specifically included:
S310, the original request message for obtaining user's input, and according to the original request message and knowing in knowledge base Know point to be matched, multiple knowledge points is stored in the knowledge base, each knowledge point includes problem and answer.
In the present embodiment, the knowledge point stored in the knowledge base includes: question and answer knowledge point, thematic knowledge point and hands over The easy corresponding knowledge point of node (namely: transaction knowledge point) and knowledge point corresponding with interaction node are (that is, interaction knowledge Point).Wherein, the related notion of above-mentioned knowledge point describes in detail above, and details are not described herein again.
S320, if it is determined that the user input original request message and the problem of subject phase in target topic knowledge point Matching triggers target corresponding with the target topic knowledge point then according to the theme answer in the target topic knowledge point The root node of question and answer process module includes at least one transaction node in the target question and answer process module.
In the present embodiment, corresponding question and answer stream can be accurately positioned by being stored in the theme answer in the thematic knowledge point The information of journey module matches in the problem of subject of the original request message and a thematic knowledge point that determine interactive user input Afterwards, matched question and answer process module can be accurately positioned, and accordingly trigger the root node of the question and answer process module, namely: activation The question and answer process module carries out question and answer with interactive user and interacts.
It is important to emphasise that: for different types of root node (for example, transaction node, interaction node or casting Node), the concept of triggering is not identical.Such as: it can be direct if the casting node is triggered for a casting node Preset casting content is broadcasted to user, and question and answer process module is circulated to the next section being connected with it by connector Point continues to execute;For an interaction node, if the interaction node is triggered, can directly be broadcasted to user preset After broadcasting content, according to the interactive information of user feedback, search knowledge base determines next trend of the question and answer process module.
And distinguished with above-mentioned the two, for a transaction node, if the transaction node is triggered, can rest on Continue acquisition user on the transaction node and input information, only is being determined to input to obtain in information from user to construct letter of trading When whole dynamic variables needed for breath, which can just be successfully triggered, and above-mentioned Transaction Information is sent to associated Service interface, and the trading processing result that the service interface returns is fed back into question and answer process module.That is, being directed to one A transaction node includes two states, and one is triggering states, in the firing state, obtain user input information, and according to Family inputs information structuring trading processing result;In the case where triggering success status, trading processing result is sent to associated service and is connect In mouthful.
When S330, the target transaction node in the question and answer process module are successfully triggered, the target transaction node Corresponding destination service is sent to according at least one the target dynamic structure's variable target transaction information for being input to own node Call address, and the target transaction processing result that the destination service call address is fed back is back to the target question and answer process Module, so that the target question and answer process module is continued to execute according to the target transaction processing result.
As previously mentioned, include at least one transaction node in question and answer process module, the transaction node and setting is executed The service interface of type of service is associated.The service interface is used for according to one or more transaction letter for being input to the interface Breath, obtains corresponding trading processing result.If guarantee the service interface and can normally return to required trading processing as a result, It must assure that the input content of the quantity for being input to the Transaction Information of the service interface and person's type and the Service interface definition It is consistent.
Correspondingly, the target transaction node in the question and answer process module is successfully triggered, in particular to question and answer process mould When block circulates to target transaction node, if target transaction node by user inputs the dynamic variable of acquisition of information or from upper Transaction Information needed for the quantity and type of trip node or dynamic variable can construct the service interface, then the target is handed over Easy node is successfully triggered.
In a specific example, it is assumed that the original request message of user's input is " I wants to inquire available conference room ", is led to It crosses and matches above-mentioned original request message with knowledge base, determine and activate question and answer process corresponding with flow chart described in Fig. 1 b Module, then can trigger meeting room query node 101 first, and meeting room query node 101 will continue to be mentioned according to user's input information Take required dynamic variable, such as: the XX time, XX number and XX type meeting room, determining that dynamic variable can constitute When Transaction Information needed for associated service interface, which can be successfully activated, and above-mentioned transaction is believed It is associated service interface that breath, which is sent, and the quantity for the meeting room for meeting condition that service interface returns is supplied to the question and answer Process module, with next trend of the determination question and answer process module.
The embodiment of the invention provides a kind of intelligent interactive methods based on intelligent Answer System, by obtaining user's input Original request message, and matched according to the original request message with the knowledge point in knowledge base;If it is determined that user The original request message of input matches with the problem of subject in target topic knowledge point, then according to the target topic knowledge point In theme answer, trigger the root node of corresponding with target topic knowledge point target question and answer process module;In question and answer stream When target transaction node in journey module is triggered, target transaction node is dynamic according at least one target for being input to own node State variable construction target transaction information is sent to corresponding destination service call address, and the destination service call address is anti- The target transaction processing result of feedback is back to the technological means of the target question and answer process module, proposes a kind of based on including The intelligent Answer System of transaction node carries out the specific implementation that question and answer interact with user, greatly meets the question and answer of user Demand improves question and answer efficiency and accuracy.
Embodiment two
Fig. 4 is a kind of flow chart of the intelligent interactive method based on intelligent Answer System provided by Embodiment 2 of the present invention, The present embodiment is optimized based on above-described embodiment, and in the present embodiment, the target in the question and answer process module is handed over The operation that easy node is successfully triggered is embodied, correspondingly, the method for the present embodiment specifically includes:
S410, the original request message for obtaining user's input, and according to the original request message and knowing in knowledge base Know point to be matched, multiple knowledge points is stored in the knowledge base, each knowledge point includes problem and answer.
S420, if it is determined that the user input original request message and the problem of subject phase in target topic knowledge point Matching triggers target corresponding with the target topic knowledge point then according to the theme answer in the target topic knowledge point The root node of question and answer process module includes at least one transaction node in the target question and answer process module.
S430, the user obtained for the target transaction node is inputted into information and the target in the object knowledge point Transaction issues are matched.
In the present embodiment, when target question and answer process module circulates to the target transaction node, the target transaction section Point is triggered.
Wherein, the target transaction node corresponds to the first knowledge point in the knowledge base, and the object knowledge point includes Target transaction problem and target transaction answer.
In the present embodiment, first knowledge point is knowledge point of trading.Wherein, the transaction answer includes: association Transaction node, the type of at least one incoming parameter, the type of at least one default parameters, and the class with the default parameters The matched rhetorical question content of type;
The transaction issues are matched for inputting information with received user;
The type of the incoming parameter, for inputting the type progress for the dynamic variable for including in information with the user Match;The type of the default parameters and rhetorical question content with the type matching of the default parameters, for determining with the use Family inputs the corresponding rhetorical question content of type of institute's default parameters in information;The connected transaction node, for determining the user The incoming transaction node of the dynamic variable for including in input information.
S440, if it is determined that successful match, then input at least one target dynamic variable of information extraction in the user.
In the present embodiment, if it is determined that successful match then can input at least one mesh of information extraction in the user Mark dynamic variable, if it is determined that it fails to match, then art, request can re-enter the user by feedback and input information.
S450, judge whether the number of types of the target dynamic variable extracted is less than in the target transaction answer The number of types of incoming parameter: if so, executing S460;Otherwise, S490 is executed.
Wherein, judge whether the number of types of the target dynamic variable extracted is less than in the target transaction answer The number of types of incoming parameter specifically refers to, judge the target dynamic types of variables extracted whether in target transaction answer The type of incoming parameter be consistent, whether the type for obtaining the target dynamic variable can cover the complete of the incoming parameter Category type.For example, as shown in table 2, the type for the incoming parameter for including in answer of trading is the time of meeting, meeting number and meeting Discuss type.
S460, the type for determining at least one target default parameters, and execute S270.
S470, rhetorical question content corresponding with the type of the target default parameters in the target transaction answer is carried out instead Target dynamic variable corresponding with the type of the target default parameters is re-entered in feedback, request.
S480, it is inputted in information in the user re-entered and continues to extract at least one described target dynamic variable, and returned Receipt row S450.
S490, determination successfully trigger the target transaction node, and the whole of the extraction target dynamic variable is inputted To the target transaction node.
S4100, the target transaction node are according at least one the target dynamic structure's variable mesh for being input to own node Mark Transaction Information is sent to corresponding destination service call address, and the target transaction that the destination service call address is fed back Processing result is back to the target question and answer process module so that the target question and answer process module according to the target transaction at Reason result continues to execute.
The technical solution of the embodiment of the present invention by establishing in transaction node and knowledge base the corresponding relationship of knowledge point of trading, And one or more dynamic variable needed for user's input loss of learning transaction node is defined in the transaction knowledge point When rhetorical question content, can make ultimately constructed intelligent Answer System circulation to transaction the matched transaction node in knowledge point When, information can be inputted according to different users, feed back different rhetorical question contents, so that user uses according to rhetorical question content amendment Family input content only provides the dynamic variable of missing again, and the dynamic variable provided does not need then to provide again.It is protecting Demonstrate,prove transaction node can triggered as normal, while normal work, greatly reduce the requirement that information is inputted to user, and can obviously mention The question and answer efficiency of high intelligent Answer System and the usage experience of user.
On the basis of the various embodiments described above, the target transaction node is according at least one mesh for being input to own node Mark dynamic variable construction target transaction information is sent to corresponding destination service call address, may include:
The target transaction node according at least one the target dynamic variable for being input to own node, and with the mesh Transaction node is corresponding enters to join defined item for mark, and construction target transaction information is sent to the target with the target transaction node matching In service call address;
It is described to enter to join defined item and include that at least one enters to join title, and with it is described enter join name-matches enter parameter, It is described to enter to join the parameter name that the entitled associated service interface of target transaction node identify, it is described enter parameter with The target dynamic variable for being input to the target transaction node matches.
Specifically, the user that this transaction node of meeting room query node 101 obtains inputs letter in conjunction with Fig. 1 b and Fig. 1 c Breath are as follows: " the time of meeting be 9:00 to 11:00 ", by by the user input in information and knowledge base with meeting room query node 101 corresponding transaction knowledge points are matched, and dynamic variable is obtained are as follows: meeting start time=9:00, meeting adjourned time= 11:00;Dynamic variable meeting start time=the 9:00, meeting adjourned time=11:00 are configured to transaction letter by transaction node Breath, namely: startime=9:00;This service interface for being used to complete meeting room inquiry of overtime=11:00 can be known Other variable format.The Transaction Information is sent to service call corresponding with a service interface address by transaction node later Afterwards, namely: http://voadev.sh.xaioi.com, can receive the service call address return meeting room inquiry knot Fruit.
On the basis of the various embodiments described above, the target transaction processing result that the destination service call address is fed back is returned It is back to the target question and answer process module, so that the target question and answer process module continues to hold according to the trading processing result It goes, may include:
If it is determined that the target transaction node is associated at least two downstream connection parts, then handled according to the target transaction As a result, and each downstream connection part target dynamic condition configuration information, it is determining with the target transaction processing result The target downstream connector matched;
By the target question and answer process module circulate to the target downstream node being connected with the target downstream connector after It is continuous to execute;
Wherein, the target dynamic condition configuration information includes: to join defined item and condition setting value out, described to go out to join Defined item matches at least one received target transaction processing result of the target transaction node, and the condition setting value is used It is compared in carrying out condition with the target transaction processing result in the defined item of ginseng out.
On the basis of the various embodiments described above, by the question and answer process module circulate to the target downstream connector phase Target downstream node even continues to execute, comprising:
According to the target downstream node setting with the matched casting content of the target transaction processing result, Xiang Suoshu User broadcasts;
The casting content includes: the target transaction processing result, the target transaction processing result and default letter The group of the combination of breath or the target transaction processing result and the target dynamic variable for being input to the target transaction node It closes;
Wherein, the target downstream node includes: interaction node, casting node or other transaction nodes.
Embodiment three
Fig. 5 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention three provides.Fig. 5, which is shown, to be suitable for being used to Realize the block diagram of the exemplary computer device 12 of embodiment of the present invention.The computer equipment 12 that Fig. 5 is shown is only one Example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can To include but is not limited to: one or more processor or processing unit 16, system storage 28 connect not homologous ray group The bus 18 of part (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Computer equipment 12 may further include it is other it is removable/can not Mobile, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing not Movably, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").It, can be with although being not shown in Fig. 5 The disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") is provided, and non-volatile to moving The CD drive of CD (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driving Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould Block 42 usually executes function and/or method in embodiment described in the invention.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also To pass through network adapter 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network Network, such as internet) communication.As shown, network adapter 20 is logical by other modules of bus 18 and computer equipment 12 Letter.It should be understood that other hardware and/or software module, packet can be used in conjunction with computer equipment 12 although being not shown in Fig. 5 It includes but is not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic tape drive Device and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the intelligent interactive method based on intelligent Answer System provided by the embodiment of the present invention.
Namely: the processing unit is realized when executing described program: the original request message of acquisition user's input, and according to The original request message is matched with the knowledge point in knowledge base, multiple knowledge points is stored in the knowledge base, each The knowledge point includes problem and answer;
If it is determined that the original request message of user's input matches with the problem of subject in target topic knowledge point, Then according to the theme answer in the target topic knowledge point, target question and answer stream corresponding with the target topic knowledge point is triggered The root node of journey module includes at least one transaction node in the target question and answer process module;
When target transaction node in the question and answer process module is successfully triggered, the target transaction node is according to defeated Enter at least one target dynamic structure's variable target transaction information of own node and is sent to corresponding destination service calling ground Location, and the target transaction processing result that the destination service call address is fed back is back to the target question and answer process module, So that the target question and answer process module is continued to execute according to the target transaction processing result.
Example IV
The embodiment of the present invention four provides a kind of computer readable storage medium, is stored thereon with computer program, the journey The intelligent interaction side based on intelligent Answer System provided such as all inventive embodiments of the application is provided when sequence is executed by processor Method:
Namely: the realization when program is executed by processor: the original request message of user's input is obtained, and according to described first Beginning solicited message is matched with the knowledge point in knowledge base, and multiple knowledge points are stored in the knowledge base, each described to know Knowing point includes problem and answer;
If it is determined that the original request message of user's input matches with the problem of subject in target topic knowledge point, Then according to the theme answer in the target topic knowledge point, target question and answer stream corresponding with the target topic knowledge point is triggered The root node of journey module includes at least one transaction node in the target question and answer process module;
When target transaction node in the question and answer process module is successfully triggered, the target transaction node is according to defeated Enter at least one target dynamic structure's variable target transaction information of own node and is sent to corresponding destination service calling ground Location, and the target transaction processing result that the destination service call address is fed back is back to the target question and answer process module, So that the target question and answer process module is continued to execute according to the target transaction processing result.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Embodiment five
Fig. 6 is the structure chart of one of the embodiment of the present invention five intelligent interaction device, is applied in intelligent interactive system, As shown in fig. 6, described device includes:
Original request message obtains module 610, for obtaining the original request message of user's input, and according to described initial Solicited message is matched with the knowledge point in knowledge base, and multiple knowledge points, each knowledge are stored in the knowledge base Point includes problem and answer;
Target question and answer process module trigger module 620, for if it is determined that the user input original request message with Problem of subject in target topic knowledge point matches, then according to the theme answer in the target topic knowledge point, triggering with The root node of the corresponding target question and answer process module in the target topic knowledge point includes extremely in the target question and answer process module A few transaction node;
Target transaction processing result return module 630, for the target transaction node quilt in the question and answer process module When successfully triggering, the target transaction node is handed over according at least one the target dynamic structure's variable target for being input to own node Easy information is sent to corresponding destination service call address, and the target transaction of destination service call address feedback is handled As a result it is back to the target question and answer process module, is tied so that the target question and answer process module is handled according to the target transaction Fruit continues to execute;
The intelligent Answer System includes:
Question and answer process module corresponding with question and answer flow chart includes multiple graphic assemblies in the question and answer flow chart, described Graphic assembly includes: at least one transaction node, casting node and the connector for connecting different nodes, the transaction section Point is associated with the setting service interface of type of service is executed;
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, The problem of subject is answered for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme Case is used to establish the triggering relationship of the thematic knowledge point and the question and answer process module.
On the basis of the various embodiments described above, the intelligent Answer System can also include:
It is stored in the knowledge point corresponding with transaction node is set in the question and answer process module in the knowledge base;
Knowledge point corresponding with the transaction node includes: transaction issues and transaction answer, and the transaction answer includes: to close Join transaction node, the type of at least one incoming parameter, the type of at least one default parameters, and with the default parameters The rhetorical question content of type matching;
The transaction issues are matched for inputting information with received user;
The type of the incoming parameter, for inputting the type progress for the dynamic variable for including in information with the user Match;The type of the default parameters and rhetorical question content with the type matching of the default parameters, for determining with the use Family inputs the corresponding rhetorical question content of type of institute's default parameters in information;The connected transaction node, for determining the user The incoming transaction node of the dynamic variable for including in input information.
On the basis of the various embodiments described above, question and answer process module corresponding with question and answer flow chart is specifically included:
According to each graphic assembly for including in the question and answer flow chart, the generated and matched place of question and answer flow chart Manage frame;And
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, it is generated with Each graphic assembly is corresponding, make an addition in the processing frame with the customized generation at the associated position of graphic assembly Code;
Wherein, and the matched information that custom-configures of the transaction node includes: service call corresponding with transaction node Address, the service call address are directed toward and the associated service interface of the transaction node;
It is described to custom-configure information further include: casting content corresponding with first node;
The first node is connected with target transaction node by connector, and the first node is located at the target transaction The downstream of node, the first node include: casting node or other transaction nodes;
The casting content includes: the received trading processing result of the target transaction node, the target transaction The combination or the received friendship of the target transaction node of the received trading processing result of node and presupposed information The combination of easy to handle result and the dynamic variable for being input to the target transaction node.
On the basis of the various embodiments described above, the target transaction node corresponds to the first knowledge point in the knowledge base, The object knowledge point includes target transaction problem and target transaction answer;
Target transaction processing result return module further comprises:
Target transaction problem matching unit inputs information and institute for that will be directed to the user that the target transaction node obtains The target transaction problem stated in object knowledge point is matched;
Target dynamic variable extraction unit is used for if it is determined that successful match, then input information extraction extremely in the user A few target dynamic variable;
Target default parameters determination unit, for if it is determined that the number of types of the target dynamic variable extracted is less than The number of types of incoming parameter in the target transaction answer, it is determined that go out the type of at least one target default parameters;
Content feed unit is asked in reply, for will be corresponding with the type of the target default parameters in the target transaction answer Rhetorical question content fed back, request re-enter target dynamic variable corresponding with the type of the target default parameters;
Whole parameter extraction units continue to extract at least one described mesh for inputting in information in the user re-entered Dynamic variable is marked, and returns and executes if it is determined that the number of types of the target dynamic variable extracted is less than the target transaction The number of types of incoming parameter in answer, it is determined that go out the operation of the type of at least one target default parameters, until complete Extract target dynamic variable corresponding with the incoming type of parameter of the whole in the target transaction answer;
Target transaction node successfully triggers unit, successfully triggers the target transaction node for determining, and by extraction All the target dynamic variable is input to the target transaction node.
On the basis of the various embodiments described above, target transaction processing result return module further comprises:
Target transaction information transmitting unit, for the target transaction node according at least one for being input to own node Target dynamic variable, and it is corresponding with the target transaction node enter to join defined item, construction target transaction information be sent to In the destination service call address of the target transaction node matching;
It is described to enter to join defined item and include that at least one enters to join title, and with it is described enter join name-matches enter parameter, It is described to enter to join the parameter name that the entitled associated service interface of target transaction node identify, it is described enter parameter with The target dynamic variable for being input to the target transaction node matches.
On the basis of the various embodiments described above, target transaction processing result return module further comprises:
Target downstream connector determination unit is used for if it is determined that the target transaction node is associated at least two downstreams company Fitting, then according to the target transaction processing result and the target dynamic condition configuration information of each downstream connection part, really The fixed and matched target downstream connector of the target transaction processing result;
Target downstream connector circulation unit, for by the target question and answer process module circulate to the target downstream The connected target downstream node of connector continues to execute;
Wherein, the target dynamic condition configuration information includes: to join defined item and condition setting value out, described to go out to join Defined item matches at least one received target transaction processing result of the target transaction node, and the condition setting value is used It is compared in carrying out condition with the target transaction processing result in the defined item of ginseng out.
On the basis of the various embodiments described above, target downstream connector circulation unit is specifically used for:
According to the target downstream node setting with the matched casting content of the target transaction processing result, Xiang Suoshu User broadcasts;
The casting content includes: the target transaction processing result, the target transaction processing result and default letter The group of the combination of breath or the target transaction processing result and the target dynamic variable for being input to the target transaction node It closes;
Wherein, the target downstream node includes: interaction node, casting node or other transaction nodes.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (16)

1. a kind of intelligent interactive method is applied in intelligent Answer System characterized by comprising
The original request message of user's input is obtained, and according to the knowledge point progress in the original request message and knowledge base Match, multiple knowledge points are stored in the knowledge base, each knowledge point includes problem and answer;
If it is determined that the original request message of user input matches with the problem of subject in target topic knowledge point, then root According to the theme answer in the target topic knowledge point, target question and answer process mould corresponding with the target topic knowledge point is triggered The root node of block includes at least one transaction node in the target question and answer process module;
When target transaction node in the question and answer process module is successfully triggered, the target transaction node is according to being input to At least one target dynamic structure's variable target transaction information of own node is sent to corresponding destination service call address, and The target transaction processing result that the destination service call address is fed back is back to the target question and answer process module, so that institute Target question and answer process module is stated to be continued to execute according to the target transaction processing result;
The intelligent Answer System includes:
Question and answer process module corresponding with question and answer flow chart includes multiple graphic assemblies, the figure in the question and answer flow chart Component includes: at least one transaction node, the casting node and connector for connecting different nodes, the transaction node with The service interface for executing setting type of service is associated;
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, described Problem of subject is used for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme answer In the triggering relationship for establishing the thematic knowledge point and the question and answer process module.
2. the method according to claim 1, wherein the intelligent Answer System further include:
It is stored in the knowledge point corresponding with transaction node is set in the question and answer process module in the knowledge base;
Knowledge point corresponding with the transaction node includes: transaction issues and transaction answer, and the transaction answer includes: that association is handed over Easy node, the type of at least one incoming parameter, the type of at least one default parameters, and the type with the default parameters Matched rhetorical question content;
The transaction issues are matched for inputting information with received user;
The type of the incoming parameter, the type for inputting the dynamic variable for including in information with the user match; The type of the default parameters and rhetorical question content with the type matching of the default parameters, it is defeated with the user for determination Enter the corresponding rhetorical question content of type of institute's default parameters in information;The connected transaction node, for determining user's input The incoming transaction node of the dynamic variable for including in information.
3. the method according to claim 1, wherein question and answer process module corresponding with question and answer flow chart, specifically Include:
According to each graphic assembly for including in the question and answer flow chart, the generated and matched processing block of question and answer flow chart Frame;And
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, it is generated with each institute State that graphic assembly is corresponding, make an addition in the processing frame with the custom code at the associated position of graphic assembly;
Wherein, and the matched information that custom-configures of the transaction node includes: service call corresponding with transaction node address, It is directed toward and the transaction node associated service interface the service call address;
It is described to custom-configure information further include: casting content corresponding with first node;
The first node is connected with target transaction node by connector, and the first node is located at the target transaction node Downstream, the first node includes: casting node or other transaction nodes;
The casting content includes: the received trading processing result of the target transaction node, the target transaction node At the combination or the received transaction of the target transaction node of the received trading processing result and presupposed information The combination of reason result and the dynamic variable for being input to the target transaction node.
4. method according to claim 1-3, which is characterized in that the target transaction node corresponds to the knowledge The first knowledge point in library, the object knowledge point include target transaction problem and target transaction answer;
Target transaction node in the question and answer process module is successfully triggered, comprising:
The user obtained for the target transaction node is inputted to the target transaction problem in information and the object knowledge point It is matched;
If it is determined that successful match, then input at least one target dynamic variable of information extraction in the user;
If it is determined that the number of types of the target dynamic variable extracted is less than the incoming parameter in the target transaction answer Number of types, it is determined that go out at least one target default parameters type;
Rhetorical question content corresponding with the type of the target default parameters in the target transaction answer is fed back, request weight It is new to input target dynamic variable corresponding with the type of the target default parameters;
It is inputted in information in the user re-entered and continues to extract at least one described target dynamic variable, and if returning to execution Determine that the number of types of the target dynamic variable extracted is less than the number of types of the incoming parameter in the target transaction answer Amount, it is determined that go out the operation of the type of at least one target default parameters, until in complete extraction and the target transaction answer Whole be passed to parameter the corresponding target dynamic variable of type;
Determination successfully triggers the target transaction node, and the whole of the extraction target dynamic variable is input to the target Transaction node.
5. method according to claim 1-3, which is characterized in that the target transaction node according to be input to from At least one target dynamic structure's variable target transaction information of body node is sent to corresponding destination service call address, packet It includes:
The target transaction node is handed over according at least one the target dynamic variable for being input to own node, and with the target Easily node is corresponding enters to join defined item, and construction target transaction information is sent to the destination service with the target transaction node matching In call address;
It is described enter to join defined item include that at least one enters to join title, and enters to join the parameter that enters of name-matches with described, it is described Enter to join the parameter name that the entitled associated service interface of target transaction node can identify, it is described enter parameter and input Target dynamic variable to the target transaction node matches.
6. method according to claim 1-3, which is characterized in that by destination service call address feedback Target transaction processing result is back to the target question and answer process module, so that the target question and answer process module is according to the friendship Easy to handle result continues to execute, comprising:
If it is determined that the target transaction node is associated at least two downstream connection parts, is then handled and tied according to the target transaction The target dynamic condition configuration information of fruit and each downstream connection part, determination are matched with the target transaction processing result Target downstream connector;
The target question and answer process module is circulated to the target downstream node being connected with the target downstream connector and continues to hold Row;
Wherein, the target dynamic condition configuration information includes: to join defined item and condition setting value out, described to go out to join definition Match at least one received target transaction processing result of the target transaction node, the condition setting value for It is described to go out to join the target transaction processing result progress condition comparison in defined item.
7. according to the method described in claim 6, it is characterized in that, by the question and answer process module circulate to under the target The connected target downstream node of trip connector continues to execute, comprising:
According to the target downstream node setting with the matched casting content of the target transaction processing result, Xiang Suoshu user It is broadcasted;
The casting content includes: the target transaction processing result, the target transaction processing result and presupposed information Combination or the combination of the target transaction processing result and the target dynamic variable for being input to the target transaction node;
Wherein, the target downstream node includes: interaction node, casting node or other transaction nodes.
8. a kind of intelligent interaction device is applied in intelligent Answer System characterized by comprising
Original request message obtains module, believes for obtaining the original request message of user's input, and according to the initial request Breath is matched with the knowledge point in knowledge base, multiple knowledge points is stored in the knowledge base, each knowledge point includes Problem and answer;
Target question and answer process module trigger module, for if it is determined that the original request message and target topic that the user inputs Problem of subject in knowledge point matches, then according to the theme answer in the target topic knowledge point, triggering and the target The root node of the corresponding target question and answer process module of thematic knowledge point includes at least one friendship in the target question and answer process module Easy node;
Target transaction processing result return module is successfully triggered for the target transaction node in the question and answer process module When, the target transaction node is sent out according at least one the target dynamic structure's variable target transaction information for being input to own node It send to corresponding destination service call address, and the target transaction processing result of destination service call address feedback is returned To the target question and answer process module, so that the target question and answer process module continues to hold according to the target transaction processing result Row;
The intelligent Answer System includes:
Question and answer process module corresponding with question and answer flow chart includes multiple graphic assemblies, the figure in the question and answer flow chart Component includes: at least one transaction node, the casting node and connector for connecting different nodes, the transaction node with The service interface for executing setting type of service is associated;
The thematic knowledge point being stored in the knowledge base, the thematic knowledge point include problem of subject and theme answer, described Problem of subject is used for indicating with the trigger condition of the matched question and answer process module of intelligent Answer System, the theme answer In the triggering relationship for establishing the thematic knowledge point and the question and answer process module.
9. device according to claim 8, which is characterized in that the intelligent Answer System further include:
It is stored in the knowledge point corresponding with transaction node is set in the question and answer process module in the knowledge base;
Knowledge point corresponding with the transaction node includes: transaction issues and transaction answer, and the transaction answer includes: that association is handed over Easy node, the type of at least one incoming parameter, the type of at least one default parameters, and the type with the default parameters Matched rhetorical question content;
The transaction issues are matched for inputting information with received user;
The type of the incoming parameter, the type for inputting the dynamic variable for including in information with the user match; The type of the default parameters and rhetorical question content with the type matching of the default parameters, it is defeated with the user for determination Enter the corresponding rhetorical question content of type of institute's default parameters in information;The connected transaction node, for determining user's input The incoming transaction node of the dynamic variable for including in information.
10. device according to claim 8, which is characterized in that question and answer process module corresponding with question and answer flow chart, specifically Include:
According to each graphic assembly for including in the question and answer flow chart, the generated and matched processing block of question and answer flow chart Frame;And
According to each graphic assembly in the question and answer flow chart is matched custom-configures information, it is generated with each institute State that graphic assembly is corresponding, make an addition in the processing frame with the custom code at the associated position of graphic assembly;
Wherein, and the matched information that custom-configures of the transaction node includes: service call corresponding with transaction node address, It is directed toward and the transaction node associated service interface the service call address;
It is described to custom-configure information further include: casting content corresponding with first node;
The first node is connected with target transaction node by connector, and the first node is located at the target transaction node Downstream, the first node includes: casting node or other transaction nodes;
The casting content includes: the received trading processing result of the target transaction node, the target transaction node At the combination or the received transaction of the target transaction node of the received trading processing result and presupposed information The combination of reason result and the dynamic variable for being input to the target transaction node.
11. according to the described in any item devices of claim 8-10, which is characterized in that know described in the target transaction node is corresponding Know the first knowledge point in library, the object knowledge point includes target transaction problem and target transaction answer;
Target transaction processing result return module further comprises:
Target transaction problem matching unit inputs information and the mesh for that will be directed to the user that the target transaction node obtains Target transaction problem in mark knowledge point is matched;
Target dynamic variable extraction unit is used for if it is determined that successful match, then input information extraction at least one in the user A target dynamic variable;
Target default parameters determination unit, for if it is determined that the number of types of the target dynamic variable extracted be less than it is described The number of types of incoming parameter in target transaction answer, it is determined that go out the type of at least one target default parameters;
Ask in reply content feed unit, for will in the target transaction answer it is corresponding with the type of the target default parameters anti- Ask that content is fed back, target dynamic variable corresponding with the type of the target default parameters is re-entered in request;
Whole parameter extraction units, it is dynamic for continuing at least one described target of extraction in the user's input information re-entered State variable, and return and execute if it is determined that the number of types of the target dynamic variable extracted is less than the target transaction answer In incoming parameter number of types, it is determined that the operation for going out the type of at least one target default parameters, until complete extraction Target dynamic variable corresponding with the incoming type of parameter of the whole in the target transaction answer;
Target transaction node successfully triggers unit, successfully triggers the target transaction node for determining, and by the whole of extraction The target dynamic variable is input to the target transaction node.
12. according to the described in any item devices of claim 8-10, which is characterized in that target transaction processing result return module, Further comprise:
Target transaction information transmitting unit, for the target transaction node according at least one target for being input to own node Dynamic variable, and it is corresponding with the target transaction node enter to join defined item, construction target transaction information be sent to it is described In the destination service call address of target transaction node matching;
It is described enter to join defined item include that at least one enters to join title, and enters to join the parameter that enters of name-matches with described, it is described Enter to join the parameter name that the entitled associated service interface of target transaction node can identify, it is described enter parameter and input Target dynamic variable to the target transaction node matches.
13. according to the described in any item devices of claim 8-10, which is characterized in that target transaction processing result return module, Further comprise:
Target downstream connector determination unit is used for if it is determined that the target transaction node is associated at least two downstream connections Part determines then according to the target transaction processing result and the target dynamic condition configuration information of each downstream connection part With the matched target downstream connector of the target transaction processing result;
Target downstream connector circulation unit is connect for circulating the target question and answer process module to the target downstream The connected target downstream node of part continues to execute;
Wherein, the target dynamic condition configuration information includes: to join defined item and condition setting value out, described to go out to join definition Match at least one received target transaction processing result of the target transaction node, the condition setting value for It is described to go out to join the target transaction processing result progress condition comparison in defined item.
14. device according to claim 13, which is characterized in that target downstream connector circulation unit is specifically used for:
According to the target downstream node setting with the matched casting content of the target transaction processing result, Xiang Suoshu user It is broadcasted;
The casting content includes: the target transaction processing result, the target transaction processing result and presupposed information Combination or the combination of the target transaction processing result and the target dynamic variable for being input to the target transaction node;
Wherein, the target downstream node includes: interaction node, casting node or other transaction nodes.
15. a kind of terminal device, which is characterized in that the terminal device includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now intelligent interactive method based on intelligent Answer System as described in any in claim 1-7.
16. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor Intelligent interactive method based on intelligent Answer System of the Shi Shixian as described in any in claim 1-7.
CN201711421670.0A 2017-12-15 2017-12-25 Intelligent interactive method, device, terminal device and storage medium Pending CN110019731A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711421670.0A CN110019731A (en) 2017-12-25 2017-12-25 Intelligent interactive method, device, terminal device and storage medium
US16/106,680 US11341422B2 (en) 2017-12-15 2018-08-21 Multi-round questioning and answering methods, methods for generating a multi-round questioning and answering system, and methods for modifying the system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711421670.0A CN110019731A (en) 2017-12-25 2017-12-25 Intelligent interactive method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN110019731A true CN110019731A (en) 2019-07-16

Family

ID=67187013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711421670.0A Pending CN110019731A (en) 2017-12-15 2017-12-25 Intelligent interactive method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN110019731A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727776A (en) * 2019-10-12 2020-01-24 一汽轿车股份有限公司 Automobile question-answer interaction system and method based on artificial intelligence
CN110753316A (en) * 2019-09-26 2020-02-04 贝壳技术有限公司 Information sending method and device, computer readable storage medium and electronic equipment
CN110795544A (en) * 2019-09-10 2020-02-14 腾讯科技(深圳)有限公司 Content search method, device, equipment and storage medium
CN110929027A (en) * 2019-09-30 2020-03-27 珠海格力电器股份有限公司 Prompting system, prompting method, computer and waste accommodating device
CN113268042A (en) * 2021-05-13 2021-08-17 矿冶科技集团有限公司 Upper computer program processing method and device and electronic equipment
CN113743892A (en) * 2021-08-27 2021-12-03 广东电网有限责任公司 Tracking processing method and device for power grid infrastructure problem, computer equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912600A (en) * 2016-04-05 2016-08-31 上海智臻智能网络科技股份有限公司 Question-answer knowledge base and establishing method thereof, intelligent question-answering method and system
CN106095988A (en) * 2016-06-21 2016-11-09 上海智臻智能网络科技股份有限公司 Automatic question-answering method and device
WO2017028723A1 (en) * 2015-08-19 2017-02-23 阿里巴巴集团控股有限公司 Information processing method and device
CN106776649A (en) * 2015-11-24 2017-05-31 镇江诺尼基智能技术有限公司 Exchange method and system are taken turns a kind of intelligent answer based on visible process figure more
US20170278011A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Search, question answering, and classifier construction
US20170364805A1 (en) * 2016-06-21 2017-12-21 International Business Machines Corporation Cognitive question answering pipeline calibrating

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017028723A1 (en) * 2015-08-19 2017-02-23 阿里巴巴集团控股有限公司 Information processing method and device
CN106776649A (en) * 2015-11-24 2017-05-31 镇江诺尼基智能技术有限公司 Exchange method and system are taken turns a kind of intelligent answer based on visible process figure more
US20170278011A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Search, question answering, and classifier construction
CN105912600A (en) * 2016-04-05 2016-08-31 上海智臻智能网络科技股份有限公司 Question-answer knowledge base and establishing method thereof, intelligent question-answering method and system
CN106095988A (en) * 2016-06-21 2016-11-09 上海智臻智能网络科技股份有限公司 Automatic question-answering method and device
US20170364805A1 (en) * 2016-06-21 2017-12-21 International Business Machines Corporation Cognitive question answering pipeline calibrating

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
叶兰;易晓娥;: "图书馆视角下的MOOCs版权问题研究", 大学图书馆学报, no. 05 *
金红希;刘港;: "基于Internet的电子商务课程教学系统的构想", 沈阳教育学院学报, no. 02 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795544A (en) * 2019-09-10 2020-02-14 腾讯科技(深圳)有限公司 Content search method, device, equipment and storage medium
CN110795544B (en) * 2019-09-10 2023-07-21 腾讯科技(深圳)有限公司 Content searching method, device, equipment and storage medium
CN110753316A (en) * 2019-09-26 2020-02-04 贝壳技术有限公司 Information sending method and device, computer readable storage medium and electronic equipment
CN110753316B (en) * 2019-09-26 2022-04-26 贝壳技术有限公司 Information sending method and device, computer readable storage medium and electronic equipment
CN110929027A (en) * 2019-09-30 2020-03-27 珠海格力电器股份有限公司 Prompting system, prompting method, computer and waste accommodating device
CN110929027B (en) * 2019-09-30 2022-08-12 珠海格力电器股份有限公司 Prompting system, prompting method, computer and waste accommodating device
CN110727776A (en) * 2019-10-12 2020-01-24 一汽轿车股份有限公司 Automobile question-answer interaction system and method based on artificial intelligence
CN110727776B (en) * 2019-10-12 2023-05-12 一汽奔腾轿车有限公司 Automobile question-answering interaction system and interaction method based on artificial intelligence
CN113268042A (en) * 2021-05-13 2021-08-17 矿冶科技集团有限公司 Upper computer program processing method and device and electronic equipment
CN113268042B (en) * 2021-05-13 2022-06-24 矿冶科技集团有限公司 Upper computer program processing method and device and electronic equipment
CN113743892A (en) * 2021-08-27 2021-12-03 广东电网有限责任公司 Tracking processing method and device for power grid infrastructure problem, computer equipment and medium
CN113743892B (en) * 2021-08-27 2023-11-07 广东电网有限责任公司 Tracking processing method and device for power grid infrastructure problems, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN110019731A (en) Intelligent interactive method, device, terminal device and storage medium
CN107977236B (en) Question-answering system generation method, terminal device, storage medium and question-answering system
CN108090177B (en) Multi-round question-answering system generation method, equipment, medium and multi-round question-answering system
CN110019723A (en) Answering method, terminal device and storage medium based on question answering system
US20190188585A1 (en) Multi-round questioning and answering methods, methods for generating a multi-round questioning and answering system, and methods for modifying the system
CN108646580A (en) The determination method and device of control object, storage medium, electronic device
CN107294837A (en) Engaged in the dialogue interactive method and system using virtual robot
CN103369477B (en) Display media method, device, client, graphical control display packing and device
CN109783510A (en) Customer service auxiliary robot, method and system
CN110019716B (en) Multi-turn question and answer method, terminal equipment and storage medium
US20140028780A1 (en) Producing content to provide a conversational video experience
CN109462769A (en) Direct broadcasting room pendant display methods, device, terminal and computer-readable medium
CN106528692A (en) Dialogue control method and device based on artificial intelligence
CN109885277A (en) Human-computer interaction device, mthods, systems and devices
CN111131005A (en) Dialogue method, device, equipment and storage medium of customer service system
US10721281B2 (en) Method, system and non-transitory computer-readable recording medium for providing a multilateral communication service
CN110290344A (en) Translation on line method, system, equipment and storage medium based on teleconference
CN110019727A (en) Intelligent interactive method, device, terminal device and storage medium
CN109960489B (en) Method, device, equipment, medium and question-answering system for generating intelligent question-answering system
US20200193965A1 (en) Consistent audio generation configuration for a multi-modal language interpretation system
CN112487170B (en) Man-machine interaction dialogue robot system facing scene configuration
CN109960490A (en) Generate method, apparatus, equipment, medium and the question answering system of intelligent Answer System
CN115623133A (en) Online conference method and device, electronic equipment and readable storage medium
WO2013181633A1 (en) Providing a converstional video experience
CN113961680A (en) Human-computer interaction based session processing method and device, medium and electronic equipment

Legal Events

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