WO2020192450A1 - 交互消息处理方法、装置、计算机设备和存储介质 - Google Patents

交互消息处理方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020192450A1
WO2020192450A1 PCT/CN2020/079214 CN2020079214W WO2020192450A1 WO 2020192450 A1 WO2020192450 A1 WO 2020192450A1 CN 2020079214 W CN2020079214 W CN 2020079214W WO 2020192450 A1 WO2020192450 A1 WO 2020192450A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
message
applet
program
interactive
Prior art date
Application number
PCT/CN2020/079214
Other languages
English (en)
French (fr)
Inventor
张岩
刘荐
刘为
钟希亮
刘秋阁
牛成
周杰
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to JP2021522073A priority Critical patent/JP2022505659A/ja
Priority to KR1020217013964A priority patent/KR102592268B1/ko
Publication of WO2020192450A1 publication Critical patent/WO2020192450A1/zh
Priority to US17/320,005 priority patent/US11343221B2/en
Priority to US17/727,642 priority patent/US11799818B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • G06F9/4484Executing subprograms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/02Knowledge representation; Symbolic representation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking

Definitions

  • This application relates to the field of artificial intelligence technology, in particular to an interactive message processing method, device, computer equipment, and storage medium.
  • Artificial intelligence is a new technological science that studies and develops theories, methods, technologies and application systems used to simulate, extend and expand human intelligence. With the rapid development of information technology, artificial intelligence has been applied to all aspects of life and can provide users with intelligent dialogue services. For example, various conversational applications, conversational equipment, conversational service platforms, etc. For example, “Little Ai”, “Chihiro AI Dialogue Robot” and so on.
  • the interactive message processing method in the traditional intelligent dialogue service can provide a simple message dialogue function, and its function needs to be further expanded. Therefore, the user viscosity of the interactive message processing method needs to be further improved.
  • the embodiments of the present application provide an interactive message processing method, device, computer equipment, and storage medium, which can expand the function of interactive message processing and increase user viscosity.
  • the technical solution is as follows:
  • an interactive message processing method which is applied to a terminal, and the method includes:
  • the target interaction message based on the target applet is displayed in the target interaction interface.
  • an interactive message processing method which is applied to a background server, and the method includes:
  • an interactive message processing device includes:
  • the interactive message receiving module is configured to receive an interactive message to be processed in response to receiving a message input trigger instruction in the target interactive interface
  • the message display sending module is configured to display the pending interactive message in the target interactive interface in response to receiving a message sending trigger instruction in the target interactive interface, and send a message processing request based on the pending interactive message;
  • the message result receiving module is configured to receive the message processing result returned based on the message processing request, the message processing result being determined based on the target applet corresponding to the interactive message to be processed;
  • the target message display module is configured to display the target interaction message based on the target applet in the target interaction interface according to the message processing result.
  • an interactive message processing device includes:
  • the interactive message receiving module is configured to receive to-be-processed interactive messages
  • the message intention classification module is configured to classify the intent of the to-be-processed interactive message to obtain an intent classification result of the to-be-processed interactive message;
  • a message semantic analysis module configured to perform semantic analysis on the interactive message to be processed in response to the intent classification result including the intent of the applet, and determine the message keywords of the interactive message to be processed;
  • the target program determining module is configured to determine the program identifier of the target applet corresponding to the interactive message to be processed according to the message keyword;
  • the message result sending module is configured to send the message processing result based on the program identifier of the target applet.
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the interactive message processing method executed by the terminal as described in the above aspect .
  • a computer device including a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement interactive message processing performed by a background server as described in the above aspect method.
  • a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the interactive message processing method executed by the terminal as described in the above aspect.
  • a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the interactive message processing method executed by a background server as described in the above aspect.
  • the above interactive message processing method, device, computer equipment and storage medium can enable the terminal to display the target interactive message based on the target applet in the target interactive interface, so that the interactive message processing function can be expanded and the user viscosity can be improved.
  • the aforementioned interactive message processing method, device, computer equipment and storage medium can also increase the number of times the applet is used.
  • FIG. 1 is a schematic diagram of an application environment diagram of an interactive message processing method in an embodiment of this application
  • FIG. 2 is a schematic flowchart of an interactive message processing method in another embodiment of the application running on a terminal;
  • FIG. 3 is an exemplary diagram of an interactive message processing method in another exemplary embodiment of this application.
  • FIG. 4 is an exemplary diagram of an interactive message processing method in another exemplary embodiment of this application.
  • FIG. 5 is a schematic flowchart of an interactive message processing method in another embodiment of the application running on a background server
  • FIG. 6 is an exemplary diagram of an interactive message processing method in another exemplary embodiment of this application.
  • FIG. 7 is an exemplary diagram of an interactive message processing method in another exemplary embodiment of this application.
  • FIG. 8 is an implementation logic diagram of an interactive message processing method in another exemplary embodiment of this application.
  • FIG. 9 is a flow chart of the interactive message processing method at the product level in another exemplary embodiment of this application.
  • FIG. 10 is a partial flowchart of an interactive message processing method in another exemplary embodiment of this application.
  • FIG. 11 is a sequence diagram of an interactive message processing method according to another exemplary embodiment of this application.
  • FIG. 12 is a structural block diagram of an interactive message processing device in another embodiment of the application running on a terminal;
  • FIG. 13 is a structural block diagram of an interactive message processing device in another embodiment of the application running on a background server;
  • FIG. 14 is a schematic structural diagram of a computer device in another embodiment of the application.
  • Fig. 1 is a schematic diagram of an application environment of an interactive message processing method in an embodiment.
  • the interactive message processing method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the terminal 102 communicates with the background server 104 through the network.
  • the interactive message processing method of an embodiment of the present application may be run on the terminal 102.
  • the terminal 102 receives the message input trigger instruction in the target interactive interface, it receives the interactive message to be processed; when receiving the message sending trigger instruction in the target interactive interface, the terminal 102 displays the interactive message to be processed in the target interactive interface, based on the interactive message to be processed Send a message processing request; receive the message processing result returned based on the message processing request, which is determined based on the target applet corresponding to the interactive message to be processed; according to the message processing result, display the target interactive message based on the target applet in the target interactive interface .
  • the interactive message processing method can be implemented through an application, or through a public service platform under a parent application, or through a sub-application under the parent application.
  • the parent application may be a social platform, such as WeChat.
  • the public service platform can be a service platform such as an official account, a subscription account, and a service account, such as the Chihiro AI dialogue robot.
  • a sub-application refers to an application that can be used without downloading and installation, or a sub-application refers to an application that has a small installation package and can automatically complete the download and installation process in the background, such as a small program.
  • Sub-applications such as applets can be embedded in the parent application of the terminal, and corresponding business services can be provided to users by running the sub-applications in the parent application.
  • the interactive message processing method of another embodiment of the present application may also be run on the background server 104.
  • the backend server 104 receives the interactive message to be processed; classifies the interactive message to be processed to obtain the intent classification result of the interactive message to be processed; when the intent classification result includes the intent of the mini program, performs semantic analysis on the interactive message to be processed to determine the interaction to be processed Message keyword of the message; according to the message keyword, determine the program identifier of the target applet corresponding to the interactive message to be processed; send the message processing result based on the program identifier of the target applet.
  • the message processing result will be returned to the terminal 102, so that the terminal 102 can display the target interaction message based on the target applet in the target interaction interface according to the message processing result.
  • the terminal 102 may be a desktop device or a mobile terminal, such as a desktop computer, a tablet computer, or a smart phone.
  • the background server 104 may be an independent physical server, a physical server cluster, or a virtual server.
  • an interactive message processing method is provided. This method can be run on the terminal 102 in FIG. 1.
  • the interactive message processing method includes the following steps:
  • S202 In response to receiving a message input trigger instruction in the target interactive interface, receive an interactive message to be processed.
  • the terminal In response to receiving a message input trigger instruction in the target interactive interface, the terminal receives the interactive message to be processed.
  • the target interaction interface is the interface provided to the user on the terminal, and is the man-machine interaction interface provided to the user.
  • the target interaction interface may be an interface used to show that the user interacts with the product.
  • the product includes a small program that provides dialogue services, At least one product corresponding to this embodiment, such as a public service platform that provides dialogue services or an application program that provides dialogue services.
  • the manner of receiving the message input trigger instruction may be to receive a command input by the user through text or voice mode, and may also be to click, long press, select, or touch the message input control in the target interactive interface.
  • the message input control can be a control such as a message input box, keys, and buttons.
  • the display of the target interactive interface may be triggered to display the target interactive interface after receiving the target interactive interface display instruction.
  • the target interactive display instruction may be to open a product corresponding to the interactive message processing method.
  • the product includes at least one of an application program, a public service platform, and an applet.
  • the public service platform may be at least one of service platforms such as a public account, subscription account, and service account.
  • the target interactive display instruction can be to open an official account that provides intelligent dialogue functions. More specifically, the target interactive display instruction can be to open the official account of Qianxun AI dialogue robot on WeChat.
  • the interactive message to be processed is the message input by the user.
  • the way to receive the interactive message to be processed can be through the message input control in the target interactive interface to receive the text message or picture message input by the user; it can also be the voice message input by the user through the audio collection device such as a microphone; it can also be through the camera Other video capture devices capture video messages or picture messages input by users. That is, the interactive message to be processed may be at least one of a text message, a voice message, a picture message, and a video message.
  • S204 In response to receiving the message sending trigger instruction in the target interactive interface, display the interactive message to be processed in the target interactive interface, and send a message processing request based on the interactive message to be processed.
  • the terminal In response to receiving the message sending trigger instruction in the target interactive interface, the terminal displays the interactive message to be processed in the target interactive interface, and sends a message processing request based on the interactive message to be processed.
  • the message sending trigger instruction is used to trigger the terminal to send the received interactive message to be processed to the background server.
  • the method for the terminal to receive the message sending trigger instruction may be clicking or touching the send button, or clicking or touching the confirmation sending button, or receiving the message sending trigger instruction through voice or other command input.
  • Displaying the to-be-processed interactive message in the target interactive interface can enable the user to know what message he has sent during the intelligent conversation, and it can also facilitate the user to find the message record.
  • the message processing request is used to request the background server to process the to-be-processed interactive message, so as to complete the response to the to-be-processed interactive message in a complete conversation process.
  • the message processing request includes the to-be-processed interactive message and the user ID.
  • the user identification is used to determine the terminal corresponding to which user to return to when the user returns the message processing result.
  • the user identification may be the user identification of the user in the parent application.
  • S206 Receive a message processing result returned based on the message processing request, where the message processing result is determined based on the target applet corresponding to the interactive message to be processed.
  • the terminal receives the message processing result returned based on the message processing request, and the message processing result is determined based on the target applet corresponding to the interactive message to be processed.
  • the backend server After receiving the message processing request, the backend server processes the interactive message to be processed, obtains a message processing result based on the target applet corresponding to the interactive message to be processed, and feeds back the message processing result to the terminal.
  • the target applet refers to the applet corresponding to the interactive message to be processed.
  • Mini Program is a sub-application that can be used without downloading and installing.
  • developers can develop corresponding small programs for terminal applications (such as instant messaging applications, shopping applications, mail applications, etc.), which can be embedded in the terminal as a sub-application
  • the parent application program by running the child application program (ie the corresponding applet) in the parent application program can provide users with corresponding business services.
  • the terminal receives the message processing result returned by the background server based on the message processing request, and the message processing result is determined by the background server based on the target applet corresponding to the interactive message to be processed.
  • the message processing result may include the program information of the target applet.
  • the program information may include at least one of program link information and call interface information of the target applet.
  • the message processing result may also include page data of the target applet.
  • the page data may be the home page data of the target applet, or the target page data corresponding to the interactive message to be processed in the target applet.
  • the terminal displays the target interaction message based on the target applet in the target interaction interface according to the message processing result.
  • the target interaction message based on the target applet may include the message processing result, and may also include the message obtained after further processing the message interaction result.
  • the program information of the target applet can be displayed in the target interactive interface; the icon or home page of the target applet can also be displayed in the target interactive interface, and the icon can jump to the home page of the target applet through a hyperlink;
  • the call interface information of the target applet can be displayed in the target interactive interface.
  • the call interface information can be the address information of the target page of the functional module corresponding to the interactive message to be processed in the target applet; it can also be displayed in the target interactive interface
  • the target page of the target applet; the execution result after calling the target applet can also be displayed in the target interactive interface.
  • the exemplary embodiment provided in this application receives a pending interactive message when a message input trigger instruction is received in the target interactive interface; when a message sending trigger instruction is received in the target interactive interface, the target interactive interface Display pending interactive messages in the display, send a message processing request based on the pending interactive message; receive the message processing result returned based on the message processing request, the message processing result is determined based on the target applet corresponding to the pending interactive message; according to the message processing result, in the target
  • the interactive interface displays target interactive messages based on the target applet.
  • the target interactive message based on the target applet can be displayed in the target interactive interface based on the message processing result, this can expand the interactive message processing function and increase user viscosity.
  • the aforementioned interactive message processing method can also increase the number of times the applet is used.
  • the message processing result includes program information of the target applet.
  • the terminal displays the target interaction message based on the target applet in the target interaction interface, including: the terminal displays the target interaction message based on the target applet in the target interaction interface according to the program information of the target applet.
  • the program information may include program-related information among at least one of program link information, program name, program identifier, and program icon.
  • the content of the target interaction message may be at least one of the program identifier, program name, program link information, and program icon of the target applet.
  • the terminal can send a program query request to the background server through the program identifier or program name to obtain the program link information of the target applet, and then send the target program request to the target applet through the program link information to request the service of the target applet.
  • the terminal may also send a target program request to the target applet through at least one of the program identifier, the program name, the program link information, or the program icon, and request the service of the target applet.
  • the terminal based on the program information of the target applet and the target interaction message displayed on the target interaction interface can recommend the target applet to the user, which is convenient for the user to request the service of the target applet.
  • the function of the interactive message processing method is expanded, which can increase user viscosity.
  • the program information includes program link information of the target applet.
  • the program link information may include at least one of a program link address and a port number.
  • the terminal displays the target interaction message based on the target applet in the target interaction interface, including: the terminal displays the target interaction message based on the target applet in the target interaction interface according to the program link information of the target applet .
  • the terminal displays the target interactive message based on the target applet in the target interactive interface, which may be: the terminal displays the program link information of the target applet in the target interactive interface.
  • the user can link to the target applet by clicking the program link information on the target interactive interface displayed on the terminal. That is, by clicking the program link information, the terminal sends a target program request to the target applet, requesting services of the target applet.
  • the terminal displays the target interactive message based on the target applet in the target interactive interface. It can also be: the terminal displays other program information of the target applet in the target interactive interface, and displays other program information
  • the hyperlink is set as the program link information of the target applet.
  • the other program information can be linked to the target applet by clicking on the target interactive interface displayed on the terminal, that is, by clicking the other program information, the target service request is sent to the target applet to request the service of the target applet.
  • the exemplary embodiment provided in this application does not need to request program link information through other program information first, and then request the service of the target applet through program link information. Therefore, the service of the target applet can be quickly requested, and the user viscosity of interactive message processing can be further improved.
  • the program information includes call interface information of the target applet; the call interface information may be at least one of a call interface name and a call interface identification.
  • the calling interface information corresponds to the interactive message to be processed.
  • the terminal displays the target interaction message based on the target applet in the target interaction interface, including: the terminal displays the target interaction message based on the target applet in the target interaction interface according to the calling interface information of the target applet .
  • the terminal displays the target interaction message based on the target applet in the target interaction interface, which may be: the terminal displays the calling interface information of the target applet in the target interaction interface.
  • the user can click the calling interface information on the target interaction interface displayed on the terminal to link to the specific function module in the target applet corresponding to the interactive message to be processed. That is, by clicking on the calling interface information, the terminal sends a service request to the target applet to request specific services of the functional modules in the target applet.
  • the terminal displays the target interactive message based on the target applet in the target interactive interface.
  • the method may be: the terminal displays the program information of the target applet in the target interactive interface, and the program information is super
  • the link is set as the calling interface information of the target applet.
  • the user can click the program information on the target interaction interface displayed on the terminal to link to the specific function module in the target applet corresponding to the interactive message to be processed. That is, by clicking on the program information, the terminal sends a service request to the target applet, requesting specific services of the functional modules in the target applet.
  • the exemplary embodiment provided by this application can be linked to the specific function module corresponding to the interactive message to be processed in the target applet based on the calling interface information, thereby reducing user operation steps and further improving user viscosity .
  • the message processing result further includes page data of the target applet.
  • the terminal displays the target interaction message based on the target applet in the target interaction interface, including: the terminal determines the target interaction message based on the target applet according to the program information and page data of the target applet; The target interactive message is displayed in the interactive interface.
  • Page data refers to the page data provided by the target applet.
  • the page data can be home page data or target page data.
  • the home page refers to the interface displayed first when the target applet provides services in accordance with the normal process.
  • the target page refers to the page of the functional module corresponding to the interactive message to be processed in the target applet.
  • the content of the target interaction message includes page data and program information.
  • the manner in which the terminal displays the target interaction message in the target interaction interface may be: the terminal displays page data and program information in the target interaction page.
  • the manner in which the terminal displays the target interaction message in the target interaction interface may also be: the terminal displays the page data in the target interaction page, and sets the hyperlink of the page data as the program link information of the target applet.
  • the relevant information of the target applet can be displayed more intuitively, and the user can also You can get a clearer and more intuitive understanding of the services that the target applet can provide.
  • the page data includes the homepage page data of the target applet; the terminal displaying the target interaction message in the target interaction interface includes: the terminal renders the homepage page data and displaying the target applet in the target interaction interface Set the hyperlink of the home page according to the program link information of the target applet.
  • the content of the target interaction message includes the home page data of the target applet.
  • the terminal renders the home page data, displays the home page of the target applet in the target interactive interface, and sets the hyperlink of the home page as the program link information of the target applet.
  • the user can jump to the home page of the target applet by clicking the home page, so that the terminal provides the service of the target applet to the user. Therefore, on the basis that the target applet is recommended to the user and the user can clearly and intuitively understand the target applet service, the terminal can provide the user with the service of the target applet conveniently and quickly. In this way, user operations can be simplified and user viscosity can be improved.
  • the program link information of the applet may not be provided, and no jump is provided, that is, no hyperlink is set to the target applet.
  • the user can find the connection of the target applet by himself based on the target interaction message. ⁇ Into the way.
  • the product corresponding to this method may be a target service platform under WeChat (a type of social software). Small and micro students only need to have knowledge of the target service platform, but not the specific "Meituan Takeaway", “Tax Invoice Assistant” and other mini programs, and tell the target service platform, "I want to order 10 Take out and ask for an invoice.”
  • the terminal After obtaining the to-be-processed interactive message, the terminal forwards it to the background server of the target service platform. After the background server of the target service platform receives the to-be-processed interactive message, it processes it accordingly, and finally returns the message processing result.
  • the results of the message processing included the words "Try using the following two programs", and the program names and home page data of the two target applets "Meituan Waimai" and "Tax Invoice Assistant".
  • the terminal displays the target interaction message, it displays the bottom line, the program names of the two target applets, and the home page data. The user can click on the target interactive message to make the terminal jump to the corresponding target applet.
  • the page data includes target page data of the target applet.
  • the target page data corresponds to the call interface information of the target applet, and the call interface information corresponds to the interactive message to be processed.
  • the terminal displays the target interaction message in the target interaction interface, including: the terminal renders the target page data, displays the target page of the target applet in the target interaction interface, and sets the hyperlink of the target page according to the calling interface information of the target applet.
  • the content of the target interaction message includes target page data of the target applet.
  • the terminal renders the target page data, displays the target page of the target applet in the target interactive interface, and sets the hyperlink of the target page as the calling interface information of the target applet.
  • the target page is the page in the target applet that provides the functional module corresponding to the interactive message to be processed.
  • the user can click the target page to control the terminal to jump to the target page of the target applet, and provide the service of the target applet to the user.
  • the target interaction message displayed by the terminal may include "OK, open the applet to place an order", and the target applet "Meituan Waimai" determined by the background server. The name of the program, and the target page corresponding to the call interface information of the order function module of the target applet.
  • the exemplary embodiments provided in this application enable the terminal to provide the user with the service of the target applet conveniently and quickly on the basis that the user can clearly and intuitively understand the service of the target applet, thereby increasing user viscosity.
  • the terminal renders the target page data, displays the target page of the target applet in the target interactive interface, and sets the hyperlink of the target page according to the calling interface information of the target applet, and further includes: The terminal receives the service request sending instruction based on the target page; the service request sending instruction includes the program information and preset parameters of the target applet; the terminal sends the target service request according to the program information and preset parameters; the terminal receives the service response based on the target service request Result: The terminal displays the service response result based on the target service request.
  • the target interaction message includes interface invocation information of the target applet, and the interface invocation information corresponds to the to-be-processed interaction message.
  • the terminal receives the service request to send instructions. It can be received by clicking, double-clicking or long-pressing the target interactive message, or clicking, double-clicking or long-pressing the preset button or other control in the target interactive message Way to receive.
  • the target service request is used to request the service of the target applet.
  • the program information may be program link information.
  • the preset parameters may be related parameters that the terminal needs to provide when requesting the target applet.
  • the preset parameter may be received by the terminal before receiving the service request sending instruction.
  • the preset parameter may also be extracted from the message processing result by the terminal before receiving the service request instruction, and the preset parameter corresponds to the interactive message to be processed.
  • the preset parameters can be the company information that needs to be invoiced entered by the user, or can be the company information that needs to be invoiced extracted from the interactive message to be processed by the backend server.
  • the preset parameters can be the takeaway product, quantity, merchant and other related information entered by the user, or the takeaway that the backend server extracts from the pending interactive message Related information such as the product, quantity, and business of the company.
  • the target service request includes program information and preset parameters.
  • the terminal sends the target service request to the server of the target applet according to the program information.
  • the server of the target applet executes the target service according to the target service request, and returns the service response result to the terminal.
  • the terminal receives the service response result returned based on the target service request; the terminal displays the service response result returned based on the target service request.
  • the exemplary embodiment provided in this application does not require the user to understand the specific operation method of the target applet when calling the target applet.
  • the service sending request can be received based on the target page, and then the target service request can be sent to the server of the target applet based on the service sending request, and finally the receiving, Show service response results.
  • the user's operation steps can be reduced, and the service of the target applet can be provided to the user more conveniently and quickly, thereby further increasing the user's viscosity.
  • the terminal displaying the target interaction message in the target interaction interface includes: the terminal displays page data through a subpage embedded in the target interaction interface, and setting a hyperlink to the page data according to the program information of the target applet .
  • the content of the target interaction message also includes page data.
  • the page data is displayed in a sub-page embedded in the target interactive interface.
  • displaying the page data in a way different from ordinary interactive messages can enable users to quickly distinguish between ordinary interactive messages and target interactive messages based on the target applet.
  • the terminal sets the hyperlink of the page data according to the program information of the target applet. In this way, the user can link to the target applet conveniently and quickly, thereby further improving user viscosity.
  • the terminal displays the target interaction message based on the target applet in the target interaction interface according to the message processing result, and then further includes: the terminal receives the program request sending instruction based on the target interaction message; the terminal sends according to the program request The program information of the target applet carried by the instruction sends the target program request; the terminal receives the program response information returned according to the target program request; the terminal displays the program response information returned according to the target program request.
  • the program information included in the message processing result may include program link information of the target applet.
  • the terminal requests sending instructions based on the target interactive message receiving program, which can be received by clicking, double-clicking, or long-pressing the target interactive message.
  • the program request sending instruction carries the program link information of the target applet.
  • the terminal sends a target program request according to the program link information, and the target program request carries the program link information and the terminal identifier.
  • the terminal sends the target program request to the server of the target applet.
  • the background server can return the program response information determined based on the target program request to the terminal.
  • the program response information may include the home page data of the target applet.
  • the program information included in the message processing result may also include call interface information of the target applet, and the call interface information corresponds to the interactive message to be processed.
  • the terminal requests sending instructions based on the target interactive message receiving program, which can be received by clicking, double-clicking, or long-pressing the target interactive message.
  • the program request sending instruction carries the calling interface information of the target applet.
  • the terminal sends a target program request according to the calling interface information, and the target program request carries the calling interface information and the terminal identifier.
  • the terminal sends the target program request to the server of the target applet.
  • the background server can return the program response information determined based on the target program request to the terminal.
  • the program response information may include target page data of the target applet.
  • the user can receive and display the response information of the program by receiving the program request sending instructions, sending the target program request, and then receiving and displaying the program response information. Based on the program response information, make the relevant service request of the target applet. In this way, providing users with a way to access the target applet can increase the utilization rate of the target applet.
  • the program response information includes target page data. That is, the target program request also carries the calling interface information.
  • the terminal can obtain the calling interface information by acquiring the calling interface information of the function module clicked in the target interaction message when receiving the program request to send the instruction.
  • the terminal After the terminal sends the target program request, it receives and displays the program response information returned based on the target program request, and then includes: the terminal receives the service request sending instruction based on the program response information; the service request sending instruction includes the call interface information of the target applet and Preset parameters; the terminal sends a target service request according to the preset parameters and calling interface information; the terminal receives the service response result returned according to the target service request; the terminal displays the service response result returned according to the target service request.
  • the method of receiving the service request sending instruction based on the program response information may be: the terminal receives the user clicking a preset button in the target page, and the preset button may be buttons such as "submit” and "confirm”.
  • the service request sending instruction includes the calling interface information and preset parameters of the target applet. Based on the calling interface information, the terminal requests the function module service corresponding to the target applet.
  • the preset parameter is a parameter required by the function module service.
  • the preset parameters correspond to the interactive messages to be processed.
  • the preset parameter may be determined by the background server according to the to-be-processed interactive message, and returned to the terminal through the message processing result.
  • the target service request carries invocation interface information and preset parameters.
  • the target service request is used to request the service provided by the function module required by the user in the target program, that is, the function module service.
  • the target service request also carries the terminal identifier, so that the server of the target applet can return the service response result to the terminal sending the target service request according to the terminal identifier.
  • the terminal receives the service response result returned according to the target service request; the terminal displays the service response result returned according to the target service request.
  • the service response result is the execution result returned by the background server according to the target service request.
  • the exemplary embodiment provided in this application first provides the user with program information of the target applet, receives the program request sending instruction based on the program information; then sends the target program request, receives and displays the target page data; and then based on the target
  • the page receives service request sending instructions, sends target service requests, receives and displays service response results.
  • it can also provide an extension of the service function of the target applet.
  • the user viscosity can be increased.
  • the terminal receiving the service request sending instruction based on the program response information includes: the terminal receives a parameter modification instruction based on the program response information; after the terminal modifies the preset parameters according to the parameter modification instruction, the terminal receives the response information based on the program response information.
  • Service request sending instruction; the service request sending instruction includes the calling interface information of the target applet and the modified preset parameters.
  • the preset parameters after the preset parameters are determined, they can also be modified. In this way, after the user sends the interactive message to be processed, if the relevant parameters required by the user change, or the preset parameters in the message processing result are different from what the user actually wants to express, they can be modified. Therefore, the target service request can be made more in line with the actual needs of the user, thereby further improving user viscosity.
  • the present application also provides an interactive message processing method running on a background server, and the method may be running on the background server 104 in FIG.
  • the method includes:
  • S502 Receive an interactive message to be processed.
  • the to-be-processed interactive message can be received by the terminal and forwarded to the background server, and specifically can be forwarded by the terminal through the target service platform running under the parent application.
  • the background server receives the pending interactive message.
  • the to-be-processed interactive message may be a text message, a voice message, or a video, picture, or emoticon message.
  • the terminal may forward the to-be-processed interactive message to the background server for processing.
  • the efficiency of the target service platform in responding to customers can be improved, thereby further increasing user viscosity.
  • the terminal may also forward the to-be-processed interactive message to the back-end server according to a preset strategy after obtaining the to-be-processed interaction message input by the user, that is, the back-end server will receive the to-be-processed interaction message according to the corresponding strategy.
  • the preset strategy may be to forward once every preset time interval, or it may be forwarded once every time a preset number of to-be-processed interactive messages are received, and the preset number is at least 1.
  • S504 Perform intent classification on the interactive message to be processed, and obtain an intent classification result of the interactive message to be processed.
  • the background server classifies the intent of the interactive message to be processed, and obtains the intent classification result of the interactive message to be processed.
  • the back-end server may first perform semantic understanding of the interactive message to be processed, obtain the semantic information of the interactive message to be processed, and then perform intent classification on the semantic information to obtain the intent classification result.
  • Intention classification refers to the classification of the intrinsic intent expressed by the semantic information in the interactive message to be processed.
  • the intent category of the intrinsic intent can include at least one of small chat intention, character intention, music intention, and sub-application intention (small program intention). kind of intention category. In this implementation, the number of intention categories is at least two, and it can also be more than ten or even dozens.
  • the intention categories in this embodiment at least include small chat intentions and sub-application intentions. Each intent category can be embodied by a domain.
  • the user's natural language messages can be scored through a preset mapping process after speech recognition and semantic understanding, and finally fall into an optimal domain. Get the return result to be output in this domain.
  • Different domains represent different artificial intelligence capabilities.
  • an intent category will eventually be matched, and the intent classification result is determined based on the matched intent category.
  • S506 In response to the intent classification result including the intent of the applet, perform semantic analysis on the interactive message to be processed, and determine the message keyword of the interactive message to be processed.
  • the background server performs semantic analysis on the interactive message to be processed, and determines the message keywords of the interactive message to be processed.
  • the background server performs semantic analysis on the interactive message to be processed, and obtains the message keywords of the interactive message to be processed.
  • Semantic analysis can be achieved through independent semantic analysis algorithms, or through neural network models. Semantic analysis can be achieved through NLP (Neuro-Linguistic Programming) technology to obtain message keywords.
  • the message keyword is a word that reflects important information of the interactive message to be processed in the interactive message to be processed. For example, when the interactive message to be processed is "I want to order takeaway", the message keywords obtained by semantic analysis may include: order takeaway.
  • the background server can determine the target applet corresponding to the interactive message to be processed according to the message keywords.
  • the program identifier of the target applet By obtaining the program identifier of the target applet, the program identifier of the target applet corresponding to the interactive message to be processed can be obtained.
  • the target applet when the message keyword is ordering food delivery, the target applet can be determined as the applet ordering food delivery.
  • the background server may determine the program identifier of the target applet corresponding to the interactive message to be processed according to the message keywords. In this way, the background server may not need to determine the program identifier of the target applet corresponding to the interactive message to be processed when the intent classification result does not include the intent of the applet.
  • the backend server performs semantic analysis on the interactive message to be processed, determines the message keyword of the interactive message to be processed, and determines the program identifier of the target applet corresponding to the interactive message to be processed according to the message keyword.
  • the back-end server classifies the intent of the interactive message to be processed, and obtains the intent classification result of the interactive message to be processed, which can be implemented by a neural network model. For example, it can be realized by a fully connected neural network, and the number and depth of hidden layers of the fully connected neural network can be adjusted according to the annotation data.
  • the output of the fully connected neural network can use sigmoid (threshold function) as an excitation, so that the output value is between 0 and 1.
  • the label data can be represented by a vector of 0 and 1.
  • the number of bits in the vector is equal to the number of small programs to be classified. That is, the identifier of the applet corresponding to 1 in the vector is the program identifier of the target applet.
  • S510 Send the message processing result based on the program identifier of the target applet.
  • the background server sends the message processing result based on the program identifier of the target applet. Therefore, the sent message processing result is based on the message processing result of the target applet.
  • the message processing result can be the program identifier of the target applet, or the program information of the target applet found based on the program identifier, or the target obtained after the background server calls the target applet for execution based on the program identifier. The execution result of the applet.
  • the program information may include at least one of program link information, program name, program identifier, and program icon of the target applet related to the program, and may also include call interface information of the target applet.
  • the terminal can display the target interaction message based on the target applet in the target interaction interface according to the message processing result returned by the background server.
  • the background server receives the interactive message to be processed; the background server classifies the intent of the interactive message to be processed to obtain the intent classification result of the interactive message to be processed; the background server performs semantic analysis on the interactive message to be processed to determine the message of the interactive message to be processed Keywords; the background server determines the program identifier of the target applet corresponding to the interactive message to be processed according to the message keywords; the background server sends the message processing result based on the program identifier of the target applet. Since the message processing result based on the target applet can be fed back, the interactive message processing function can be expanded, and the user viscosity can be improved.
  • the above interactive message processing method can also increase the number of times the target applet is used.
  • the user actively asks the target service platform, such as the official account of the Qianxun AI dialogue robot, "What is my reimbursement tax number?"
  • the backend server of the target service platform receives this message.
  • classify its intent and the result of the intent classification obtained includes the intent of the applet.
  • the program identifier of the mini program "Tax Invoice Assistant" can be determined as the program identifier of the target mini program according to the message keywords.
  • the message processing result sent by the background server to the terminal may be program information of the "tax invoice assistant".
  • the result displayed by the terminal is shown in Figure 6, which is the link page of the target program. The user can enter the target applet by clicking the link page.
  • the user said: "Chihiro ⁇ I'm so hungry ⁇ ” while chatting on the target service platform.
  • the backend server of the target service platform receives the to-be-processed interactive message, through semantic analysis, the backend server can extract the keyword "hungry".
  • the message processing result returned to the terminal in addition to gossip, you can also Including the program information of the "Meituan Takeaway" applet recommended and distributed for users.
  • the back-end server classifies the intent of the interactive message to be processed to obtain the intent classification result of the to-be-processed interactive message, including: the back-end server extracts the message feature of the to-be-processed interactive message; the back-end server uses the neural network model to classify the message feature Perform preset intent classification mapping to obtain the intent classification result of the interactive message to be processed.
  • the background server after receiving the interactive message to be processed, the background server first extracts the message characteristics of the interactive message to be processed.
  • the message feature may include at least one feature vector of a message keyword vector and a message semantic vector.
  • the back-end server performs preset intent classification mapping on message features through the neural network model, and obtains the intent classification result of the interactive message to be processed. In this way, the back-end server obtains the intent classification result of the interactive message to be processed through the neural network model for mapping.
  • the accuracy of the intention classification result can be improved, and the user viscosity can be improved.
  • the neural network model is a fully connected neural network model.
  • the back-end server performs preset intent classification mapping on the message features through the neural network model to obtain the intent classification results of the interactive messages to be processed, including: the back-end server performs convolution mapping on the message features through the convolutional layer of the fully connected neural network model to obtain the volume Product results; the back-end server maps the convolution results through the pooling layer of the fully-connected neural network model to obtain the pooled results; the back-end server performs fully-connected mapping of the pooled results through the fully-connected layer of the fully-connected neural network model, Obtain the intent classification result of the interactive message to be processed.
  • the background server performs a preset intent classification mapping on the extracted message features through a fully connected neural network model.
  • the background server performs convolution mapping through the convolutional layer to obtain the convolution result, performs pooling mapping through the pooling layer to obtain the pooling result, and performs fully connected mapping through the fully connected layer to obtain the intent classification result .
  • the accuracy of the intention classification result can be further improved, thereby further increasing user viscosity.
  • the background server extracting the message characteristics of the interactive message to be processed includes: the background server performs voice recognition on the interactive message to be processed to obtain the text message; and extracting the message characteristics of the text message.
  • Voice recognition can convert voice messages into text messages.
  • Voice recognition can be achieved through ASR (Automatic Speech Recognition, automatic speech recognition) technology.
  • the interactive message to be processed is a voice message
  • the back-end server performs voice recognition on the voice message to obtain the text message, and then extracts the message characteristics of the text message to obtain the message characteristics of the interactive message to be processed.
  • the input efficiency of message input can be improved, and more effective information can be received, so that a small program that meets the needs of the user can be recommended, and the user viscosity can be further improved.
  • the product of this method is the target service platform.
  • the implementation logic diagram of the target service platform may be as shown in FIG. 8.
  • the background server obtains the interactive messages to be processed actively or in small chats from the user through the terminal.
  • the interactive messages to be processed may be in text form or voice form.
  • the terminal forwards the to-be-processed interactive message to the background server of the target service platform (official account).
  • the background server of the target service platform can perform voice recognition on the interactive message to be processed through the ASR voice recognition engine, and convert the voice message into a text message.
  • the background server can perform semantic analysis on the text message through the NLP semantic understanding engine, extract the message features of the text message, such as message keywords, and perform preset intent classification mappings on the message features through the neural network model to obtain the interactive message to be processed According to the message keywords, determine the program identifier of the target applet corresponding to the interactive message to be processed.
  • the background server obtains the program information of the target applet according to the program identifier of the target applet, and then sends the program information to the terminal.
  • the program information includes program link information of the target applet. Distribute the program link information of the target applet through the terminal.
  • the exemplary embodiments provided in this application can realize the function of distributing or invoking the applet with the help of the target service platform.
  • the product level of the target service platform its logical flow can be shown in Figure 9.
  • the user can actively input a clear demand through voice or typing, such as "I want to order takeaway".
  • the user exposes related vague needs during the small chat, for example, mentioning "I am hungry” in the small chat.
  • the intention classification of active "I want to order food” or passively exposed “I'm hungry” will fall into the mini program's intention.
  • the target applet After the target applet is determined, it can be to output the guide wording, distribute the program link information of the target applet, or it can call the call interface information of the target applet, which will reach the user's final operation and return the final result.
  • the background server sends the message processing result based on the program identifier of the target applet, including: the background server obtains program information of the target applet according to the program identifier; the program information includes program link information of the target applet Or call the interface information; the background server sends the message processing result based on the program information.
  • the background server can look up the program information of the target applet in the local database according to the program identifier.
  • the background server may also send a search request to the server of the target applet according to the program identifier, and request the program information of the target applet corresponding to the program identifier, so as to obtain the program information of the target applet.
  • the program link information may include at least one link information of the link address and port number of the target applet.
  • the calling interface information may include at least one link information of the link address and port number of the function module of the target applet.
  • the message processing result sent by the background server based on the program information can be the program link information of the target applet, or the call interface information of the target applet, or the program link information or the page data corresponding to the call interface information.
  • the message processing result fed back by the back-end server to the terminal includes program link information or call interface information, so that users can easily and quickly access the target applet through the program link or call interface information, and can also improve the target The number of uses of the applet.
  • the background server sends the message processing result based on the program information, including: the background server requests the page data of the target applet according to the program information; after the background server receives the page data, based on the page data and the program Information, send the message processing result.
  • the background server sends a page request to the server of the target applet according to the program information to request the page data of the target applet. After receiving the page request, the server of the target applet returns the page data to the background server according to the page request. After receiving the page data, the background server sends the message processing result to the terminal based on the page data and program information.
  • the message processing result that the background server feeds back to the terminal includes page data and program information. In this way, the terminal can display page data, so that the user can more intuitively understand the services provided by the target applet.
  • the background server determines the program identifier of the target applet corresponding to the interactive message to be processed according to the message keyword, including: the background server determines the candidate applet corresponding to the interactive message to be processed according to the message keyword; The background server extracts the applet characteristics of the candidate applet; the background server sorts the candidate applet according to the applet characteristics, and determines the program identifier of the candidate applet in a preset position as the program identifier of the target applet.
  • the background server can determine at least one candidate applet according to the message keywords.
  • the weather-corresponding applet can be China Weather Net, Moji Weather, etc.
  • the target applet with the highest correlation with the interactive message to be processed is determined by sorting these candidate applets.
  • the backend server can combine the applet features of the candidate applets through a linear regression model, optimize the number of times the applet is opened, and then obtain the ranking results of the applets.
  • the program identifier of the candidate applet arranged in the preset position can be determined as the program identifier of the target applet.
  • the preset position can be any position before, such as the first position.
  • applet features can include text features and non-text features.
  • the text feature may be at least one of keywords, word frequency statistics, and matching degree with the message.
  • the non-text feature may be at least one of the quality score, the number of fans, and the number of times the mini program is opened.
  • the exemplary embodiment provided in this application determines the target applet corresponding to the handover message to be processed by sorting the program identifiers of the candidate applets.
  • the back-end server can determine a small program that better meets the needs of the user, and improve the user's satisfaction, thereby further increasing the user's viscosity.
  • the background server extracting the applet characteristics of the candidate applet includes: when the candidate applet is a text applet, the background server extracts the text characteristics of the candidate applet and the non-text characteristics of the candidate applet ; Or, when the candidate applet is a non-text applet, the background server extracts the non-text characteristics of the candidate applet.
  • the text applet refers to the applet that can get text answers, such as the weather applet. If the question is "Beijing weather", the applet can give the result as text, such as "Sunny, 10 degrees Celsius”.
  • Non-text applets refer to applets that have no answers to the questions and directly give the page jump, such as ticket booking applets and music playing applets.
  • the text feature may be at least one of keywords, word frequency statistics, and matching degree with the message.
  • the non-text feature may be at least one of the quality score, the number of fans, and the number of times the mini program is opened.
  • the text applet needs to extract text features and non-text features, and the non-text applet needs to extract non-text features.
  • the background server can sort the candidate applets according to the characteristics of these applications to determine the target applets.
  • the background server of the target service platform classifies the interactive message to be processed based on the neural network model, and the intent classification result also includes the candidate applet Logo.
  • the background server pulls a list of candidate applets, and then determines whether these candidate applets are text-type applets, for example, whether they are text-type applets.
  • the candidate applet is a text applet
  • the background server obtains the text result of the candidate applet, extracts the text characteristics of the candidate applet according to the text results, and then extracts the non-text characteristics of the candidate applet.
  • the candidate applet is a non-text applet
  • the background server obtains the non-text characteristics of the candidate applet.
  • the background server sorts the candidate applets based on these text features and non-text features through a logistic regression model, and then determines the target applets.
  • the background server extracts both text features and non-text features from text applets, and extracts non-text features from non-text applets.
  • Various factors can be comprehensively considered as much as possible. , Can make the sorting result more accurate.
  • the background server can determine the target applet that is more in line with the user's needs, and improve the user's satisfaction, thereby further increasing the user's viscosity.
  • the terminal displays the target interactive interface.
  • a message input trigger instruction is received in the target interactive interface, it receives a pending interactive message; when the terminal receives a message sending trigger instruction in the target interactive interface, it displays the pending interactive message in the target interactive interface.
  • the background server receives the interactive message to be processed; the background server classifies the interactive message to be processed to obtain the intent classification result of the interactive message to be processed; when the intent classification result includes the intent of the mini program, the background server performs semantic analysis on the interactive message to be processed to determine the Message keywords for processing interactive messages; the background server determines the program identifier of the target applet corresponding to the interactive message to be processed according to the message keywords; the background server sends the message processing result to the terminal based on the program identifier of the target applet.
  • the terminal receives the message processing result returned based on the message processing request, and displays the program information based on the target applet in the target interactive interface according to the message processing result; the terminal receives the program request to send the instruction based on the displayed program information; then, the terminal according to the program
  • the program information of the target applet carried in the request sending instruction sends the target program request to the server of the target applet.
  • the server of the target applet returns the program response information to the terminal according to the request of the target program.
  • the terminal displays the target page data according to the program response information, and receives a parameter modification instruction based on the displayed target page data; after the terminal modifies the preset parameters according to the parameter modification instruction, the terminal sends the instruction based on the program response information and receives the service request; the service request sends the instruction It includes the calling interface information of the target applet and the modified preset parameters; then the terminal sends the target service request to the server of the target applet according to the modified preset parameters and the calling interface information.
  • the server of the target applet returns the service response result to the terminal according to the target service request.
  • the terminal receives the service response result returned according to the target service request
  • the terminal displays the service response result returned according to the target service request.
  • an interactive message processing apparatus corresponding to the foregoing interactive message processing method running on a terminal is provided, including:
  • the interactive message receiving module 1202 is configured to receive a pending interactive message in response to receiving a message input trigger instruction in the target interactive interface;
  • the message display sending module 1204 is configured to display the pending interaction message in the target interaction interface in response to receiving a message sending trigger instruction in the target interaction interface, and send a message processing request based on the pending interaction message ;
  • the message result receiving module 1206 is configured to receive the message processing result returned based on the message processing request, the message processing result being determined based on the target applet corresponding to the interactive message to be processed;
  • the target message display module 1208 is configured to display a target interaction message based on the target applet in the target interaction interface according to the message processing result.
  • the above interactive message processing device receives the interactive message to be processed when the message input trigger instruction is received in the target interactive interface; when the message sending trigger instruction is received in the target interactive interface, displays the interactive message to be processed in the target interactive interface, based on Send a message processing request for the interactive message to be processed; receive the message processing result returned based on the message processing request, the message processing result is determined based on the target applet corresponding to the interactive message to be processed; according to the message processing result, display the target applet in the target interactive interface
  • the target interaction message Since the returned message processing result based on the target applet can be received, and the target interactive message based on the target applet can be displayed in the target interactive interface based on the message processing result, this can expand the interactive message processing function and increase user viscosity.
  • the above interactive message processing device can also increase the frequency of using the applet.
  • the message processing result includes program information of the target applet; the target message display module 1208 is configured to interact with each other in the target according to the program information of the target applet.
  • the target interaction message based on the target applet is displayed in the interface.
  • the program information includes the program link information of the target applet; the target message display module 1208 is configured to display the program link information in the target applet according to the program link information of the target applet.
  • the target interactive message based on the target applet is displayed in the interactive interface.
  • the program information includes call interface information of the target applet; the call interface information corresponds to the to-be-processed interactive message; the target message display module 1208 is configured to The calling interface information of the target applet is displayed in the target interaction interface based on the target interaction message of the target applet.
  • the message processing result further includes page data of the target applet; the target message display module 1208 is configured to be based on the program information and the page data of the target applet , Determining a target interaction message based on the target applet; displaying the target interaction message in the target interaction interface.
  • the page data includes the home page data of the target applet; the target message display module 1208 is configured to render the home page data and display it in the target interactive interface On the home page of the target applet, a hyperlink to the home page is set according to the program link information of the target applet.
  • the page data includes target page data of the target applet; the target page data corresponds to the call interface information of the target applet, and the call interface information corresponds to the target applet.
  • processing interactive message correspondence target message display module 1208, configured to render the target page data, display the target page of the target applet in the target interactive interface, according to the call of the target applet
  • the interface information sets the hyperlink of the target page.
  • it further includes:
  • the service request receiving module is configured to receive a service request sending instruction based on the target page; the service request sending instruction includes program information and preset parameters of the target applet;
  • the service request determination module is configured to send a target service request according to the program information and the preset parameters
  • the service response receiving module is configured to receive the service response result returned based on the target service request, and display the service response result returned based on the target service request.
  • the target message display module 1208 is configured to display the page data through a sub-page embedded in the target interactive interface, and set the page data according to the program information of the target applet. Hyperlink to page data.
  • it further includes:
  • a program request receiving module configured to receive a program request sending instruction based on the target interactive message
  • the program request sending module is configured to send a target program request according to the program information of the target applet carried in the program request sending instruction;
  • the program response receiving module is configured to receive the program response information returned according to the target program request, and display the program response information returned according to the target program request.
  • the program response information includes target page data; the target page data corresponds to the to-be-processed interactive message; the device further includes:
  • the service request receiving module is configured to receive a service request sending instruction based on the program response information; the service request sending instruction includes the calling interface information and preset parameters of the target applet;
  • the service request determining module is configured to send a target service request according to the preset parameters and the calling interface information
  • the service response receiving module is configured to receive the service response result returned according to the target service request, and display the service response result returned according to the target service request.
  • it further includes: a modification instruction receiving module.
  • a modification instruction receiving module configured to receive a parameter modification instruction based on the program response information
  • the service request receiving module is further configured to, after modifying the preset parameters according to the parameter modification instruction, receive a service request sending instruction based on the program response information;
  • the service request sending instruction includes the calling interface information of the target applet and the modified preset parameters.
  • an interactive message processing apparatus corresponding to the foregoing interactive message processing method running on a background server, including:
  • the interactive message receiving module 1302 is configured to receive to-be-processed interactive messages
  • the message intent classification module 1304 is configured to perform intent classification on the to-be-processed interactive message to obtain an intent classification result of the to-be-processed interactive message;
  • the message semantic analysis module 1306 is configured to perform semantic analysis on the interactive message to be processed in response to the intent classification result including the intent of the applet, and determine the message keywords of the interactive message to be processed;
  • the target program determining module 1308 is configured to determine the program identifier of the target applet corresponding to the interactive message to be processed according to the message keyword;
  • the message result sending module 1310 is configured to send the message processing result based on the program identifier of the target applet.
  • the above interactive message processing device receives the interactive message to be processed; classifies the intent of the interactive message to be processed to obtain the intent classification result of the interactive message to be processed; performs semantic analysis on the interactive message to be processed to determine the message keyword of the interactive message to be processed; according to the message key Word, determine the program identifier of the target applet corresponding to the interactive message to be processed; send the message processing result based on the program identifier of the target applet. Since the message processing result based on the target applet can be fed back, the interactive message processing function can be expanded, and the user viscosity can be improved. At the same time, due to the limitations of the way of obtaining the applet, the above interactive message processing device can also increase the number of times the target applet is used. In addition, based on the interactive message processing device of this embodiment, it is also easy to form a closed operation loop, thereby facilitating the statistics of traffic revenue.
  • it further includes: a message feature extraction module
  • the message feature extraction module is configured to extract the message feature of the interactive message to be processed
  • the message intent classification module 1304 is also configured to perform a preset intent classification mapping on the message features through a neural network model to obtain an intent classification result of the interactive message to be processed.
  • the neural network model is a fully connected neural network model.
  • the message intention classification module 1304 is further configured to perform convolutional mapping on the message features through the convolutional layer of the fully connected neural network model to obtain a convolution result; and pair the message features through the pooling layer of the fully connected neural network model The convolution result is pooled and mapped to obtain a pooled result; the pooled result is fully connected to the pooled result through the fully connected layer of the fully connected neural network model to obtain the intention classification result of the interactive message to be processed.
  • it further includes: a voice recognition module;
  • a voice recognition module configured to perform voice recognition on the to-be-processed interactive message to obtain a text message
  • the message feature extraction module is also configured to extract the message feature of the text message.
  • it further includes: a program information determining module
  • the program information determining module is configured to obtain program information of the target applet according to the program identifier; the program information includes program link information or call interface information of the target applet;
  • the message result sending module 1310 is also configured to send the message processing result based on the program information.
  • it further includes: a page data request module
  • the page data request module is configured to request the page data of the target applet according to the program information
  • the message result sending module 1310 is further configured to send a message processing result based on the page data and the program information after receiving the page data.
  • it further includes: a candidate program determination module and a program feature extraction module;
  • the candidate program determining module is configured to determine the candidate applet corresponding to the interactive message to be processed according to the message keyword;
  • the program feature extraction module is configured to extract the applet characteristics of the candidate applet
  • the target program determining module 1308 is further configured to sort the candidate applets according to the characteristics of the applets, and determine the program identifiers of the candidate applets in a preset position as the program of the target applet Logo.
  • the program feature extraction module is configured to extract text features of the candidate applet and non-text features of the candidate applet in response to the candidate applet being a text applet; Alternatively, it is configured to extract the non-text feature of the candidate applet in response to the candidate applet being a non-text applet.
  • a computer device is provided, and the computer device may be a server or a terminal.
  • the computer equipment includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer program is executed by the processor to realize an interactive message processing method.
  • FIG. 14 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the specific computer equipment may include More or fewer parts than shown in the figure, or some parts are combined, or have a different arrangement of parts.
  • a computer device in another embodiment, is provided, and the computer device may be a server or a terminal.
  • the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the interactive message processing method when the computer program is executed.
  • a computer-readable storage medium is provided, and a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the above interactive message processing method are realized.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请涉及一种运行于终端的交互消息处理方法、装置、计算机设备和存储介质,响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息;响应于目标交互界面中接收到消息发送触发指令,在目标交互界面中显示待处理交互消息,基于待处理交互消息发送消息处理请求;接收基于消息处理请求返回的消息处理结果,消息处理结果基于待处理交互消息对应的目标小程序确定;根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。本申请还提供一种运行于后台服务器的交互消息处理方法、装置、计算机设备和存储介质。能够扩展交互消息处理的功能,提高用户粘度,提高小程序的使用次数,方便流量收益的统计。

Description

交互消息处理方法、装置、计算机设备和存储介质
本申请要求于2019年03月26日提交的申请号为2019102331868、发明名称为“交互消息处理方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及人工智能技术领域,特别是涉及一种交互消息处理方法、装置、计算机设备和存储介质。
背景技术
人工智能是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门新的技术科学。随着信息技术的飞速发展,人工智能已经应用到生活的方方面面,能够为用户提供智能对话服务。如,各种对话类应用、对话类设备、对话类服务平台等。具体如,“小爱同学”,又如“千寻AI对话机器人”等。
传统智能对话服务中的交互消息处理方法,能够提供简单的消息对话功能,其功能有待进一步扩展,因此,交互消息处理方法的用户粘度有待进一步提高。
发明内容
本申请实施例提供了一种交互消息处理方法、装置、计算机设备和存储介质,可以扩展交互消息处理的功能,提高用户粘度。所述技术方案如下:
一方面,提供了一种交互消息处理方法,应用于终端,所述方法包括:
响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息;
响应于所述目标交互界面中接收到消息发送触发指令,在所述目标交互界面中显示所述待处理交互消息,基于所述待处理交互消息发送消息处理请求;
接收基于所述消息处理请求返回的消息处理结果,所述消息处理结果基于所述待处理交互消息对应的目标小程序确定;
根据所述消息处理结果,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
另一方面,提供了一种交互消息处理方法,应用于后台服务器,所述方法包括:
接收待处理交互消息;
对所述待处理交互消息进行意图分类,得到所述待处理交互消息的意图分类结果;
响应于所述意图分类结果包括小程序意图,对所述待处理交互消息进行语义分析,确定所述待处理交互消息的消息关键词;
根据所述消息关键词,确定所述待处理交互消息对应的目标小程序的程序标识;
基于所述目标小程序的所述程序标识,发送消息处理结果。
另一方面,提供了一种交互消息处理装置,所述装置包括:
交互消息接收模块,被配置为响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息;
消息显示发送模块,被配置为响应于所述目标交互界面中接收到消息发送触发指令,在所述目标交互界面中显示所述待处理交互消息,基于所述待处理交互消息发送消息处理请求;
消息结果接收模块,被配置为接收基于所述消息处理请求返回的消息处理结果,所述消息处理结果基于所述待处理交互消息对应的目标小程序确定;
目标消息展示模块,被配置为根据所述消息处理结果,在所述目标交互界面中展示基于 所述目标小程序的目标交互消息。
另一方面,提供了一种交互消息处理装置,所述装置包括:
交互消息接收模块,被配置为接收待处理交互消息;
消息意图分类模块,被配置为对所述待处理交互消息进行意图分类,得到所述待处理交互消息的意图分类结果;
消息语义分析模块,被配置为响应于所述意图分类结果包括小程序意图,对所述待处理交互消息进行语义分析,确定所述待处理交互消息的消息关键词;
目标程序确定模块,被配置为根据所述消息关键词,确定所述待处理交互消息对应的目标小程序的程序标识;
消息结果发送模块,被配置为基于所述目标小程序的所述程序标识,发送消息处理结果。
另一方面,提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序,以实现如上方面所述的由终端执行的交互消息处理方法。
另一方面,提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序,以实现如上方面所述的由后台服务器执行的交互消息处理方法。
另一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行,以实现如上方面所述的由终端执行的交互消息处理方法。
另一方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行,以实现如上方面所述的由后台服务器执行的交互消息处理方法。
本申请实施例提供的技术方案带来的有益效果至少包括:
上述交互消息处理方法、装置、计算机设备和存储介质,由于可以使得终端在目标交互界面中展示基于目标小程序的目标交互消息,如此能够扩展交互消息处理的功能,提高用户粘度。同时,由于小程序获取方式的局限性,上述交互消息处理方法、装置、计算机设备和存储介质,还可以提高小程序的使用次数。另外,基于本实施例的交互消息处理方法、装置、计算机设备和存储介质,还容易形成操作闭环,从而,方便流量收益的统计。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为本申请一个实施例中交互消息处理方法的应用环境图示意图;
图2为本申请另一个运行于终端的实施例中交互消息处理方法的流程示意图;
图3为本申请另一个示例性实施例中的交互消息处理方法的示例图;
图4为本申请另一个示例性实施例中的交互消息处理方法的示例图;
图5为本申请另一个个运行于后台服务器的实施例中交互消息处理方法的流程示意图;
图6为本申请另一个示例性实施例中的交互消息处理方法的示例图;
图7为本申请另一个示例性实施例中的交互消息处理方法的示例图;
图8为本申请另一个个示例性实施例中的交互消息处理方法的实现逻辑图;
图9为本申请另一个示例性实施例中的交互消息处理方法在产品层面的流程图;
图10为本申请另一个示例性实施例中的交互消息处理方法的部分流程图;
图11为本申请另一个示例性实施例的交互消息处理方法的时序图;
图12为本申请另一个运行于终端的实施例中交互消息处理装置的结构框图;
图13为本申请另一个运行于后台服务器的实施例中交互消息处理装置的结构框图;
图14为本申请另一个实施例中计算机设备的结构示意图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,不用于限定本申请。
图1为一个实施例中交互消息处理方法的应用环境图示意图。本申请提供的交互消息处理方法,可应用于如图1所示的应用环境中。其中,终端102通过网络与后台服务器104进行通信。
本申请一个实施例的交互消息处理方法可以运行在终端102上。终端102在目标交互界面中接收到消息输入触发指令时,接收待处理交互消息;在目标交互界面中接收到消息发送触发指令时,在目标交互界面中显示待处理交互消息,基于待处理交互消息发送消息处理请求;接收基于消息处理请求返回的消息处理结果,消息处理结果基于待处理交互消息对应的目标小程序确定;根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。该交互消息处理方法可以通过一个应用程序实现,也可以通过一个母应用程序之下的公众服务平台实现,还可以通过一个母应用程序之下的子应用程序实现。在一个具体实施例中,母应用程序可以为社交平台,如微信。公众服务平台可以为公众号、订阅号、服务号等服务平台,如千寻AI对话机器人。子应用程序是指一种不需要下载安装即可使用的应用程序,或,子应用程序是指一种安装包很小、可以在后台自动完成下载安装过程的应用程序,如小程序。小程序等子应用程序可被嵌入至终端的母应用程序中,通过运行母应用程序内的子应用程序能够为用户提供相应的业务服务。
本申请另一个实施例的交互消息处理方法还可以运行在后台服务器104上。后台服务器104接收待处理交互消息;对待处理交互消息进行意图分类,得到待处理交互消息的意图分类结果;当意图分类结果中包括小程序意图时,对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词;根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识;基于目标小程序的程序标识,发送消息处理结果。该消息处理结果将返回至终端102,以使终端102可以根据该消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。
需要说明的是,终端102可以是台式设备或者移动终端,如台式电脑、平板电脑、智能手机等。后台服务器104可以是独立的物理服务器、物理服务器集群或者虚拟服务器。
如图2所示,在一个实施例中,提供了一种交互消息处理方法。该方法可以运行于图1中的终端102。该交互消息处理方法,包括以下步骤:
S202,响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息。
响应于目标交互界面中接收到消息输入触发指令,终端接收待处理交互消息。
目标交互界面是在终端上提供给用户的界面,是提供给用户的人机交互接口,该目标交互界面可以是用于展示用户与产品进行消息交互的界面,产品包括提供对话服务的小程序、提供对话服务的公众服务平台或提供对话服务的应用程序等本实施例对应的至少一个产品。接收消息输入触发指令的方式可以是接收用户通过文本或语音方式输入的命令,还可以是点击、长按、选中或触摸目标交互界面中的消息输入控件。消息输入控件可以是消息输入框、按键、按钮等控件。
终端在目标交互界面中接收消息输入触发指令之前,还需要展示目标交互界面。目标交互界面的展示,可以是在接收到目标交互界面展示指令之后,触发展示目标交互界面。目标交互展示指令可以是打开交互消息处理方法对应的产品,产品包括:应用程序、公众服务平台、小程序中的至少一种。其中公众服务平台可以为公共账号、订阅号、服务号等服务平台中的至少一种。具体如,目标交互展示指令可以是打开一个提供智能对话功能的公众号。更具体如,目标交互展示指令可以是在微信上打开千寻AI对话机器人这个公众号。
待处理交互消息为用户输入的消息。接收待处理交互消息的方式可以是通过目标交互界 面中的消息输入控件,接收用户输入的文本消息或图片消息;也可以是通过麦克风等音频采集设备采集用户输入的语音消息;还可以是通过摄像头等视频采集设备采集用户输入的视频消息或图片消息。也即,待处理交互消息可以是文本消息、语音消息、图片消息以及视频消息中的至少一种。
S204,响应于目标交互界面中接收到消息发送触发指令,在目标交互界面中显示待处理交互消息,基于待处理交互消息发送消息处理请求。
响应于目标交互界面中接收到消息发送触发指令,终端在目标交互界面中显示待处理交互消息,基于待处理交互消息发送消息处理请求。
消息发送触发指令用于触发终端向后台服务器发送接收到的待处理交互消息。终端接收消息发送触发指令的方式可以是点击或触摸发送按钮,也可以是点击或触摸确认发送按钮,还可以是通过语音或者其他命令输入的方式接收消息发送触发指令。
在目标交互界面中显示待处理交互消息,可以使得用户知晓自己在智能对话过程中发送了什么消息,也可以方便用户查找消息记录。
消息处理请求用于请求后台服务器处理该待处理交互消息,以在一个完整的对话过程中完成对该待处理交互消息的答复。消息处理请求中包括该待处理交互消息和用户标识。该用户标识用于在用户返回消息处理结果时,确定返回至哪个用户对应的终端。当消息交互处理方法通过母应用程序下的公众服务平台实现时,该用户标识可以为用户在母应用程序中的用户标识。
S206,接收基于消息处理请求返回的消息处理结果,该消息处理结果基于待处理交互消息对应的目标小程序确定。
终端接收基于消息处理请求返回的消息处理结果,该消息处理结果基于待处理交互消息对应的目标小程序确定。
后台服务器接收到消息处理请求之后,对待处理交互消息进行处理,得到基于待处理交互消息对应的目标小程序的消息处理结果,将该消息处理结果反馈给终端。目标小程序是指与待处理交互消息对应的小程序。小程序(Mini Program)是一种不需要下载安装即可使用的子应用程序。为了向用户提供更多样化的业务服务,开发者可为终端的应用(例如即时通信应用、购物应用、邮件应用等)开发相应的小程序,该小程序可作为子应用程序被嵌入至终端的母应用程序中,通过运行母应用程序内的子应用程序(即对应的小程序)能够为用户提供相应的业务服务。
终端接收后台服务器基于消息处理请求返回的的消息处理结果,该消息处理结果是后台服务器基于待处理交互消息对应的目标小程序确定的。
该消息处理结果可以包括目标小程序的程序信息。该程序信息可以包括目标小程序的程序链接信息、调用接口信息中的至少一种。该消息处理结果还可以包括目标小程序的页面数据。该页面数据可以是目标小程序的首页页面数据,还可以是目标小程序中与待处理交互消息对应的目标页面数据。
S208,根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。
终端根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。
基于目标小程序的目标交互消息可以包括消息处理结果,也可以包括对消息交互结果进行进一步处理之后得到的消息。如,可以在目标交互界面中展示目标小程序的程序信息;也可以在目标交互界面中展示目标小程序的图标或首页页面,该图标可以通过超级链接跳转到目标小程序的首页页面;还可以在目标交互界面中展示目标小程序的调用接口信息,该调用接口信息可以是目标小程序中、与待处理交互消息对应的功能模块的目标页面的地址信息;还可以在目标交互界面中展示目标小程序的目标页面;还可以在目标交互界面中展示调用目标小程序之后的执行结果。
综上所述,本申请提供的示例性实施例,在目标交互界面中接收到消息输入触发指令时,接收待处理交互消息;在目标交互界面中接收到消息发送触发指令时,在目标交互界面中显 示待处理交互消息,基于待处理交互消息发送消息处理请求;接收基于消息处理请求返回的消息处理结果,消息处理结果基于待处理交互消息对应的目标小程序确定;根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。由于可以接收返回的基于目标小程序的消息处理结果,在目标交互界面中基于该消息处理结果展示基于目标小程序的目标交互消息,如此能够扩展交互消息处理的功能,提高用户粘度。同时,由于小程序获取方式的局限性,上述交互消息处理方法,还可以提高小程序的使用次数。另外,基于本实施例的交互消息处理方法,还容易形成操作闭环,从而,方便流量收益的统计。
在另一个示例性实施例中,消息处理结果包括目标小程序的程序信息。终端根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息,包括:终端根据目标小程序的程序信息,在目标交互界面中展示基于目标小程序的目标交互消息。
程序信息可以包括程序链接信息、程序名称、程序标识、程序图标中的至少一中与程序相关的信息。该目标交互消息的内容可以是目标小程序的程序标识、程序名称、程序链接信息、程序图标中的至少一项。终端可以通过该程序标识或程序名称发送程序查询请求至后台服务器,以获得目标小程序的程序链接信息,进而通过该程序链接信息发送目标程序请求至目标小程序,请求目标小程序的服务。终端也可以通过该程序标识、程序名称、程序链接信息或程序图标中的至少一种信息,发送目标程序请求至目标小程序,请求目标小程序的服务。
综上所述,本申请提供的示例性实施例,终端基于目标小程序的程序信息,在目标交互界面展示的目标交互消息,可以为用户推荐目标小程序,方便用户请求目标小程序的服务,扩展了交互消息处理方法的功能,从而可以提高用户粘度。
在另一个示例性实施例中,程序信息包括目标小程序的程序链接信息。其中,程序链接信息可以包括程序链接地址、端口号中的至少一种。终端根据目标小程序的程序信息,在目标交互界面中展示基于目标小程序的目标交互消息,包括:终端根据目标小程序的程序链接信息,在目标交互界面中展示基于目标小程序的目标交互消息。
终端根据目标小程序的程序链接信息,在目标交互界面中展示基于目标小程序的目标交互消息的方式,可以是:终端在目标交互界面中展示目标小程序的程序链接信息。用户可以通过在终端展示的目标交互界面上点击该程序链接信息链接至目标小程序。也即,通过点击该程序链接信息的方式使终端发送目标程序请求至目标小程序,请求目标小程序的服务。
终端根据目标小程序的程序链接信息,在目标交互界面中展示基于目标小程序的目标交互消息的方式,也可以是:终端在目标交互界面中展示目标小程序的其他程序信息,将其他程序信息的超级链接设置为目标小程序的程序链接信息。可以通过在终端展示的目标交互界面上点击该其他程序信息链接至目标小程序,也即通过点击该其他程序信息的方式发送目标服务请求至目标小程序,请求目标小程序的服务。
综上所述,本申请提供的示例性实施例,无需先通过其他程序信息请求程序链接信息,再通过程序链接信息请求目标小程序的服务。因此,可以快速地请求目标小程序的服务,能够进一步提高交互消息处理的用户粘度。
在另一个示例性实施例中,程序信息包括目标小程序的调用接口信息;该调用接口信息可以为调用接口名称、调用接口标识中的至少一个。调用接口信息与待处理交互消息对应。终端根据目标小程序的程序信息,在目标交互界面中展示基于目标小程序的目标交互消息,包括:终端根据目标小程序的调用接口信息,在目标交互界面中展示基于目标小程序的目标交互消息。
终端根据目标小程序的调用接口信息,在目标交互界面中展示基于目标小程序的目标交互消息的方式,可以是:终端在目标交互界面中展示目标小程序的调用接口信息。用户可以通过在终端展示的目标交互界面上点击该调用接口信息,链接至目标小程序中与待处理交互 消息对应的具体功能模块。也即,通过点击该调用接口信息的方式使终端发送服务请求至目标小程序,请求目标小程序中功能模块的具体服务。
终端根据目标小程序的调用接口信息,在目标交互界面中展示基于目标小程序的目标交互消息的方式,可以是:终端在目标交互界面中展示目标小程序的程序信息,将该程序信息的超级链接设置为目标小程序的调用接口信息。用户可以通过在终端展示的目标交互界面上点击该程序信息,链接至目标小程序中与待处理交互消息对应的具体功能模块。也即,通过点击该程序信息的方式使终端发送服务请求至目标小程序,请求目标小程序中功能模块的具体服务。
综上所述,本申请提供的示例性实施例,可以基于该调用接口信息,链接至目标小程序中与待处理交互消息对应的具体功能模块,从而可以减少用户操作步骤,能够进一步提高用户粘度。
在另一个示例性实施例中,消息处理结果还包括目标小程序的页面数据。终端根据目标小程序的程序信息,在目标交互界面中展示基于目标小程序的目标交互消息,包括:终端根据目标小程序的程序信息及页面数据,确定基于目标小程序的目标交互消息;在目标交互界面中展示目标交互消息。
页面数据是指目标小程序提供服务的页面数据,如,页面数据可以是首页页面数据,还可以是目标页面数据。首页页面是指目标小程序按照普通流程提供服务时,首先展示的界面。目标页面是指目标小程序中与待处理交互消息对应的功能模块的页面。
在本实施例中,目标交互消息的内容包括页面数据及程序信息。终端在目标交互界面中展示目标交互消息的方式,可以是:终端在目标交互页面中展示页面数据及程序信息。终端在目标交互界面中展示目标交互消息的方式,还可以是:终端在目标交互页面中展示页面数据,将该页面数据的超级链接设置为目标小程序的程序链接信息。
综上所述,本申请提供的示例性实施例此,通过在终端的目标交互页面中,展示目标小程序的页面的方式,可以更为直观的展示目标小程序的相关信息,也能使得用户可以更加清楚直观地了解到目标小程序能够提供的服务。
在另一个示例性实施例中,页面数据包括目标小程序的首页页面数据;终端在目标交互界面中展示目标交互消息,包括:终端对首页页面数据进行渲染,在目标交互界面中展示目标小程序的首页页面,根据目标小程序的程序链接信息设置首页页面的超级链接。
在本实施例中,目标交互消息的内容包括目标小程序的首页页面数据。终端对首页页面数据进行渲染,在目标交互界面中展示目标小程序的首页页面,将该首页页面的超级链接设置为目标小程序的程序链接信息。如此,用户可以通过点击该首页页面跳转至目标小程序的首页页面,使终端为用户提供目标小程序的服务。从而,在向用户推荐目标小程序,且用户能够清楚直观地了解目标小程序服务的基础上,终端可以方便快捷地为用户提供目标小程序的服务,如此,可以简化用户操作,提高用户粘度。
可以理解地,在一些其他实施例中,可以不提供小程序的程序链接信息,不提供跳转,也即不设置超级链接至目标小程序,用户可以基于目标交互消息自行找到目标小程序的接入方式。
在另一个应用场景中,公司的同事跟小微同学说,“你帮我中午定10份外卖,然后开公司发票”。传统的方式可以是:小微同学在对“美团外卖”有认知的前提下,可以想到使用微信小程序,然后她打开微信,键入搜索“美团外卖”小程序,开始定外卖。当填写公司发票的时候,小微同学记不住那么长的公司票号,这时候小微同学退出“美团外卖”小程序,在对“税务发票助手”有认知的前提下搜索打开“税务发票助手”小程序。得到税号后,小微同学重新打开“美团外卖”小程序。
上述应用场景在采用本实施例的方法后可以是,如图3所示,本方法对应的产品可以是 微信(一种社交软件)下的目标服务平台。小微同学只需要在对目标服务平台具有认知,而无需对具体的“美团外卖”、“税务发票助手”等小程序具有认知的前提下,告诉目标服务平台,“我要订10份外卖,并且要发票”。终端获取到该待处理交互消息之后,将其转发至目标服务平台的后台服务器。该目标服务平台的后台服务器接收到该待处理交互消息之后,对其进行相应处理,最后返回消息处理结果。该消息处理结果中包括话术兜底“试试使用下面两个程序吧”,以及两个目标小程序“美团外卖”和“税务发票助手”的程序名称及首页页面数据。终端在展示目标交互消息时,展示该话术兜底、两个目标小程序的程序名称及首页页面数据。用户可以点击目标交互消息,使终端跳转至对应的目标小程序。
在另一个示例性实施例中,页面数据包括目标小程序的目标页面数据。目标页面数据与目标小程序的调用接口信息对应,调用接口信息与待处理交互消息对应。终端在目标交互界面中展示目标交互消息,包括:终端对目标页面数据进行渲染,在目标交互界面中展示目标小程序的目标页面,根据目标小程序的调用接口信息设置目标页面的超级链接。
在本实施例中,目标交互消息的内容包括目标小程序的目标页面数据。终端对目标页面数据进行渲染,在目标交互界面中展示目标小程序的目标页面,将该目标页面的超级链接设置为目标小程序的调用接口信息。目标页面是目标小程序中,提供与待处理交互消息对应服务的功能模块的页面。用户可以通过点击该目标页面,控制终端跳转至目标小程序的目标页面,为用户提供目标小程序的服务。在另一个示例性实施例中,如图4所示,终端展示的目标交互消息可以包括话术兜底“好的,打开小程序下单吧”、后台服务器确定的目标小程序“美团外卖”的程序名称,以及目标小程序下单功能模块的调用接口信息对应的目标页面。
综上所述,本申请提供的示例性实施例,在用户能够清楚直观地了解目标小程序服务的基础上,使终端方便快捷地为用户提供目标小程序的服务,提高用户粘度。
在另一个示例性实施例中,终端对目标页面数据进行渲染,在目标交互界面中展示目标小程序的目标页面,根据目标小程序的调用接口信息设置述目标页面的超级链接,之后还包括:终端基于目标页面,接收服务请求发送指令;服务请求发送指令包括目标小程序的程序信息及预设参数;终端根据程序信息及预设参数发送目标服务请求;终端接收基于目标服务请求返回的服务响应结果;终端展示基于目标服务请求返回的服务响应结果。
在本实施例中,目标交互消息包括目标小程序的接口调用信息,该接口调用信息与待处理交互消息对应。终端基于目标交互消息,接收服务请求发送指令的方式,可以是通过点击、双击或长按目标交互消息的方式接收,也可以是点击、双击或长按目标交互消息中预设的按钮或其他控件的方式接收。
该目标服务请求用于请求目标小程序的服务。该程序信息可以为程序链接信息。该预设参数可以是终端在请求目标小程序时,需要提供的相关参数。该预设参数可以是终端在接收服务请求发送指令之前接收的。该预设参数还可以是终端在接收服务请求指令之前,从消息处理结果中提取的,该预设参数与待处理交互消息对应。如当目标小程序为票务小助手时,预设参数可以为用户输入的需要开票的公司信息,也可以为后台服务器在待处理交互消息中提取的需要开票的公司信息。又如,当目标小程序为美团外卖等外卖小程序时,预设参数可以为用户输入的外卖的产品、数量、商家等相关信息,也可以为后台服务器在待处理交互消息中提取的外卖的产品、数量、商家等相关信息。目标服务请求中包括程序信息及预设参数。终端根据程序信息将该目标服务请求发送至目标小程序的服务器。目标小程序的服务器根据目标服务请求执行目标服务,返回服务响应结果至终端。终端接收该基于目标服务请求返回的服务响应结果;终端展示该基于目标服务请求返回的服务响应结果。
综上所述,本申请提供的示例性实施例,在调用目标小程序时,无需用户了解目标小程序的具体操作方法。在展示目标小程序中与待处理交互消息对应的功能模块的目标页面之后,可以基于该目标页面接收服务发送请求,然后基于该服务发送请求向目标小程序的服务器发 送目标服务请求,最后接收、展示服务响应结果。如此,可以减少用户操作步骤,更方便快捷地为用户提供目标小程序的服务,从而可以进一步提高用户粘度。
在另一个示例性实施例中,终端在目标交互界面中展示目标交互消息,包括:终端通过嵌入在目标交互界面中的子页面展示页面数据,根据目标小程序的程序信息设置页面数据的超级链接。
综上所述,本申请提供的示例性实施例,目标交互消息的内容还包括页面数据。该页面数据展示在嵌入于目标交互界面的子页面中,如此,通过不同于普通交互消息的展示方式展示页面数据,可以使用户快速区别普通交互消息和该基于目标小程序的目标交互消息,从而可进一步提高用户粘度。终端根据目标小程序的程序信息设置页面数据的超级链接,如此,可以使得用户可以方便快捷地链接至目标小程序,从而进一步提高用户粘度。
在另一个示例性实施例中,终端根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息,之后还包括:终端基于目标交互消息接收程序请求发送指令;终端根据程序请求发送指令携带的目标小程序的程序信息,发送目标程序请求;终端接收根据目标程序请求返回的程序响应信息;终端展示根据目标程序请求返回的程序响应信息。
在本实施例中,消息处理结果中包括的程序信息中可以包括目标小程序的程序链接信息。终端基于目标交互消息接收程序请求发送指令,可以是通过点击、双击或者长按目标交互消息的方式接收程序请求发送指令。该程序请求发送指令携带目标小程序的程序链接信息。终端根据该程序链接信息发送目标程序请求,该目标程序请求携带程序链接信息及终端标识。终端基于该程序链接信息,将目标程序请求发送至目标小程序的服务器。基于该终端标识,后台服务器可以将基于目标程序请求确定的程序响应信息,返回至终端。这种情况下,该程序响应信息可以包括目标小程序的首页页面数据。
在本实施例中,消息处理结果中包括的程序信息中还可以包括目标小程序的调用接口信息,该调用接口信息与待处理交互消息对应。终端基于目标交互消息接收程序请求发送指令,可以是通过点击、双击或者长按目标交互消息的方式接收程序请求发送指令。该程序请求发送指令携带目标小程序的调用接口信息。终端根据该调用接口信息发送目标程序请求,该目标程序请求携带调用接口信息及终端标识。终端基于该调用接口信息,将目标程序请求发送至目标小程序的服务器。基于该终端标识,后台服务器可以将基于目标程序请求确定的程序响应信息,返回至终端。这种情况下,该程序响应信息可以包括目标小程序的目标页面数据。
综上所述,本申请提供的示例性实施例,在为用户推荐了目标小程序之后,可以通过接收程序请求发送指令、发送目标程序请求,然后接收、展示程序响应信息的方式,使得用户可以基于程序响应信息进行目标小程序的相关服务请求。如此,为用户提供一种接入目标小程序的方式,可以提高目标小程序的使用率。
在另一个示例性实施例中,程序响应信息包括目标页面数据。也即,目标程序请求中,还携带有调用接口信息。终端可以在接收程序请求发送指令时,通过获取在目标交互消息中点击的功能模块的调用接口信息,获取到该调用接口信息。终端发送目标程序请求之后,接收、展示基于目标程序请求返回的程序响应信息,之后还包括:终端基于程序响应信息接收服务请求发送指令;服务请求发送指令中包括目标小程序的该调用接口信息及预设参数;终端根据预设参数及调用接口信息发送目标服务请求;终端接收根据目标服务请求返回的服务响应结果;终端展示根据目标服务请求返回的服务响应结果。
基于程序响应信息接收服务请求发送指令的方式,可以是:终端通过在目标页面中,接收用户点击预设按钮的方式接收,预设按钮可以为类似“提交”、“确认”等按钮。该服务请求发送指令中包括目标小程序的该调用接口信息及预设参数。终端基于该调用接口信息,请求目标小程序对应的功能模块服务。该预设参数为该功能模块服务所需的参数。预设参数与待 处理交互消息对应。该预设参数可以由后台服务器根据该待处理交互消息确定,通过消息处理结果返回至终端。
目标服务请求中携带有调用接口信息及预设参数。目标服务请求用于请求目标程序中用户需要的功能模块提供的服务,即功能模块服务。目标服务请求中还携带用终端标识,如此,使得目标小程序的服务器可以根据该终端标识向该发送目标服务请求的终端,返回服务响应结果。终端接收根据目标服务请求返回的服务响应结果;终端展示根据目标服务请求返回的服务响应结果。服务响应结果为后台服务器根据目标服务请求返回的执行结果。
综上所述,本申请提供的示例性实施例,首先为用户提供目标小程序的程序信息,基于程序信息接收程序请求发送指令;然后发送目标程序请求,接收、展示目标页面数据;再基于目标页面接收服务请求发送指令,发送目标服务请求,接收、展示服务响应结果。如此,在为用户提供从对话功能的同时,还可以提供目标小程序的服务功能的扩展。从而,可以提高用户粘度。
在另一个示例性实施例中,终端基于程序响应信息接收服务请求发送指令,包括:终端基于程序响应信息接收参数修改指令;终端在根据参数修改指令修改预设参数之后,基于程序响应信息据接收服务请求发送指令;服务请求发送指令中包括目标小程序的调用接口信息及修改后的预设参数。
在本实施例中,预设参数确定之后,还可以对其进行修改。如此,可以在用户发送待处理交互消息之后,若用户需求的相关参数有变化,或者消息处理结果中的预设参数与用户实际想表达的不同时,可以对其进行修改。因此,可以使得目标服务请求更加符合用户的实际需求,从而,进一步提高用户粘度。
如图5所示,本申请还提供一种运行于后台服务器的交互消息处理方法,该方法可以运行于图1中的后台服务器104。该方法包括:
S502,接收待处理交互消息。
待处理交互消息可以由终端接收、转发至后台服务器,具体可以是终端通过运行于母应用程序下的目标服务平台转发。
后台服务器接收该待处理交互消息。该待处理交互消息可以是文本形式的消息,也可以是语音形式的消息,还可以是视频、图片或表情形式的消息。
终端可以在获取到用户输入的待处理交互消息之后,便将该待处理交互消息转发至后台服务器进行处理。如此,可以提高目标服务平台响应客户的效率,从而,进一步提高用户粘度。
终端也可以在获取到用户输入的待处理交互消息之后,按照预设策略将该待处理交互消息转发至后台服务器,也即该后台服务器将按照对应的策略接收到待处理交互消息。预设策略可以是每隔预设时间间隔转发一次,也可以每收到预设条数的待处理交互消息时转发一次,该预设条数至少为1。
S504,对待处理交互消息进行意图分类,得到待处理交互消息的意图分类结果。
后台服务器对待处理交互消息进行意图分类,得到待处理交互消息的意图分类结果。
后台服务器可以先对待处理交互消息进行语义理解,得到待处理交互消息的语义信息,然后对该语义信息进行意图分类,得到意图分类结果。意图分类是指将待处理交互消息中语义信息表达的内在意图进行分类,其内在意图的意图类别可以包括:闲聊意图、人物意图、音乐意图、子应用程序意图(小程序意图)中的至少一种意图类别。在本实施中,意图类别的数量至少为2,也可以为十几个甚至几十个。本实施例中的意图类别至少包括闲聊意图以及子应用程序意图。每一种意图类别可以通过一个域(domain)体现。
如,在AI(人工智能)语音交互的流程中,用户的自然语言消息,可以在经过语音识别和语义理解之后,经过一个预设映射过程进行打分,最终落入一个最佳的域范围内,在这个 域范围中得到待输出的返回结果。不同的域代表不同的人工智能能力。
需要说明的是,对于一条待处理交互消息,最终将匹配一个意图类别,基于该匹配的意图类别确定意图分类结果。
S506,响应于意图分类结果包括小程序意图,对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词。
响应于意图分类结果包括小程序意图,后台服务器对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词。
后台服务器对待处理交互消息进行语义分析,得到该待处理交互消息的消息关键词。语义分析可以通过独立的语义分析的算法实现,也可以通过神经网络模型实现。可以通过NLP(Neuro-Linguistic Programming,神经语言程序)技术实现语义分析,得到消息关键词。消息关键词为待处理交互消息中,体现待处理交互消息重要信息的词。如,在待处理交互消息为“我要订外卖”时,语义分析得到的消息关键词可以包括:订外卖。
S508,根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识。
后台服务器可以在得到消息关键词之后,根据消息关键词,确定与待处理交互消息对应的目标小程序。获取该目标小程序的程序标识,即可得到待处理交互消息对应的目标小程序的程序标识。如,在消息关键词为订外卖时,可以将目标小程序确定为订外卖的小程序。进一步地,还可以结合订外卖类小程序的程序特征,如使用次数、最近预设时间内的使用次数、用户评价等,来确定最终是将哪个外卖程序确定为目标小程序。
示例性的,后台服务器可以在意图分类结果中包括小程序意图时,根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识。如此,后台服务器可以在意图分类结果中不包括小程序意图时,无需根据消息关键词确定待处理交互消息对应的而目标小程序的程序标识。
后台服务器对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词,根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识。后台服务器对待处理交互消息意图分类,得到待处理交互消息的意图分类结果,可以通过一个神经网络模型实现。如可以通过一个全连接神经网络实现,该全连接神经网络隐层的数量和深度可以根据标注数据调整。该全连接神经网络的输出可以使用sigmoid(阈值函数)作为激励,使输出值介于0到1之间。标注数据可以用0和1的向量来表示。0表示这条数据没有这个位置的标签,1表示这条数据有这个位置的标签。向量的位数等于待分类的小程序的数量。也即该向量中1对应的小程序的标识即为目标小程序的程序标识。
S510,基于目标小程序的程序标识,发送消息处理结果。
后台服务器基于该目标小程序的程序标识,发送消息处理结果,因此,该发送的消息处理结果是基于目标小程序的消息处理结果。该消息处理结果可以为目标小程序的程序标识,也可以是基于该程序标识查找到的目标小程序的程序信息,还可以是在后台服务器基于该程序标识调用目标小程序执行后得到的该目标小程序的执行结果。
该程序信息可以包括目标小程序的程序链接信息、程序名称、程序标识、程序图标中的至少一种与程序相关的信息,还可以包括目标小程序的调用接口信息。
如此,终端可以根据该后台服务器返回的消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。
上述交互消息处理方法,后台服务器接收待处理交互消息;后台服务器对待处理交互消息意图分类,得到待处理交互消息的意图分类结果;后台服务器对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词;后台服务器根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识;后台服务器基于目标小程序的程序标识,发送消息处理结果。由于可以反馈基于目标小程序的消息处理结果,能够扩展交互消息处理的功能,提高用户粘度。同时由于小程序获取方式的局限性,上述交互消息处理方法,还可以提高目标小程序的使用次数。另外,基于本实施例的交互消息处理方法,还容易形成操作闭环,从而,方 便流量收益的统计。
在另一个应用场景中,如图6所示,用户主动问目标服务平台,如千寻AI对话机器人公众号,“我的报销税号是什么?”目标服务平台的后台服务器接收到这条待处理交互消息之后,对其进行意图分类,得到的意图分类结果包括小程序意图。对待处理交互消息进行语义分析得到消息关键词之后,根据消息关键词可以将小程序“税务发票助手”的程序标识,确定为目标小程序的程序标识。后台服务器发送至终端的消息处理结果可以为“税务发票助手”的程序信息。终端展示的结果如图6所示,为该目标程序的链接页面。用户可以通过点击该链接页面,进入到目标小程序。
在另一个应用场景中,如图7所示,用户在目标服务平台上闲聊的过程中,说:“千寻~我好饿啊~~”。当目标服务平台的后台服务器接收到该待处理交互消息时,通过语义分析,后台服务器可以提取到关键词“饿”,向终端返回的消息处理结果中,除了闲聊兜底话术之外,还可以包括为用户推荐分发的“美团外卖”小程序的程序信息。
在另一个示例性实施例中,后台服务器对待处理交互消息意图分类,得到待处理交互消息的意图分类结果,包括:后台服务器提取待处理交互消息的消息特征;后台服务器通过神经网络模型对消息特征进行预设意图分类映射,得到待处理交互消息的意图分类结果。
在本实施例中,后台服务器在接收到待处理交互消息之后,先提取待处理交互消息的消息特征。消息特征可以包括消息关键词向量、消息语义向量中的至少一种特征向量。后台服务器通过神经网络模型,对消息特征进行预设意图分类映射,得到待处理交互消息的意图分类结果。如此,后台服务器通过神经网络模型进行映射的方式,得到待处理交互消息的意图分类结果。从而,可以提高意图分类结果的准确性,提高用户粘度。
为了进一步提高意图分类结果的准确性,在另一个示例性实施例中,神经网络模型为全连接神经网络模型。后台服务器通过神经网络模型对消息特征进行预设意图分类映射,得到待处理交互消息的意图分类结果,包括:后台服务器通过全连接神经网络模型的卷积层对消息特征进行卷积映射,得到卷积结果;后台服务器通过全连接神经网络模型的池化层对卷积结果进行池化映射,得到池化结果;后台服务器通过全连接神经网络模型的全连接层对池化结果进行全连接映射,得到待处理交互消息的意图分类结果。
在本实施例中,后台服务器通过全连接神经网络模型对提取到的消息特征进行预设意图分类映射。在该预设意图分类映射过程中,后台服务器通过卷积层进行卷积映射得到卷积结果,通过池化层进行池化映射得到池化结果,通过全连接层进行全连接映射得到意图分类结果。如此,可以进一步提高意图分类结果的准确性,从而进一步提高用户粘度。
在另一个示例性实施例中,后台服务器提取待处理交互消息的消息特征,包括:后台服务器对待处理交互消息进行语音识别,得到文本消息;提取文本消息的消息特征。
语音识别可以将语音消息转化为文本消息。可以通过ASR(Automatic Speech Recognition,自动语音识别)技术,实现语音识别。在本实施例中,待处理交互消息为语音消息,后台服务器对该语音消息进行语音识别得到文本消息,然后再提取文本消息的消息特征,从而得到待处理交互消息的消息特征。如此,可以提高消息输入的输入效率,也可以接收更多的有效信息,从而可以推荐更符合用户需要的小程序,进一步提高用户粘度。
在另一个示例性实施例中,本方法的产品为目标服务平台。该目标服务平台的实现逻辑图,可以如图8所示,后台服务器通过终端获取用户主动或闲聊的待处理交互消息,该待处理交互消息可以是文本形式的,也可以是语音形式的。终端将该待处理交互消息转发至目标服务平台(公众号)的后台服务器。目标服务平台的后台服务器可以通过ASR语音识别引擎对待处理交互消息进行语音识别,将语音消息转化为文本消息。然后,后台服务器可以通过NLP语义理解引擎对该文本消息进行语义分析,提取该文本消息的消息特征,如消息关键词, 通过神经网络模型对消息特征进行预设意图分类映射,得到待处理交互消息的意图分类结果,根据消息关键词确定待处理交互消息对应的目标小程序的程序标识。后台服务器根据目标小程序的程序标识获取目标小程序的程序信息,然后将程序信息发送至终端。该程序信息包括目标小程序的程序链接信息。通过终端分发该目标小程序的程序链接信息。
综上所述,本申请提供的示例性实施例,可以实现借助目标服务平台分发或调用小程序的功能。在目标服务平台的产品层面,其逻辑流程可以如图9所示。一方面可以是用户通过语音或打字主动输入明确的需求,如,“我要订外卖”。另一方面可以是用户在闲聊过程中,暴露了相关模糊需求,如,闲聊时提到“我饿了”。对主动的“我要订外卖”或被动暴露的“我饿了”进行意图分类,都将落入到小程序意图上。在确定了目标小程序之后,可以是输出引导兜底话术,分发目标小程序的程序链接信息,也可以是调用目标小程序的调用接口信息,直达用户最后操作,返回最终结果。
在另一个示例性实施例中,后台服务器基于目标小程序的程序标识,发送消息处理结果,包括:后台服务器根据程序标识,获取目标小程序的程序信息;程序信息包括目标小程序的程序链接信息或调用接口信息;后台服务器基于程序信息,发送消息处理结果。
后台服务器可以根据程序标识在本地数据库中,查找目标小程序的程序信息。后台服务器也可以根据程序标识发送查找请求至目标小程序的服务器,请求该程序标识对应的目标小程序的程序信息,从而获取到目标小程序的程序信息。
程序链接信息可以包括目标小程序的链接地址、端口号中的至少一种链接信息。调用接口信息可以包括目标小程序的功能模块的链接地址、端口号中的至少一种链接信息。后台服务器基于程序信息发送的消息处理结果可以是目标小程序的程序链接信息,也可以是目标小程序的调用接口信息,还可以是程序链接信息或调用接口信息对应的页面数据。
如此,后台服务器反馈给终端的消息处理结果中,包括程序链接信息或调用接口信息,从而,使得用户可以通过该程序链接或调用接口信息方便、快捷地接入到目标小程序,也可以提高目标小程序的使用次数。
在另一个示例性实施例中,后台服务器基于程序信息,发送消息处理结果,包括:后台服务器根据程序信息,请求目标小程序的页面数据;后台服务器在接收到页面数据后,基于页面数据及程序信息,发送消息处理结果。
在本实施例中,后台服务器根据程序信息,发送页面请求至目标小程序的服务器,请求目标小程序的页面数据。目标小程序的服务器在接收到页面请求之后,根据该页面请求返回页面数据至后台服务器。后台服务器在接收到页面数据后,基于页面数据及程序信息,发送消息处理结果至终端。后台服务器反馈给终端的消息处理结果中,包括页面数据及程序信息。如此,终端可以显示页面数据,从而使得用户能够更直观地了解目标小程序提供的服务。
在另一个示例性实施例中,后台服务器根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识,包括:后台服务器根据消息关键词,确定待处理交互消息对应的候选小程序;后台服务器提取候选小程序的小程序特征;后台服务器根据小程序特征对候选小程序进行排序,将排在预设位置的候选小程序的程序标识,确定为目标小程序的程序标识。
在本实施例中,后台服务器根据消息关键词可以确定至少一个候选小程序。如,天气对应的小程序可以是中国天气网、墨迹天气等。在本实施例中,通过对这些候选小程序进行排序的方式来确定与待处理交互消息相关性最高的目标小程序。后台服务器可以通过一个线性回归模型将候选小程序的小程序特征组合起来,优化小程序被打开的次数,进而得到小程序的排序结果。可以将排在预设位置的候选小程序的程序标识,确定为目标小程序的程序标识。预设位置可以前任意位置,如可以是第一位。
其中,小程序特征,可以包括文本特征和非文本特征。其中,文本特征可以是关键词、 词频统计、与消息匹配度中的至少一个。非文本特征可以是质量分数、粉丝数量、小程序被打开的次数中的至少一个。
综上所述,本申请提供的示例性实施例,通过对候选小程序的程序标识进行排序的方式,确定与待处理交出消息对应的目标小程序。如此,后台服务器可以确定更符合用户需求的小程序,提高用户的满意程度,从而,进一步提高用户粘度。
在另一个示例性实施例中,后台服务器提取候选小程序的小程序特征,包括:当候选小程序为文本类小程序时,后台服务器提取候选小程序的文本特征及候选小程序的非文本特征;或者,当候选小程序为非文本类小程序时,后台服务器提取候选小程序的非文本特征。
文本类小程序是指可以得到文本类答案的小程序,如天气小程序,假设问题为“北京天气”,该小程序可以给出的结果为文本类,如“晴,10摄氏度”。非文本类小程序是指不存在问题的答案,直接给出跳转页面的小程序,如订票小程序、音乐播放小程序等。
文本特征可以是关键词、词频统计、与消息匹配度中的至少一个。非文本特征可以是质量分数、粉丝数量、小程序被打开的次数中的至少一个。在本实施例中,文本类小程序,需要提取文本特征和非文本特征,非文本小程序需要提取非文本特征。后台服务器可以根据这些应用程序特征,对候选小程序排序,从而确定目标小程序。
在另一个示例性示例中,如图10所示,目标服务平台的后台服务器在接收到待处理交互消息之后,基于神经网络模型对待处理交互消息进行意图分类,该意图分类结果还包括候选小程序标识。后台服务器拉取候选小程序列表,然后判断这些候选小程序是否为文本类型的小程序,如是否为文本类型小程序。当候选小程序为文本类小程序时,后台服务器获取候选小程序的文本结果、根据该文本结果提取该候选小程序的文本特征,然后提取该候选小程序的非文本特征。当候选小程序为非文本类小程序时,后台服务器获取候选小程序的非文本特征。后台服务器根据这些文本特征和非文本特征对候选小程序通过逻辑回归模型进行排序,进而确定目标小程序。
综上所述,本申请提供的示例性实施例,后台服务器对文本类小程序同时提取文本特征和非文本特征,对非文本类小程序提取非文本特征,能够尽可能的综合考虑各种因素,能够使得排序结果更为准确。如此,后台服务器可以确定更符合用户需求的目标小程序,提高用户的满意程度,从而,进一步提高用户粘度。
为了更清楚地说明本申请在终端和后台服务器两侧的实施例,现结合一个具体实施例的时序图进行说明,该时序图如图11所示。
终端展示目标交互界面,在目标交互界面中接收到消息输入触发指令时,接收待处理交互消息;终端在目标交互界面中接收到消息发送触发指令时,在目标交互界面中显示待处理交互消息,基于待处理交互消息发送消息处理请求至后台服务器。
后台服务器接收待处理交互消息;后台服务器对待处理交互消息进行意图分类,得到待处理交互消息的意图分类结果;在意图分类结果包括小程序意图时,后台服务器对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词;后台服务器根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识;后台服务器基于目标小程序的程序标识,发送消息处理结果至终端。
终端接收基于消息处理请求返回的消息处理结果,根据消息处理结果,在目标交互界面中展示基于目标小程序的程序信息;终端基于该展示的程序信息,接收程序请求发送指令;然后,终端根据程序请求发送指令携带的目标小程序的程序信息,发送目标程序请求至目标小程序的服务器。
目标小程序的服务器根据目标程序请求返回程序响应信息至终端。
终端根据该程序响应信息展示目标页面数据,基于该展示的目标页面数据接收参数修改指令;终端在根据参数修改指令修改预设参数之后,基于程序响应信息据接收服务请求发送 指令;服务请求发送指令中包括目标小程序的调用接口信息及修改后的预设参数;然后终端根据修改后的预设参数及调用接口信息发送目标服务请求至目标小程序的服务器。
目标小程序的服务器根据该目标服务请求返回服务响应结果至终端。
终端接收根据目标服务请求返回的服务响应结果;
终端展示根据目标服务请求返回的服务响应结果。
应该理解的是,虽然图2和图5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2和图5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在另一个实施例中,如图12所示,提供了一种与上述运行于终端的交互消息处理方法对应的交互消息处理装置,包括:
交互消息接收模块1202,被配置为响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息;
消息显示发送模块1204,被配置为响应于所述目标交互界面中接收到消息发送触发指令,在所述目标交互界面中显示所述待处理交互消息,基于所述待处理交互消息发送消息处理请求;
消息结果接收模块1206,被配置为接收基于所述消息处理请求返回的消息处理结果,所述消息处理结果基于所述待处理交互消息对应的目标小程序确定;
目标消息展示模块1208,被配置为根据所述消息处理结果,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
上述交互消息处理装置,在目标交互界面中接收到消息输入触发指令时,接收待处理交互消息;在目标交互界面中接收到消息发送触发指令时,在目标交互界面中显示待处理交互消息,基于待处理交互消息发送消息处理请求;接收基于消息处理请求返回的消息处理结果,消息处理结果基于待处理交互消息对应的目标小程序确定;根据消息处理结果,在目标交互界面中展示基于目标小程序的目标交互消息。由于可以接收返回的基于目标小程序的消息处理结果,在目标交互界面中基于该消息处理结果展示基于目标小程序的目标交互消息,如此能够扩展交互消息处理的功能,提高用户粘度。同时,由于小程序获取方式的局限性,上述交互消息处理装置,还可以提高小程序的使用次数。另外,基于本实施例的交互消息处理装置,还容易形成操作闭环,从而,方便流量收益的统计。
在另一个示例性实施例中,所述消息处理结果包括所述目标小程序的程序信息;目标消息展示模块1208,被配置为根据所述目标小程序的所述程序信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
在另一个示例性实施例中,所述程序信息包括所述目标小程序的程序链接信息;目标消息展示模块1208,被配置为根据所述目标小程序的所述程序链接信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
在另一个示例性实施例中,所述程序信息包括所述目标小程序的调用接口信息;所述调用接口信息与所述待处理交互消息对应;目标消息展示模块1208,被配置为根据所述目标小程序的所述调用接口信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
在另一个示例性实施例中,所述消息处理结果还包括所述目标小程序的页面数据;目标消息展示模块1208,被配置为根据所述目标小程序的所述程序信息及所述页面数据,确定基于所述目标小程序的目标交互消息;在所述目标交互界面中展示所述目标交互消息。
在另一个示例性实施例中,所述页面数据包括所述目标小程序的首页页面数据;目标消息展示模块1208,被配置为对所述首页页面数据进行渲染,在所述目标交互界面中展示所述 目标小程序的首页页面,根据所述目标小程序的程序链接信息设置所述首页页面的超级链接。
在另一个示例性实施例中,所述页面数据包括所述目标小程序的目标页面数据;所述目标页面数据与所述目标小程序的调用接口信息对应,所述调用接口信息与所述待处理交互消息对应;目标消息展示模块1208,被配置为对所述目标页面数据进行渲染,在所述目标交互界面中展示所述目标小程序的目标页面,根据所述目标小程序的所述调用接口信息设置所述述目标页面的超级链接。
在另一个示例性实施例中,还包括:
服务请求接收模块,被配置为基于所述目标页面,接收服务请求发送指令;所述服务请求发送指令包括所述目标小程序的程序信息及预设参数;
服务请求确定模块,被配置为根据所述程序信息及所述预设参数发送目标服务请求;
服务响应接收模块,被配置为接收基于所述目标服务请求返回的服务响应结果,展示基于所述目标服务请求返回的服务响应结果。
在另一个示例性实施例中,目标消息展示模块1208,被配置为通过嵌入在所述目标交互界面中的子页面展示所述页面数据,根据所述目标小程序的所述程序信息设置所述页面数据的超级链接。
在另一个示例性实施例中,还包括:
程序请求接收模块,被配置为基于所述目标交互消息接收程序请求发送指令;
程序请求发送模块,被配置为根据所述程序请求发送指令携带的所述目标小程序的程序信息,发送目标程序请求;
程序响应接收模块,被配置为接收根据所述目标程序请求返回的程序响应信息,展示根据所述目标程序请求返回的程序响应信息。
在另一个示例性实施例中,所述程序响应信息包括目标页面数据;所述目标页面数据与所述待处理交互消息对应;该装置还包括:
服务请求接收模块,被配置为基于所述程序响应信息接收服务请求发送指令;所述服务请求发送指令中包括所述目标小程序的调用接口信息及预设参数;
服务请求确定模块,被配置为根据所述预设参数及所述调用接口信息发送目标服务请求;
服务响应接收模块,被配置为接收根据所述目标服务请求返回的服务响应结果,展示根据所述目标服务请求返回的服务响应结果。
在另一个示例性实施例中,还包括:修改指令接收模块。
修改指令接收模块,被配置为基于所述程序响应信息接收参数修改指令;
服务请求接收模块,还被配置为在根据所述参数修改指令修改所述预设参数之后,基于所述程序响应信息据接收服务请求发送指令;
所述服务请求发送指令中包括所述目标小程序的所述调用接口信息及修改后的所述预设参数。
在另一个示例性实施例中,如图13所示,提供了一种与上述运行于后台服务器的交互消息处理方法对应的交互消息处理装置,包括:
交互消息接收模块1302,被配置为接收待处理交互消息;
消息意图分类模块1304,被配置为对所述待处理交互消息进行意图分类,得到所述待处理交互消息的意图分类结果;
消息语义分析模块1306,被配置为响应于所述意图分类结果包括小程序意图,对所述待处理交互消息进行语义分析,确定所述待处理交互消息的消息关键词;
目标程序确定模块1308,被配置为根据所述消息关键词,确定所述待处理交互消息对应的目标小程序的程序标识;
消息结果发送模块1310,被配置为基于所述目标小程序的所述程序标识,发送消息处理结果。
上述交互消息处理装置,接收待处理交互消息;对待处理交互消息意图分类,得到待处理交互消息的意图分类结果;对待处理交互消息进行语义分析,确定待处理交互消息的消息关键词;根据消息关键词,确定待处理交互消息对应的目标小程序的程序标识;基于目标小程序的程序标识,发送消息处理结果。由于可以反馈基于目标小程序的消息处理结果,能够扩展交互消息处理的功能,提高用户粘度。同时由于小程序获取方式的局限性,上述交互消息处理装置,还可以提高目标小程序的使用次数。另外,基于本实施例的交互消息处理装置,还容易形成操作闭环,从而,方便流量收益的统计。
在另一个示例性实施例中,还包括:消息特征提取模块;
消息特征提取模块,被配置为提取所述待处理交互消息的消息特征;
消息意图分类模块1304,还被配置为通过神经网络模型对所述消息特征进行预设意图分类映射,得到所述待处理交互消息的意图分类结果。
在另一个示例性实施例中,所述神经网络模型为全连接神经网络模型。消息意图分类模块1304,还被配置为通过所述全连接神经网络模型的卷积层对所述消息特征进行卷积映射,得到卷积结果;通过所述全连接神经网络模型的池化层对所述卷积结果进行池化映射,得到池化结果;通过所述全连接神经网络模型的全连接层对所述池化结果进行全连接映射,得到所述待处理交互消息的意图分类结果。
在另一个示例性实施例中,还包括:语音识别模块;
语音识别模块,被配置为对所述待处理交互消息进行语音识别,得到文本消息;
消息特征提取模块,还被配置为提取所述文本消息的消息特征。
在另一个示例性实施例中,还包括:程序信息确定模块;
程序信息确定模块,被配置为根据所述程序标识,获取所述目标小程序的程序信息;所述程序信息包括所述目标小程序的程序链接信息或调用接口信息;
消息结果发送模块1310,还被配置为基于所述程序信息,发送消息处理结果。
在另一个示例性实施例中,还包括:页面数据请求模块;
页面数据请求模块,被配置为根据所述程序信息,请求所述目标小程序的页面数据;
消息结果发送模块1310,还被配置为在接收到所述页面数据后,基于所述页面数据及所述程序信息,发送消息处理结果。
在另一个示例性实施例中,还包括:候选程序确定模块及程序特征提取模块;
候选程序确定模块,被配置为根据所述消息关键词,确定所述待处理交互消息对应的候选小程序;
程序特征提取模块,被配置为提取所述候选小程序的小程序特征;
目标程序确定模块1308,还被配置为根据所述小程序特征对所述候选小程序进行排序,将排在预设位置的所述候选小程序的程序标识,确定为所述目标小程序的程序标识。
在另一个示例性实施例中,程序特征提取模块,被配置为响应于所述候选小程序为文本类小程序,提取所述候选小程序的文本特征及所述候选小程序的非文本特征;或者,被配置为响应于所述候选小程序为非文本类小程序,提取所述候选小程序的非文本特征。
如图14所示,在另一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器或终端。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种交互消息处理方法。
本领域技术人员可以理解,图14中示出的结构,仅仅是与本申请方案相关的部分结构的框图,不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包 括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在另一个实施方式中,提供了一种计算机设备,该计算机设备可以是服务器或终端。该计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述交互消息处理方法的步骤。
在另一个示例性实施方式中,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述交互消息处理方法的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (29)

  1. 一种交互消息处理方法,其特征在于,应用于终端,所述方法包括:
    响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息;
    响应于所述目标交互界面中接收到消息发送触发指令,在所述目标交互界面中显示所述待处理交互消息,基于所述待处理交互消息发送消息处理请求;
    接收基于所述消息处理请求返回的消息处理结果,所述消息处理结果基于所述待处理交互消息对应的目标小程序确定;
    根据所述消息处理结果,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
  2. 根据权利要求1所述的方法,其特征在于,所述消息处理结果包括所述目标小程序的程序信息;
    所述根据所述消息处理结果,在所述目标交互界面中展示基于所述目标小程序的目标交互消息,包括:
    根据所述目标小程序的所述程序信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
  3. 根据权利要求2所述的方法,其特征在于,所述程序信息包括所述目标小程序的程序链接信息;
    所述根据所述目标小程序的所述程序信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息,包括:
    根据所述目标小程序的所述程序链接信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
  4. 根据权利要求2所述的方法,其特征在于,所述程序信息包括所述目标小程序的调用接口信息;所述调用接口信息与所述待处理交互消息对应;
    所述根据所述目标小程序的所述程序信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息,包括:
    根据所述目标小程序的所述调用接口信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
  5. 根据权利要求2所述的方法,其特征在于,所述消息处理结果还包括所述目标小程序的页面数据;
    所述根据所述目标小程序的所述程序信息,在所述目标交互界面中展示基于所述目标小程序的目标交互消息,包括:
    根据所述目标小程序的所述程序信息及所述页面数据,确定基于所述目标小程序的目标交互消息;
    在所述目标交互界面中展示所述目标交互消息。
  6. 根据权利要求5所述的方法,其特征在于,所述页面数据包括所述目标小程序的首页页面数据;
    所述在所述目标交互界面中展示所述目标交互消息,包括:
    对所述首页页面数据进行渲染,在所述目标交互界面中展示所述目标小程序的首页页面,根据所述目标小程序的程序链接信息设置所述首页页面的超级链接。
  7. 根据权利要求5所述的方法,其特征在于,所述页面数据包括所述目标小程序的目标页面数据;所述目标页面数据与所述目标小程序的调用接口信息对应,所述调用接口信息与所述待处理交互消息对应;
    所述在所述目标交互界面中展示所述目标交互消息,包括:
    对所述目标页面数据进行渲染,在所述目标交互界面中展示所述目标小程序的目标页面, 根据所述目标小程序的所述调用接口信息设置所述述目标页面的超级链接。
  8. 根据权利要求7所述的方法,其特征在于,所述对所述目标页面数据进行渲染,在所述目标交互界面中展示所述目标小程序的目标页面,根据所述目标小程序的所述调用接口信息设置所述述目标页面的超级链接,之后还包括:
    基于所述目标页面,接收服务请求发送指令;所述服务请求发送指令包括所述目标小程序的程序信息及预设参数;
    根据所述程序信息及所述预设参数发送目标服务请求;
    接收所述目标服务请求返回的服务响应结果;
    展示基于所述目标服务请求返回的服务响应结果。
  9. 根据权利要求5所述的方法,其特征在于,所述在所述目标交互界面中展示所述目标交互消息,包括:
    通过嵌入在所述目标交互界面中的子页面展示所述页面数据,根据所述目标小程序的所述程序信息设置所述页面数据的超级链接。
  10. 根据权利要求1至9任一所述的方法,其特征在于,所述根据所述消息处理结果,在所述目标交互界面中展示基于所述目标小程序的目标交互消息,之后还包括:
    基于所述目标交互消息接收程序请求发送指令;
    根据所述程序请求发送指令携带的所述目标小程序的程序信息,发送目标程序请求;
    接收根据所述目标程序请求返回的程序响应信息;
    展示根据所述目标程序请求返回的所述程序响应信息。
  11. 根据权利要求10所述的方法,其特征在于,所述程序响应信息包括目标页面数据;所述目标页面数据与所述待处理交互消息对应;所述发送所述目标程序请求之后,接收根据所述目标程序请求返回的程序响应信息,展示基于所述目标程序请求返回的程序响应信息,之后还包括:
    基于所述程序响应信息接收服务请求发送指令;所述服务请求发送指令中包括所述目标小程序的调用接口信息及预设参数;
    根据所述预设参数及所述调用接口信息发送目标服务请求;
    接收所述目标服务请求返回的服务响应结果;
    展示根据所述目标服务请求返回的服务响应结果。
  12. 根据权利要求11所述的方法,其特征在于,所述基于所述程序响应信息接收服务请求发送指令,包括:
    基于所述程序响应信息接收参数修改指令;
    在根据所述参数修改指令修改所述预设参数之后,基于所述程序响应信息据接收服务请求发送指令;
    所述服务请求发送指令中包括所述目标小程序的所述调用接口信息及修改后的所述预设参数。
  13. 一种交互消息处理方法,其特征在于,应用于后台服务器,所述方法包括:
    接收待处理交互消息;
    对所述待处理交互消息进行意图分类,得到所述待处理交互消息的意图分类结果;
    响应于所述意图分类结果包括小程序意图,对所述待处理交互消息进行语义分析,确定所述待处理交互消息的消息关键词;
    根据所述消息关键词,确定所述待处理交互消息对应的目标小程序的程序标识;
    基于所述目标小程序的所述程序标识,发送消息处理结果。
  14. 根据权利要求13所述的方法,其特征在于,所述对所述待处理交互消息进行意图分类,得到所述待处理交互消息的意图分类结果,包括:
    提取所述待处理交互消息的消息特征;
    通过神经网络模型对所述消息特征进行预设意图分类映射,得到所述待处理交互消息的意图分类结果。
  15. 根据权利要求14所述的方法,其特征在于,所述神经网络模型为全连接神经网络模型;所述通过神经网络模型对所述消息特征进行预设意图分类映射,得到所述待处理交互消息的意图分类结果,包括:
    通过所述全连接神经网络模型的卷积层对所述消息特征进行卷积映射,得到卷积结果;
    通过所述全连接神经网络模型的池化层对所述卷积结果进行池化映射,得到池化结果;
    通过所述全连接神经网络模型的全连接层对所述池化结果进行全连接映射,得到所述待处理交互消息的意图分类结果。
  16. 根据权利要求14所述的方法,其特征在于,所述提取所述待处理交互消息的消息特征,包括:
    对所述待处理交互消息进行语音识别,得到文本消息;
    提取所述文本消息的消息特征。
  17. 根据权利要求13所述的方法,其特征在于,所述基于所述目标小程序的所述程序标识,发送消息处理结果,包括:
    根据所述程序标识,获取所述目标小程序的程序信息;所述程序信息包括所述目标小程序的程序链接信息或调用接口信息;
    基于所述程序信息,发送消息处理结果。
  18. 根据权利要求17所述的方法,其特征在于,所述基于所述程序信息,发送消息处理结果,包括:
    根据所述程序信息,请求所述目标小程序的页面数据;
    在接收到所述页面数据后,基于所述页面数据及所述程序信息,发送消息处理结果。
  19. 根据权利要求13所述的方法,其特征在于,所述根据所述消息关键词,确定所述待处理交互消息对应的目标小程序的程序标识,包括:
    根据所述消息关键词,确定所述待处理交互消息对应的候选小程序;
    提取所述候选小程序的小程序特征;
    根据所述小程序特征对所述候选小程序进行排序,将排在预设位置的所述候选小程序的程序标识,确定为所述目标小程序的程序标识。
  20. 根据权利要求19所述的方法,其特征在于,所述提取所述候选小程序的小程序特征,包括:
    响应于所述候选小程序为文本类小程序,提取所述候选小程序的文本特征及所述候选小程序的非文本特征;或者,
    响应于所述候选小程序为非文本类小程序,提取所述候选小程序的非文本特征。
  21. 一种交互消息处理装置,所述装置包括:
    交互消息接收模块,被配置为响应于目标交互界面中接收到消息输入触发指令,接收待处理交互消息;
    消息显示发送模块,被配置为响应于所述目标交互界面中接收到消息发送触发指令,在所述目标交互界面中显示所述待处理交互消息,基于所述待处理交互消息发送消息处理请求;
    消息结果接收模块,被配置为接收基于所述消息处理请求返回的消息处理结果,所述消息处理结果基于所述待处理交互消息对应的目标小程序确定;
    目标消息展示模块,被配置为根据所述消息处理结果,在所述目标交互界面中展示基于所述目标小程序的目标交互消息。
  22. 根据权利要求21所述的装置,其特征在于,所述消息处理结果包括所述目标小程序的程序信息;
    所述目标消息展示模块,还被配置为根据所述目标小程序的所述程序信息,在所述目标 交互界面中展示基于所述目标小程序的目标交互消息。
  23. 根据权利要求22所述的装置,其特征在于,所述消息处理结果还包括所述目标小程序的页面数据;
    所述目标消息展示模块,还被配置为根据所述目标小程序的所述程序信息及所述页面数据,确定基于所述目标小程序的目标交互消息;在所述目标交互界面中展示所述目标交互消息。
  24. 根据权利要求21至23任一所述的装置,其特征在于,所述装置还包括:
    程序请求接收模块,被配置为基于所述目标交互消息接收程序请求发送指令;
    程序请求发送模块,被配置为根据所述程序请求发送指令携带的所述目标小程序的程序信息,发送目标程序请求;
    程序响应接收模块,被配置为接收根据所述目标程序请求返回的程序响应信息,展示根据所述目标程序请求返回的程序响应信息。
  25. 一种交互消息处理装置,所述装置包括:
    交互消息接收模块,被配置为接收待处理交互消息;
    消息意图分类模块,被配置为对所述待处理交互消息进行意图分类,得到所述待处理交互消息的意图分类结果;
    消息语义分析模块,被配置为响应于所述意图分类结果包括小程序意图,对所述待处理交互消息进行语义分析,确定所述待处理交互消息的消息关键词;
    目标程序确定模块,被配置为根据所述消息关键词,确定所述待处理交互消息对应的目标小程序的程序标识;
    消息结果发送模块,被配置为基于所述目标小程序的所述程序标识,发送消息处理结果。
  26. 根据权利要求25所述的装置,其特征在于,所述装置还包括:消息特征提取模块;
    所述消息特征提取模块,被配置为提取所述待处理交互消息的消息特征;
    所述消息意图分类模块,还被配置为通过神经网络模型对所述消息特征进行预设意图分类映射,得到所述待处理交互消息的意图分类结果。
  27. 根据权利要求25所述的装置,其特征在于,所述装置还包括:程序信息确定模块;
    所述程序信息确定模块,被配置为根据所述程序标识,获取所述目标小程序的程序信息;所述程序信息包括所述目标小程序的程序链接信息或调用接口信息;
    所述消息结果发送模块,还被配置为基于所述程序信息,发送消息处理结果。
  28. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1-20任意一项所述的方法的步骤。
  29. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-20任意一项所述的方法的步骤。
PCT/CN2020/079214 2019-03-26 2020-03-13 交互消息处理方法、装置、计算机设备和存储介质 WO2020192450A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2021522073A JP2022505659A (ja) 2019-03-26 2020-03-13 インタラクティブメッセージ処理方法、装置、コンピュータ機器及びコンピュータプログラム
KR1020217013964A KR102592268B1 (ko) 2019-03-26 2020-03-13 상호 작용 메시지 처리 방법 및 장치, 컴퓨터 디바이스 그리고 저장 매체
US17/320,005 US11343221B2 (en) 2019-03-26 2021-05-13 Interaction message processing method and apparatus, computer device, and storage medium
US17/727,642 US11799818B2 (en) 2019-03-26 2022-04-22 Interaction message processing method and apparatus, computer device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910233186.8 2019-03-26
CN201910233186.8A CN110162776A (zh) 2019-03-26 2019-03-26 交互消息处理方法、装置、计算机设备和存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/320,005 Continuation US11343221B2 (en) 2019-03-26 2021-05-13 Interaction message processing method and apparatus, computer device, and storage medium

Publications (1)

Publication Number Publication Date
WO2020192450A1 true WO2020192450A1 (zh) 2020-10-01

Family

ID=67638930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079214 WO2020192450A1 (zh) 2019-03-26 2020-03-13 交互消息处理方法、装置、计算机设备和存储介质

Country Status (5)

Country Link
US (2) US11343221B2 (zh)
JP (1) JP2022505659A (zh)
KR (1) KR102592268B1 (zh)
CN (1) CN110162776A (zh)
WO (1) WO2020192450A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112270531A (zh) * 2020-10-30 2021-01-26 重庆紫光华山智安科技有限公司 事项通知方法、装置、服务器及存储介质

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112449700A (zh) * 2019-06-28 2021-03-05 西门子股份公司 语义模型实例化方法、系统和装置
CN110519373B (zh) * 2019-08-28 2022-04-26 百度在线网络技术(北京)有限公司 用于推送信息的方法和装置
CN110866801A (zh) * 2019-10-10 2020-03-06 上海瀚之友信息技术服务有限公司 一种嵌入式的交互系统及交互方法
CN110837334B (zh) * 2019-11-04 2022-03-22 北京字节跳动网络技术有限公司 用于交互控制的方法、装置、终端及存储介质
CN111078424A (zh) * 2019-11-25 2020-04-28 苏州亿歌网络科技有限公司 一种信息交互方法、装置、计算机设备和存储介质
CN111782965B (zh) * 2020-06-29 2023-08-11 北京百度网讯科技有限公司 意图推荐方法、装置、设备及存储介质
CN112307371B (zh) * 2020-10-27 2024-03-22 支付宝(杭州)信息技术有限公司 小程序子服务识别方法、装置、设备及存储介质
CN112423011B (zh) * 2020-11-17 2022-09-09 北京达佳互联信息技术有限公司 消息回复方法、装置、设备及存储介质
CN112416474B (zh) * 2020-11-19 2022-06-03 腾讯科技(深圳)有限公司 客户端的功能调用方法和装置、存储介质及电子设备
CN112612559A (zh) * 2020-11-23 2021-04-06 捷德(中国)科技有限公司 消息处理方法、装置、电子设备及存储介质
CN112764620B (zh) * 2021-01-25 2022-06-21 北京三快在线科技有限公司 交互请求处理方法、装置、电子设备及可读存储介质
CN114489557B (zh) * 2021-12-15 2024-03-22 青岛海尔科技有限公司 语音交互方法、装置、设备及存储介质
CN114780190B (zh) * 2022-04-13 2023-12-22 脸萌有限公司 消息处理方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229526A (zh) * 2017-05-17 2017-10-03 腾讯科技(深圳)有限公司 群会话中的消息处理方法、装置、存储介质和计算机设备
CN107977183A (zh) * 2017-11-16 2018-05-01 百度在线网络技术(北京)有限公司 语音交互方法、装置及设备
CN108352006A (zh) * 2015-11-06 2018-07-31 苹果公司 即时消息环境中的智能自动化助理
CN109036397A (zh) * 2018-06-29 2018-12-18 百度在线网络技术(北京)有限公司 用于呈现内容的方法和装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8015563B2 (en) * 2006-04-14 2011-09-06 Microsoft Corporation Managing virtual machines with system-wide policies
US20120158806A1 (en) * 2010-12-20 2012-06-21 Verizon Patent And Licensing Inc. Provisioning network-attached storage
KR101402506B1 (ko) * 2011-12-01 2014-06-03 라인 가부시키가이샤 인스턴트 메시징 어플리케이션을 이용한 대화형 정보제공 시스템 및 방법
CN105094315B (zh) * 2015-06-25 2018-03-06 百度在线网络技术(北京)有限公司 基于人工智能的人机智能聊天的方法和装置
US10257143B2 (en) * 2015-06-30 2019-04-09 Vmware, Inc. Methods and apparatus to generate knowledge base articles
KR101712180B1 (ko) * 2015-12-29 2017-03-06 라인 가부시키가이샤 메시지를 송수신하기 위한 컴퓨터로 읽을 수 있는 기록매체에 저장된 프로그램, 방법 및 장치
US10567312B2 (en) * 2016-04-11 2020-02-18 Facebook, Inc. Techniques for messaging bot controls based on machine-learning user intent detection
JP6605151B2 (ja) * 2016-09-20 2019-11-13 グーグル エルエルシー ボットインタラクション
US10929917B2 (en) * 2016-12-16 2021-02-23 Paypal, Inc. Accessing chat sessions via chat bots for cart generation
WO2020062006A1 (en) * 2018-09-28 2020-04-02 Entit Software Llc Intent and context-aware dialogue based virtual assistance
US20210358496A1 (en) * 2018-10-03 2021-11-18 Visteon Global Technologies, Inc. A voice assistant system for a vehicle cockpit system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108352006A (zh) * 2015-11-06 2018-07-31 苹果公司 即时消息环境中的智能自动化助理
CN107229526A (zh) * 2017-05-17 2017-10-03 腾讯科技(深圳)有限公司 群会话中的消息处理方法、装置、存储介质和计算机设备
CN107977183A (zh) * 2017-11-16 2018-05-01 百度在线网络技术(北京)有限公司 语音交互方法、装置及设备
CN109036397A (zh) * 2018-06-29 2018-12-18 百度在线网络技术(北京)有限公司 用于呈现内容的方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112270531A (zh) * 2020-10-30 2021-01-26 重庆紫光华山智安科技有限公司 事项通知方法、装置、服务器及存储介质
CN112270531B (zh) * 2020-10-30 2023-12-29 重庆紫光华山智安科技有限公司 事项通知方法、装置、服务器及存储介质

Also Published As

Publication number Publication date
CN110162776A (zh) 2019-08-23
KR20210070363A (ko) 2021-06-14
JP2022505659A (ja) 2022-01-14
US11343221B2 (en) 2022-05-24
US20220247708A1 (en) 2022-08-04
US20210266287A1 (en) 2021-08-26
US11799818B2 (en) 2023-10-24
KR102592268B1 (ko) 2023-10-19

Similar Documents

Publication Publication Date Title
WO2020192450A1 (zh) 交互消息处理方法、装置、计算机设备和存储介质
US10762299B1 (en) Conversational understanding
US20190124020A1 (en) Chatbot Skills Systems And Methods
US20200334740A1 (en) System and method for a hybrid conversational and graphical user interface
US10394577B2 (en) Method and apparatus for automatic processing of service requests on an electronic device
KR102277300B1 (ko) 검색 서비스와 연결된 메시지 서비스를 위한 메시지 서비스 제공 방법 및 상기 메시지 서비스 제공 방법을 수행하는 메시지 서버 및 사용자 단말
US11488599B2 (en) Session message processing with generating responses based on node relationships within knowledge graphs
US11573990B2 (en) Search-based natural language intent determination
US20230043260A1 (en) Persisting an AI-supported conversation across multiple channels
US20210165846A1 (en) Information processing apparatus, information processing system, and method of processing information
CN110929014A (zh) 信息处理方法、装置、电子设备及存储介质
WO2022166811A1 (zh) 信息处理方法、装置、电子设备和存储介质
US10212113B2 (en) Uniform resource identifier and image sharing for contextual information display
CN111046151B (zh) 一种消息处理方法及装置
CN117252730B (zh) 服务订阅处理系统、服务订阅信息处理方法与装置
US20230259541A1 (en) Intelligent Assistant System for Conversational Job Search
US20220329545A1 (en) Intelligent Assistant Content Generation
KR20220126557A (ko) 다중 도메인 챗봇 시스템 및 그 운용 방법
CN111816173A (zh) 对话数据处理方法、装置、存储介质及计算机设备
CN116627416A (zh) 页面配置方法、装置、计算机设备及存储介质
CN117118943A (zh) 信息处理方法、装置和计算机设备
TW202011719A (zh) 具備行動加值服務之智能網路交換機系統

Legal Events

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

Ref document number: 20778272

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021522073

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20217013964

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20778272

Country of ref document: EP

Kind code of ref document: A1