TW201833845A - Information acquisition method, providing method, device, system, and storage medium - Google Patents

Information acquisition method, providing method, device, system, and storage medium Download PDF

Info

Publication number
TW201833845A
TW201833845A TW107106429A TW107106429A TW201833845A TW 201833845 A TW201833845 A TW 201833845A TW 107106429 A TW107106429 A TW 107106429A TW 107106429 A TW107106429 A TW 107106429A TW 201833845 A TW201833845 A TW 201833845A
Authority
TW
Taiwan
Prior art keywords
information
server
user input
input message
type
Prior art date
Application number
TW107106429A
Other languages
Chinese (zh)
Other versions
TWI683272B (en
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
Priority claimed from CN201710123278.1A external-priority patent/CN108304153A/en
Priority claimed from CN201710193668.6A external-priority patent/CN108306851B/en
Application filed by 大陸商騰訊科技(深圳)有限公司 filed Critical 大陸商騰訊科技(深圳)有限公司
Publication of TW201833845A publication Critical patent/TW201833845A/en
Application granted granted Critical
Publication of TWI683272B publication Critical patent/TWI683272B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Abstract

The invention discloses an information acquisition method, a providing method, a device, a system, and a storage medium. The method comprises the following steps: acquiring a user input message of a first type, the user input message of the first type refers to a user input message carrying all the ordering element information, wherein the ordering element information refers to necessary information needed by the online ordering of the virtual resource; and sending a first type of user input message to the server; and the receiving server obtains virtual resource information sent after the virtual resources matched with all the ordering element information are obtained, the virtual resource information is used for ordering the virtual resources on line. According to the embodiment of the invention, the interaction frequency between the client and the server in the whole ordering process is reduced, the operation efficiency of online ordering of the virtual resources is improved, and transmission resources between the client side and the server are saved.

Description

資訊獲取方法、提供方法、裝置及系統、儲存介質    Information acquisition method, providing method, device and system, storage medium   

本發明涉及互聯網技術領域,具體而言,涉及一種資訊獲取方法、提供方法、裝置及系統、儲存介質。本申請要求於2017年03月02日提交中國專利局、申請號為201710123278.1、發明名稱為“語音交互方法和裝置”的中國專利申請的優先權,以及於2017年03月28日提交中國專利局、申請號為201710193668.6、發明名稱為“資訊獲取方法、提供方法、裝置及系統”的中國專利申請的優先權,其全部內容通過引用結合在本申請中。 The present invention relates to the field of Internet technology, and in particular, to an information acquisition method, providing method, device and system, and storage medium. This application requires the priority of the Chinese patent application submitted to the Chinese Patent Office on March 02, 2017, with the application number 201710123278.1, and the invention titled "voice interaction method and device", and the Chinese Patent Office on March 28, 2017 The priority of the Chinese patent application with the application number 201710193668.6 and the invention titled "Information Acquisition Method, Provision Method, Device and System", the entire content of which is incorporated by reference in this application.

隨著互聯網技術的發展,用戶能夠通過互聯網線上下單購買電子票,從而降低了用戶購買電子票所需的時間成本。電子票是指能夠在網路中傳輸並能夠在終端上顯示,且與紙質票具有相同功能的票據。目前,諸如電影票、演出門票、演唱會門票、球賽門票等票據都會以電子票的形式提供給用戶,以方便用戶購買。 With the development of Internet technology, users can place orders online to purchase electronic tickets, thereby reducing the time cost for users to purchase electronic tickets. Electronic ticket refers to a ticket that can be transmitted on the network and can be displayed on the terminal, and has the same function as the paper ticket. At present, tickets such as movie tickets, performance tickets, concert tickets, and ball game tickets will be provided to users in the form of electronic tickets to facilitate users' purchases.

以電影票為例,在相關技術中,用戶通過如下操作獲取電影票訂單,並根據該電影票訂單完成電影票的線上購買。用戶在諸如手機、平板電腦之類的終端中安裝具有線上購買電影票功能的應用程式用戶端, 然後通過該用戶端將用戶查找、選擇的電影票的相關資訊發送給伺服器,由伺服器根據該用戶選擇的電影票的相關資訊生成電影票訂單。例如,依次執行如下操作步驟獲取電影票訂單:1、選擇影院;2、選擇影片;3、選擇放映場次;4、選擇座位;5、獲取電影票訂單。其中,選擇影院的步驟可以在選擇影片的步驟之前執行,也可以在選擇影片的步驟之後執行。在獲取到電影票訂單之後,根據電影票訂單所提示的金額進行線上支付,線上支付成功後即完成電影票線上購買。 Taking a movie ticket as an example, in the related art, a user obtains a movie ticket order through the following operations, and completes an online purchase of the movie ticket according to the movie ticket order. The user installs an application client with the function of purchasing movie tickets online in a terminal such as a mobile phone or a tablet computer, and then sends relevant information about the movie ticket found and selected by the user to the server through the user terminal. The relevant information of the movie ticket selected by the user generates a movie ticket order. For example, perform the following steps in order to obtain a movie ticket order: 1. Select a theater; 2. Select a movie; 3. Select a screening session; 4. Select a seat; 5. Obtain a movie ticket order. Among them, the step of selecting a theater may be performed before the step of selecting a movie, or may be performed after the step of selecting a movie. After the movie ticket order is obtained, online payment is made according to the amount indicated in the movie ticket order, and the online purchase of the movie ticket is completed after the online payment is successful.

在上述獲取電影票訂單的每一個操作步驟中,需要用戶主動查找及選擇電影票的相關資訊,且每個步驟都需要用戶端與伺服器進行至少一次交互,整個過程需要用戶端與伺服器之間進行較多次數的交互,伺服器僅需要根據用戶選擇的電影票的相關資訊生成電影票訂單。 In each of the above operation steps for obtaining a movie ticket order, the user is required to actively search for and select the relevant information of the movie ticket, and each step requires the client to interact with the server at least once. For more interactions between times, the server only needs to generate a movie ticket order based on the relevant information of the movie ticket selected by the user.

因此,上述相關技術提供的獲取電影票訂單的方法,操作效率較低,且浪費用戶端與伺服器之間的傳輸資源。而對於除電影票之外的其他虛擬資源(例如演出門票、演唱會門票、電子機票、入場券等),在獲取虛擬資源訂單時所採用的方法與上述相關技術相同或類似,存在同樣的技術問題。 Therefore, the method for obtaining movie ticket orders provided by the above-mentioned related art has low operation efficiency and wastes transmission resources between the user terminal and the server. For virtual resources other than movie tickets (such as performance tickets, concert tickets, electronic tickets, admission tickets, etc.), the method used to obtain virtual resource orders is the same as or similar to the above-mentioned related technologies, and the same technologies exist problem.

針對上述的問題,目前尚未提出有效的解決方案。 In response to the above problems, no effective solution has been proposed yet.

本發明實施例提供了一種資訊獲取方法、提供方法、裝置及系統、儲存介質,以至少解決相關技術中獲取虛擬資源訂單的操作效率較低,且浪費用戶端與伺服器之間的傳輸資源的技術問題。 Embodiments of the present invention provide an information acquisition method, provision method, device and system, and storage medium to at least solve the related art in which the operation efficiency of acquiring virtual resource orders is low, and the transmission resources between the user terminal and the server are wasted technical problem.

第一方面,提供了一種資訊獲取方法,所述方法包括: 獲取第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;向伺服器發送所述第一類型的用戶輸入消息;接收所述伺服器在獲取到與所述全部的訂購要素資訊相匹配的虛擬資源之後發送的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。 In a first aspect, there is provided an information acquisition method, the method comprising: acquiring a first type of user input message, the first type of user input message refers to a user input message carrying all order element information, the Ordering element information refers to the necessary information required for ordering virtual resources online; sending the first type of user input message to the server; receiving that the server obtains virtual resources that match all the ordering element information Virtual resource information sent afterwards, which is used for online ordering of virtual resources that match all the order element information.

第二方面,提供了一種資訊提供方法,所述方法包括:接收用戶端發送的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;獲取與所述全部的訂購要素資訊相匹配的虛擬資源;生成用於訂購所述虛擬資源的虛擬資源資訊;向所述用戶端發送所述虛擬資源資訊。 In a second aspect, a method for providing information is provided. The method includes: receiving a first type of user input message sent by a user terminal, where the first type of user input message refers to a user input that carries all the order element information Message, the order element information refers to the necessary information required for ordering virtual resources online; obtaining virtual resources matching all of the order element information; generating virtual resource information for ordering the virtual resources; The user terminal sends the virtual resource information.

第三方面,提供了一種資訊獲取方法,所述方法包括:顯示與訂購伺服器的聊天對話介面;獲取在所述聊天對話介面中輸入的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;向所述訂購伺服器發送所述第一類型的用戶輸入消息;顯示接收到的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。 In a third aspect, an information acquisition method is provided, the method including: displaying a chat dialogue interface with a subscription server; acquiring a first type of user input message entered in the chat dialogue interface, the first type of The user input message refers to a user input message that carries all order element information, and the order element information refers to necessary information required for ordering virtual resources online; the first type of user input message is sent to the order server ; Display the received virtual resource information, the virtual resource information is used to order online virtual resources that match all the order element information.

第四方面,提供了一種資訊獲取裝置,所述裝置包括:第一獲取模組,用於獲取第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;第一發送模組,用於向伺服器發送所述第一類型的用戶輸入消息;資訊接收模組,用於接收所述伺服器在獲取到與所述全部的訂購要素資訊相匹配的虛擬資源之後發送的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。 According to a fourth aspect, an information acquisition device is provided. The device includes: a first acquisition module for acquiring a first type of user input message, where the first type of user input message refers to carrying all order elements User input message of information, the order element information refers to the necessary information required to order virtual resources online; the first sending module is used to send the first type of user input message to the server; the information receiving module, For receiving virtual resource information sent by the server after acquiring virtual resources matching all of the order element information, and the virtual resource information is used for online ordering to match all the order element information Virtual resources.

第五方面,提供了一種資訊提供裝置,所述裝置包括:第一接收模組,用於接收用戶端發送的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;資源獲取模組,用於獲取與所述全部的訂購要素資訊相匹配的虛擬資源;資訊生成模組,用於生成用於訂購所述虛擬資源的虛擬資源資訊;資訊發送模組,用於向所述用戶端發送所述虛擬資源資訊。 According to a fifth aspect, an information providing device is provided. The device includes: a first receiving module configured to receive a first type of user input message sent by a user terminal, where the first type of user input message refers to User input message for all the order element information, the order element information refers to the necessary information required for ordering virtual resources online; the resource acquisition module is used to acquire virtual resources that match the all order element information; A generating module is used to generate virtual resource information for ordering the virtual resource; an information sending module is used to send the virtual resource information to the user terminal.

第六方面,提供了一種資訊獲取裝置,所述裝置包括:介面顯示模組,用於顯示與訂購伺服器的聊天對話介面;第一獲取模組,用於獲取在所述聊天對話介面中輸入的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂 購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;第一發送模組,用於向所述訂購伺服器發送所述第一類型的用戶輸入消息;資訊顯示模組,用於顯示接收到的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。 According to a sixth aspect, an information acquisition device is provided. The device includes: an interface display module for displaying a chat dialogue interface with an order server; a first acquisition module for acquiring input in the chat dialogue interface The first type of user input message, the first type of user input message refers to the user input message that carries all the order element information, the order element information refers to the necessary information required to order virtual resources online; A sending module is used to send the first type of user input message to the order server; an information display module is used to display the received virtual resource information, the virtual resource information is used for online ordering and The virtual resources that match all the order element information.

第七方面,提供了一種資訊獲取系統,所述系統包括:用戶端和伺服器;所述用戶端包括如第四方面所述的資訊獲取裝置;所述伺服器包括如第五方面所述的資訊提供裝置。 According to a seventh aspect, an information acquisition system is provided. The system includes: a user terminal and a server; the user terminal includes the information acquisition device according to the fourth aspect; and the server includes the fifth aspect Information provision device.

通過將全部的訂購要素資訊一次收集完成,用戶端將上述全部的訂購要素資訊一併發送給伺服器,由伺服器查找與其匹配的虛擬資源並生成相應的虛擬資源訂單,從而減少整個訂購過程中用戶端與伺服器之間的交互次數,有助於提升線上訂購虛擬資源的操作效率,且節省用戶端與伺服器之間的傳輸資源。 By collecting all the order element information at once, the client sends all the order element information to the server, and the server finds the matching virtual resources and generates corresponding virtual resource orders, thereby reducing the entire ordering process. The number of interactions between the client and the server helps to increase the efficiency of online ordering of virtual resources and saves transmission resources between the client and the server.

1~7‧‧‧步驟 1 ~ 7‧‧‧Step

102‧‧‧終端 102‧‧‧terminal

104‧‧‧伺服器 104‧‧‧Server

201~205‧‧‧步驟 201 ~ 205‧‧‧Step

S302、S304、S306、S308‧‧‧步驟 Steps S302, S304, S306, S308‧‧‧

30‧‧‧資訊收集頁面 30‧‧‧Information collection page

31‧‧‧影片輸入框 31‧‧‧Video input box

32‧‧‧影院輸入框 32‧‧‧ Theater input box

33‧‧‧時間輸入框 33‧‧‧Time input box

34‧‧‧人數輸入框 34‧‧‧ Number input box

35‧‧‧確認控制項 35‧‧‧Confirm control items

401~414‧‧‧步驟 401 ~ 414‧‧‧Step

501~505‧‧‧步驟 501 ~ 505‧‧‧Step

61‧‧‧歡迎語 61‧‧‧Welcome

62‧‧‧文字輸入欄 62‧‧‧Text input field

63‧‧‧語音輸入按鈕 63‧‧‧Voice input button

64‧‧‧快捷功能按鈕 64‧‧‧Quick function button

65‧‧‧資訊收集頁面 65‧‧‧Information collection page

66‧‧‧電影票訂單 66‧‧‧ movie ticket order

70‧‧‧伺服器 70‧‧‧Server

71‧‧‧消息收發模組 71‧‧‧Message transceiver module

72‧‧‧消息識別模組 72‧‧‧Message recognition module

73‧‧‧消息分發模組 73‧‧‧Message Distribution Module

74‧‧‧消息過濾模組 74‧‧‧Message Filter Module

81‧‧‧消息伺服器 81‧‧‧Message Server

82‧‧‧處理伺服器 82‧‧‧Processing server

83‧‧‧解析伺服器 83‧‧‧Analysis server

84‧‧‧代理伺服器 84‧‧‧Proxy server

901~914‧‧‧步驟 901 ~ 914‧‧‧Step

1010‧‧‧第一獲取模組 1010‧‧‧First acquisition module

1020‧‧‧第一發送模組 1020‧‧‧ First sending module

1030‧‧‧資訊接收模組 1030‧‧‧Information receiving module

1110‧‧‧第一接收模組 1110‧‧‧First receiving module

1120‧‧‧資源獲取模組 1120‧‧‧Resource Acquisition Module

1130‧‧‧資訊生成模組 1130‧‧‧ Information generation module

1140‧‧‧資訊發送模組 1140‧‧‧Information sending module

1210‧‧‧介面顯示模組 1210‧‧‧Interface display module

1220‧‧‧第一獲取模組 1220‧‧‧First acquisition module

1230‧‧‧第一發送模組 1230‧‧‧ First sending module

1240‧‧‧資訊顯示模組 1240‧‧‧Information display module

1310‧‧‧RF電路 1310‧‧‧RF circuit

1320‧‧‧記憶體 1320‧‧‧Memory

1330‧‧‧輸入單元 1330‧‧‧input unit

1331‧‧‧圖像輸入設備 1331‧‧‧Image input device

1332‧‧‧其他輸入設備 1332‧‧‧Other input devices

1340‧‧‧顯示單元 1340‧‧‧Display unit

1341‧‧‧顯示面板 1341‧‧‧Display panel

1350‧‧‧感測器 1350‧‧‧sensor

1360‧‧‧音頻電路 1360‧‧‧Audio circuit

1361‧‧‧揚聲器 1361‧‧‧speaker

1362‧‧‧傳聲器 1362‧‧‧Microphone

1370‧‧‧WiFi模組 1370‧‧‧WiFi module

1380‧‧‧處理器 1380‧‧‧ processor

1390‧‧‧電源 1390‧‧‧Power supply

1400‧‧‧伺服器 1400‧‧‧Server

1401‧‧‧中央處理單元 1401‧‧‧Central Processing Unit

1402‧‧‧隨機存取記憶體 1402‧‧‧random access memory

1403‧‧‧唯讀記憶體 1403‧‧‧Read-only memory

1404‧‧‧系統記憶體 1404‧‧‧ system memory

1405‧‧‧系統匯流排 1405‧‧‧ system bus

1406‧‧‧I/O系統 1406‧‧‧I / O system

1407‧‧‧大容量儲存設備 1407‧‧‧Large capacity storage equipment

1408‧‧‧顯示器 1408‧‧‧Monitor

1409‧‧‧輸入設備 1409‧‧‧ input device

1410‧‧‧輸入輸出控制器 1410‧‧‧I / O controller

1411‧‧‧網路介面單元 1411‧‧‧Network Interface Unit

1412‧‧‧網路 1412‧‧‧ Internet

1413‧‧‧作業系統 1413‧‧‧Operating system

1414‧‧‧應用程式 1414‧‧‧Application

1415‧‧‧其他程式模組 1415‧‧‧Other program module

為了更清楚地說明本申請實施例中的技術方案,下面將對實施例描述中所需要使用的附圖作簡單地介紹:圖1是根據本發明實施例提供的一種實施環境的示意圖;圖2是根據本發明實施例提供的一種資訊獲取方法的流程圖;圖3是根據本發明實施例的一種語音交互方法的流程圖; 圖4是根據本發明實施例中的展示目標資料的示意圖;圖5是根據本發明實施例的另一種可選的語音交互方法的流程圖;圖6是根據本發明實施例的語音交互方法與競品的語音交互方法的對比的示意圖;圖7是示例性示出的一種資訊收集頁面的示意圖;圖8是根據本發明實施例提供的另一種資訊獲取方法的流程圖;圖9是根據本發明實施例提供的另一種資訊獲取方法的流程圖;圖10是示例性示出的一種獲取電子票資訊的介面示意圖;圖11是示例性示出的一種伺服器對消息的處理流程的示意圖;圖12是示例性示出的一種伺服器集群的架構圖;圖13是根據本發明實施例提供的另一種資訊獲取方法的流程圖;圖14是根據本發明實施例提供的一種資訊獲取裝置的框圖;圖15是根據本發明實施例提供的一種資訊提供裝置的框圖;圖16是根據本發明實施例提供的一種資訊獲取裝置的框圖;圖17是根據本發明實施例提供的一種終端的結構示意圖;圖18是根據本發明實施例提供的一種伺服器的結構示意圖。 In order to more clearly explain the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings used in the description of the embodiments: FIG. 1 is a schematic diagram of an implementation environment provided according to an embodiment of the present invention; FIG. 2 FIG. 3 is a flowchart of a voice interaction method according to an embodiment of the present invention; FIG. 3 is a flowchart of a voice interaction method according to an embodiment of the present invention; FIG. 4 is a schematic diagram showing target data according to an embodiment of the present invention; 5 is a flowchart of another optional voice interaction method according to an embodiment of the present invention; FIG. 6 is a schematic diagram comparing a voice interaction method according to an embodiment of the present invention with a voice interaction method of competing products; FIG. 7 is an exemplary illustration FIG. 8 is a flowchart of another information acquisition method according to an embodiment of the invention; FIG. 9 is a flowchart of another information acquisition method according to an embodiment of the invention; FIG. 10 is An exemplary schematic diagram of an interface for obtaining electronic ticket information; FIG. 11 is an exemplary exemplary flow of a server processing message FIG. 12 is an exemplary architecture diagram of a server cluster; FIG. 13 is a flowchart of another information acquisition method according to an embodiment of the invention; FIG. 14 is an information acquisition according to an embodiment of the invention Block diagram of the device; FIG. 15 is a block diagram of an information providing device provided according to an embodiment of the present invention; FIG. 16 is a block diagram of an information obtaining device provided according to an embodiment of the present invention; FIG. 17 is provided according to an embodiment of the present invention 18 is a schematic structural diagram of a terminal; FIG. 18 is a schematic structural diagram of a server according to an embodiment of the present invention.

請參照圖式,其中相同的元件符號代表相同的元件或是相似的元件,本申請的原理是以實施在適當的運算環境中來舉例說明。以下的說明是基於所例示的本申請具體實施例,其不應被視為限制本申請未在此詳述的其它具體實施例。 Please refer to the drawings, in which the same element symbol represents the same element or a similar element. The principle of the present application is illustrated by implementation in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments not detailed herein.

需要說明的是,本發明的說明書和權利要求書及上述附圖中 的術語“第一”、“第二”等是用於區別類似的物件,而不必用於描述特定的順序或先後次序。應該理解這樣使用的資料在適當情況下可以互換,以便這裏描述的本發明的實施例能夠以除了在這裏圖示或描述的那些以外的順序實施。此外,術語“包括”和“具有”以及他們的任何變形,意圖在於覆蓋不排他的包含,例如,包含了一系列步驟或單元的過程、方法、系統、產品或設備不必限於清楚地列出的那些步驟或單元,而是可包括沒有清楚地列出的或對於這些過程、方法、產品或設備固有的其他步驟或單元。 It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar items, and do not have to be used to describe a specific order or sequential order. It should be understood that the materials so used are interchangeable under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, processes, methods, systems, products or devices that contain a series of steps or units need not be limited to those clearly listed Those steps or units, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or equipment.

請參考圖1,其示出了本發明實施例提供的一種實施環境的示意圖。該實施環境可以包括:終端102和伺服器104。 Please refer to FIG. 1, which illustrates a schematic diagram of an implementation environment provided by an embodiment of the present invention. The implementation environment may include: a terminal 102 and a server 104.

終端102可以是諸如手機、平板電腦、電子書閱讀器、多媒體播放設備、PDA(Personal Digital Assistant,個人數位助理)、PC(Personal Computer,個人電腦)等電子設備。終端102中安裝運行有具備線上訂購虛擬資源功能的用戶端。例如,該用戶端可以是具備AI(Artificial Intelligence,人工智慧)功能的用戶端,也可以是購物類用戶端,或者是瀏覽器,該瀏覽器能夠打開具備線上訂購虛擬資源功能的網頁。 The terminal 102 may be an electronic device such as a mobile phone, a tablet computer, an e-book reader, a multimedia playback device, a PDA (Personal Digital Assistant), and a PC (Personal Computer). The terminal 102 is installed with a user terminal having a function of ordering virtual resources online. For example, the user terminal may be a user terminal with AI (Artificial Intelligence, artificial intelligence) function, a shopping user terminal, or a browser that can open a webpage with the function of ordering virtual resources online.

終端102與伺服器104之間具有通信連接。該通信連接可以基於有線網路或者無線網路建立。 There is a communication connection between the terminal 102 and the server 104. The communication connection can be established based on a wired network or a wireless network.

伺服器104可以是一台伺服器,也可以是由多台伺服器組成的伺服器集群,或者是一個雲計算服務中心。伺服器104用於向上述用戶端提供後臺服務。 The server 104 may be a single server, or a server cluster composed of multiple servers, or a cloud computing service center. The server 104 is used to provide background services to the client.

在本發明實施例中,虛擬資源是指能夠在網路上訂購的資 源。虛擬資源可以是虛擬物品,也可以是服務,或者其他類型的虛擬資源。 In the embodiment of the present invention, the virtual resource refers to a resource that can be ordered on the network. Virtual resources can be virtual items, services, or other types of virtual resources.

在一個示例中,虛擬資源為電子票。電子票是指能夠在網路中傳輸並能夠在終端上顯示,且與紙質票具有相同功能的票據。可選地,電子票是內容、地點、時間、人數和座位中的至少兩項參數需要進行選擇的票據。上述地點可以是場地、場館、商場等公共場所。例如,電子票可以是電影票、演出門票、演唱會門票、音樂會門票、球賽門票、電子機票、電子火車票、電子入場券等等。 In one example, the virtual resource is an electronic ticket. Electronic ticket refers to a ticket that can be transmitted on the network and can be displayed on the terminal, and has the same function as the paper ticket. Optionally, the electronic ticket is a ticket that needs to be selected for at least two parameters of content, location, time, number of people, and seat. The above-mentioned location may be a public place such as a venue, a venue, a shopping mall or the like. For example, the electronic ticket may be a movie ticket, a performance ticket, a concert ticket, a concert ticket, a ball game ticket, an electronic ticket, an electronic train ticket, an electronic ticket, etc.

在本發明實施例中,通過將全部的訂購要素資訊一次收集完成,用戶端將上述全部的訂購要素資訊一併發送給伺服器,以使得伺服器據此生成符合上述訂購需求的虛擬資源訂單,從而減少整個訂單獲取過程中用戶端與伺服器之間的交互次數,有助於提升獲取虛擬資源訂單的操作效率,且節省用戶端與伺服器之間的傳輸資源。 In the embodiment of the present invention, by collecting all the order element information at one time, the client sends all the order element information to the server, so that the server generates a virtual resource order that meets the order requirements, Therefore, the number of interactions between the client and the server during the entire order acquisition process is reduced, which helps to improve the operation efficiency of obtaining virtual resource orders and save the transmission resources between the client and the server.

其中,訂購要素資訊是指線上訂購虛擬資源所需的必要資訊,全部的訂購要素資訊是指線上訂購虛擬資源所需的全部必要資訊。當虛擬資源為電子票時,訂購要素資訊可以稱為購票要素資訊,購票要素資訊是指線上購買電子票所需的必要資訊。相應地,全部的購票要素資訊是指線上購買電子票所需的全部必要資訊。以電子票是電影票為例,全部的購票要素資訊包括:影片名稱、影院名稱、觀影時間和觀影人數。以電子票是演唱會門票為例,全部的購票要素資訊包括:演出名稱、演出場館、演出時間、觀演人數、觀演座位(或觀演座位區域)。以電子票是電子機票為例,全部的購票要素資訊包括:航班編號、購票人數、乘機座位(或乘機倉位)。 Among them, the order element information refers to the necessary information required to order virtual resources online, and all the order element information refers to all the necessary information required to order virtual resources online. When the virtual resource is an electronic ticket, the order element information can be referred to as ticket purchase element information, and the ticket purchase element information refers to the necessary information required to purchase an electronic ticket online. Correspondingly, all ticket purchase element information refers to all necessary information required for online purchase of electronic tickets. Taking the electronic ticket as a movie ticket for example, all the ticket purchase information includes: the name of the movie, the name of the theater, the viewing time and the number of viewers. Taking the electronic ticket as a concert ticket for example, all the ticket purchase element information includes: performance name, performance venue, performance time, number of people watching, seats for watching (or seating area for watching). Taking an electronic ticket as an electronic ticket for example, all the ticket purchase element information includes: flight number, number of ticket purchasers, check-in seat (or check-in position).

示例性地,本發明實施例提供的技術方案,可應用於任何具備線上訂購虛擬資源功能的系統中。例如,該系統可以是購物系統、生活服務系統、電子票務系統、團購系統、電影票訂購系統、機票訂購系統、火車票訂購系統等。該系統可以基於人工智慧技術實現,以和用戶對話的形式獲取用戶的訂購需求,進而根據用戶的訂購需求為用戶訂購合適的虛擬資源。 Exemplarily, the technical solution provided by the embodiments of the present invention may be applied to any system that has the function of ordering virtual resources online. For example, the system may be a shopping system, a life service system, an electronic ticketing system, a group purchase system, a movie ticket ordering system, a ticket ordering system, a train ticket ordering system, and so on. The system can be implemented based on artificial intelligence technology to obtain the user's order requirements in the form of dialogue with the user, and then order the appropriate virtual resources for the user according to the user's order requirements.

請參考圖2,其示出了本發明實施例提供的一種資訊獲取方法的流程圖。該方法可應用於圖1所示的實施環境中。該方法可以包括如下幾個步驟: Please refer to FIG. 2, which shows a flowchart of an information acquisition method provided by an embodiment of the present invention. This method can be applied to the implementation environment shown in FIG. 1. The method may include the following steps:

步驟201,用戶端獲取第一類型的用戶輸入消息。 Step 201: The user terminal obtains the first type of user input message.

第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息。用戶輸入消息是指由用戶輸入的消息。 The first type of user input message refers to a user input message that carries all order element information. The user input message refers to a message input by the user.

訂購要素資訊是指線上訂購虛擬資源所需的必要資訊,全部的訂購要素資訊是指線上訂購虛擬資源所需的全部必要資訊。當虛擬資源為電子票時,訂購要素資訊可以稱為購票要素資訊,購票要素資訊是指線上購買電子票所需的必要資訊。相應地,全部的購票要素資訊是指線上購買電子票所需的全部必要資訊。以電子票是電影票為例,全部的購票要素資訊包括:影片名稱、影院名稱、觀影時間和觀影人數。其中,影片名稱是指用戶所需觀看的影片的名稱,如《我不是潘X蓮》、《奇X博士》、《深海浩X》等。影院名稱是指用戶觀影所需的電影院的名稱,如xx影院、xx影城等。觀影時間是指用戶計畫觀影的時間,例如下午5點、晚上8點等。觀影人數是指用戶計畫觀影的人數,例如1人、2人、3人等。 Ordering element information refers to the necessary information required to order virtual resources online, and all ordering element information refers to all necessary information required to order virtual resources online. When the virtual resource is an electronic ticket, the order element information can be referred to as ticket purchase element information, and the ticket purchase element information refers to the necessary information required to purchase an electronic ticket online. Correspondingly, all ticket purchase element information refers to all necessary information required for online purchase of electronic tickets. Taking the electronic ticket as a movie ticket for example, all the ticket purchase information includes: the name of the movie, the name of the theater, the viewing time and the number of viewers. Among them, the movie name refers to the name of the movie that the user needs to watch, such as "I am not Pan Xlian", "Dr. X", "Shen Hai Hao X", etc. The theater name refers to the name of the movie theater required by the user to watch movies, such as xx theater and xx cinema. The movie viewing time refers to the time when the user plans to watch the movie, for example, 5 pm, 8 pm, etc. The number of viewers refers to the number of users who plan to watch movies, such as 1, 2, 3, etc.

相較於相關技術中用戶端分多次收集全部的訂購要素資訊,在本發明實施例中,用戶端將全部的訂購要素資訊一次收集完成。 Compared with the related art, the user terminal collects all order element information multiple times. In the embodiment of the present invention, the user end collects all order element information at once.

示例性地,用戶端獲取第一類型的用戶輸入消息包括如下幾種可能的實現方式:在第一種可能的實現方式中,用戶端獲取以文字形式輸入的第一類型的用戶輸入消息。 Exemplarily, the user terminal acquiring the first type of user input message includes the following possible implementation manners: In the first possible implementation manner, the user terminal acquires the first type of user input message input in text form.

例如,用戶通過用戶端調用輸入法程式,通過該輸入法程式輸入如下文字內容:今天下午5點,2人去xx影院觀看我不是潘X蓮。相應地,用戶端獲取以文字形式輸入的第一類型的用戶輸入消息。 For example, the user calls the input method program through the user terminal, and enters the following text content through the input method program: At 5 o'clock this afternoon, 2 people went to the xx theater to watch me not Pan Xlian. Accordingly, the user terminal obtains the first type of user input message input in text form.

在第二種可能的實現方式中,用戶端獲取以語音形式輸入的第一類型的用戶輸入消息。 In a second possible implementation manner, the user terminal obtains the first type of user input message input in the form of voice.

例如,用戶通過用戶端調用麥克風,通過麥克風採集如下語音資訊:我想在今天晚上8點去xx影院觀看奇X博士,幫我出2張電影票。相應地,用戶端獲取以語音形式輸入的第一類型的用戶輸入消息。 For example, the user calls the microphone through the user terminal and collects the following voice information through the microphone: I want to watch Dr. Qi X at the xx theater at 8 o'clock tonight and help me with 2 movie tickets. Correspondingly, the user terminal obtains the first type of user input message input in the form of voice.

在第三種可能的實現方式中,用戶端接收伺服器發送的資訊收集頁面,該資訊收集頁面用於收集全部的訂購要素資訊;顯示資訊收集頁面;獲取在資訊收集頁面中輸入的全部的訂購要素資訊;根據獲取的全部的訂購要素資訊,生成第一類型的用戶輸入消息。 In a third possible implementation, the client receives the information collection page sent by the server, which is used to collect all the order element information; display the information collection page; obtain all the orders entered in the information collection page Element information; based on all the obtained order element information, the first type of user input message is generated.

用戶端獲取以語音形式輸入的第一類型的用戶輸入消息可以通過以下方式:以終端102為手機為例,通過手機接收用戶發出的語音指令,並根據該語音指令通過網路向伺服器104中第三方應用的服務端發起操 作請求,請求第三方應用的服務端執行上述語音指令所指示的目標操作,在第三方應用的服務端執行目標操作之後,手機通過網路接收伺服器104中第三方應用的服務端返回的目標資料,將目標資料展示給用戶。通過手機接收語音指令並直接與第三方應用的服務端進行交互,達到了不需用戶手動操作即獲取服務的目的,從而簡化了通過語音助手進行操作的過程,進而解決了語音助手的操作比較複雜的技術問題。 The user terminal can obtain the first type of user input message input by voice in the following manner: Taking the terminal 102 as a mobile phone as an example, the user receives a voice command from the mobile phone, and sends the voice command to the server 104 through the network according to the voice command. The server of the third-party application initiates an operation request, and requests the server of the third-party application to perform the target operation indicated by the voice command. After the server of the third-party application performs the target operation, the mobile phone receives the third-party application in the server 104 through the network. The target data returned by the server of the server will be displayed to the user. Receive voice commands through the mobile phone and directly interact with the server of the third-party application to achieve the purpose of obtaining services without manual operation by the user, thereby simplifying the process of operating through the voice assistant, and thus solving the complicated operation of the voice assistant Technical issues.

圖3是根據本發明實施例的一種語音交互方法的流程圖,以下結合圖3對本發明實施例所提供的語音交互方法做具體介紹,如圖3所示,該語音交互方法主要包括如下步驟: FIG. 3 is a flowchart of a voice interaction method according to an embodiment of the present invention. The following describes the voice interaction method provided by the embodiment of the present invention in detail with reference to FIG. 3. As shown in FIG. 3, the voice interaction method mainly includes the following steps:

步驟S302,接收語音指令,其中,語音指令用於指示執行第三方應用中的目標操作。 Step S302: Receive a voice instruction, where the voice instruction is used to instruct to perform a target operation in a third-party application.

由用戶發出語音指令,通過語音指令指示出要執行的第三方應用中的目標操作。如:用戶發出語音指令“我要查看天氣預報”,在語音指令中,指示出了用戶要求執行的目標操作為查詢天氣預報,相關的第三方應用為天氣預報應用;再如:用戶發出語音指令“我要搭車去XXX地”,通過該語音指令指示出需要執行搭車應用中的搭車操作,其中,目的地為“XXX地”,出發地默認為當前GPS定位的用戶所在地點。語音指令還可以但不限於為查詢快遞的語音指令,查詢新聞的語音指令,查詢電影資訊和購票的語音指令等。 A voice instruction is issued by the user, and the target operation in the third-party application to be executed is indicated by the voice instruction. For example, the user issues a voice command "I want to check the weather forecast". In the voice command, it indicates that the target operation requested by the user is to query the weather forecast, and the related third-party application is the weather forecast application. Another example: the user issues a voice command "I want to take a ride to XXX", the voice command indicates that the ride-sharing operation in the ride-hailing application needs to be performed, where the destination is "XXX", and the departure point defaults to the current GPS location of the user's location. Voice commands can also be but not limited to voice commands for express delivery, voice commands for news, voice information for movie information and ticket purchases, etc.

步驟S304,根據語音指令向第三方應用的服務端發起操作請求,其中,操作請求用於請求服務端執行目標操作。 Step S304: Initiate an operation request to the server of the third-party application according to the voice instruction, where the operation request is used to request the server to perform the target operation.

在接收到語音指令之後,根據該語音指令直接向第三方應用 的服務端發出操作請求,第三方應用的服務端可以但不限定設置在網路上的伺服器上,通過向第三方應用的服務端發出上述操作請求,請求服務端執行語音指令所指示的目標操作。 After receiving the voice command, directly send an operation request to the server of the third-party application according to the voice command. The server of the third-party application may, but not limited to, be installed on a server on the network. Issue the above operation request and request the server to perform the target operation indicated by the voice instruction.

例如:在接收到“我要查看天氣預報”的指令後,向天氣預報應用的服務端發起操作請求,天氣預報應用的服務端查詢用戶所在地的天氣。再如:接收到的語音指令為“我要搭車去XXX地”,向搭車應用的服務端發起操作請求,搭車應用的服務端為用戶查找並預定當前從用戶所在地出發去“XXX地”的計程車。 For example, after receiving the instruction "I want to view the weather forecast", an operation request is initiated to the server of the weather forecast application, and the server of the weather forecast application queries the weather at the user's location. Another example: the received voice command is "I want to ride a car to XXX place", and initiates an operation request to the server of the ride-hailing application. The server of the ride-hailing application finds and reserves a taxi for "XXX" from the user's location. .

步驟S306,接收服務端回應操作請求發送的目標資料,其中,目標資料是由服務端執行目標操作得到的。 Step S306: Receive target data sent by the server in response to the operation request, where the target data is obtained by the server performing the target operation.

第三方應用的服務端根據上述操作請求執行目標操作之後,獲取目標資料,並將目標資料返回給發出操作請求的一方,發出操作請求的一方接收伺服器返回的目標資料。可選地,發出操作的一方可以但不限定為公眾號,手機APP,智慧手錶等等。 After performing the target operation according to the above operation request, the server of the third-party application obtains the target data and returns the target data to the party that issued the operation request, and the party that issued the operation request receives the target data returned by the server. Optionally, the party issuing the operation may be, but not limited to, a public account, mobile APP, smart watch, and so on.

例如:以公眾號為例進行說明,用戶在公眾號中發出的語音指令為“我要查看天氣預報”,公眾號根據該語音指令向天氣預報應用的服務端發出操作請求,請求服務端查詢天氣預報,服務端根據操作請求執行查詢天氣預報的操作,得到天氣預報的查詢結果,並將查詢結果返回給公眾號。 For example, taking the public account as an example, the voice command issued by the user in the public account is "I want to check the weather forecast". According to the voice command, the public account sends an operation request to the server of the weather forecast application to request the server to check the weather For forecasting, the server performs the query of the weather forecast according to the operation request, obtains the query result of the weather forecast, and returns the query result to the public account.

步驟S308,展示目標資料。 Step S308, displaying the target data.

接收到第三方應用的服務端發送的目標資料之後,將目標資料展示給用戶,以完成用戶的指令。如:將天氣預報的查詢結果展示給用 戶,獲者將搭車的結果展示給用戶,搭車結果可以為是否打到車,打到的車的車型、車牌以及車輛預計到達時間等資訊。 After receiving the target data sent by the server of the third-party application, the target data is displayed to the user to complete the user's instruction. For example, the query result of the weather forecast is displayed to the user, and the winner displays the result of the ride-hailing to the user. The result of the ride-hailing can be whether or not the vehicle is hit, the type of vehicle, the license plate, and the estimated arrival time of the vehicle.

圖4是根據本發明實施例中的一種語音交互方法的展示目標資料的示意圖,如圖所示,用戶通過微信公眾號“企鵝智能”發出語音指令,該語音指令指示的目標操作為“查詢未簽收的快遞資訊”,微信公眾號在接收到語音指令之後,直接向第三方應用(可以是快遞軟體)的服務端發送操作請求,請求查詢用戶未簽收的快遞資訊。第三方應用根據操作請求執行查詢操作,並將查詢到的目標資料返回給公眾號,公眾號接收目標資料,將目標資料展示給用戶,圖4中展示出的目標資料包括五條快遞資訊。 FIG. 4 is a schematic diagram showing target data according to a voice interaction method according to an embodiment of the present invention. As shown in the figure, a user issues a voice command through the WeChat public account “Penguin Smart”, and the target operation indicated by the voice command is “query not yet "Signed Express Information", after receiving the voice command, the WeChat official account directly sends an operation request to the server of the third-party application (which can be express software) to query the express information that the user has not signed. The third-party application performs the query operation according to the operation request, and returns the queried target data to the public account. The public account receives the target data and displays the target data to the user. The target data shown in FIG. 4 includes five pieces of express information.

在本發明實施例中,採用接收語音指令,其中,語音指令用於指示執行第三方應用中的目標操作;根據語音指令向第三方應用的服務端發起操作請求,其中,操作請求用於請求服務端執行目標操作;接收服務端回應操作請求發送的目標資料,其中,目標資料是由服務端執行目標操作得到的;展示目標資料的方式,通過根據用戶的語音指令直接與第三方應用的服務端進行交互,請求服務端執行目標操作,並獲取目標資料,達到了不需用戶手動操作即獲取服務的目的,從而簡化了通過語音助手進行操作的過程,進而解決了語音助手的操作比較複雜的技術問題。 In the embodiment of the present invention, a voice command is received, wherein the voice command is used to instruct to perform a target operation in the third-party application; an operation request is initiated to the server of the third-party application according to the voice instruction, wherein the operation request is used to request the service The terminal executes the target operation; receives the target data sent by the server in response to the operation request, where the target data is obtained by the server performing the target operation; the method of displaying the target data is directly connected to the server of the third-party application according to the user's voice command Interact, request the server to perform the target operation, and obtain the target data, which achieves the purpose of obtaining the service without manual operation by the user, thereby simplifying the operation process through the voice assistant, and thus solving the technology of more complicated voice assistant operations problem.

可選地,根據語音指令向第三方應用的服務端發起操作請求包括:提取語音指令中的關鍵字;根據關鍵字確定第三方應用的服務端,其中,關鍵字與第三方應用具有關聯關係;根據關鍵字生成操作請求;向服務端發送操作請求,以請求服務端執行與關鍵字相關的目標操作。 Optionally, initiating an operation request to the server of the third-party application according to the voice instruction includes: extracting keywords in the voice instruction; determining the server of the third-party application according to the keywords, where the keywords have an association relationship with the third-party application; Generate operation requests based on keywords; send operation requests to the server to request the server to perform target operations related to the keywords.

作為本發明實施例的一種優選地實施方式,在根據接收到的語音指令向第三方應用的服務端發起操作請求時,先從語音指令中提取出關鍵字,根據提取出的關鍵字確定相關的第三方應用,並根據指令所指示的目標操作生成操作請求,最後向第三方應用的服務端發送操作請求,請求服務端根據關鍵字執行目標操作。 As a preferred implementation of the embodiment of the present invention, when an operation request is initiated to the server of the third-party application according to the received voice instruction, the keyword is first extracted from the voice instruction, and the relevant keyword is determined according to the extracted keyword The third-party application generates an operation request according to the target operation indicated by the instruction, and finally sends the operation request to the server of the third-party application, requesting the server to perform the target operation according to the keyword.

例如:接收到的語音指令為“查詢今日天氣預報”,從該語音指令中提取出關鍵字,可選地,提取出的關鍵字可以為“查詢”、“今日”、“天氣預報”,根據關鍵字“天氣預報”確定第三應用為天氣預報應用,根據關鍵字“查詢”和“今日”生成操作請求,併發送給天氣預報應用的服務端,該操作請求可以為“請求查詢當日天氣預報”,服務端根據操作請求執行目標操作。 For example, the received voice command is "query today's weather forecast", and keywords are extracted from the voice command. Optionally, the extracted keywords may be "query", "today", and "weather forecast". The keyword "weather forecast" determines that the third application is a weather forecast application, generates an operation request based on the keywords "query" and "today", and sends it to the server of the weather forecast application. The operation request may be "request to query the weather forecast for the day" ", The server performs the target operation according to the operation request.

可選地,根據關鍵字生成操作請求包括:根據服務端確定服務端採用的通訊協定,其中,通訊協定為預先約定的通訊協定;根據通訊協定和關鍵字生成操作請求。 Optionally, generating the operation request according to the keyword includes: determining the communication protocol adopted by the server according to the server, where the communication protocol is a pre-agreed communication protocol; and generating the operation request according to the communication protocol and the keyword.

作為本發明實施例的一種優選地實施方式,在根據關鍵字生成操作請求時,為了服務端可以接收並識別生成的操作請求,與第三方應用的服務端預先約定所要採用的通訊協定,根據該通訊協定生成操作請求。以微信公眾號為例,用戶通過公眾號發出語音指令之後,公眾號提取出關鍵字,根據關鍵字確定第三方應用,並且根據關鍵字生成操作請求,操作請求採用公眾號與第三方應用預先約定的通信協議,可選地,該通信協定可以為公眾號所採用的通訊協定,也可以為第三方應用所採用的通訊協定,當操作請求採用的通訊協定為公眾號所採用的通訊協定時,第三方 應用適配公眾號的通訊協定,採用公眾號的通訊協定進行通訊;當操作請求採用的通訊協定為第三方應用所採用的通訊協定時,公眾號適配第三方應用的通訊協義,按照第三方應用的通訊協定進行資料轉換和資料發送。 As a preferred implementation of the embodiment of the present invention, when generating an operation request based on a keyword, in order for the server to receive and recognize the generated operation request, the communication protocol to be adopted is agreed in advance with the server of the third-party application. The communication protocol generates an operation request. Taking the WeChat public account as an example, after the user issues a voice command through the public account, the public account extracts keywords, determines the third-party application according to the keyword, and generates an operation request based on the keyword. Communication protocol, optionally, the communication protocol may be the communication protocol adopted by the public account, or the communication protocol adopted by the third-party application. When the communication protocol adopted by the operation request is the communication protocol adopted by the public account, The third-party application adapts the communication protocol of the public account, and uses the communication protocol of the public account to communicate; when the communication protocol used by the operation request is the communication protocol adopted by the third-party application, the public account adapts the communication protocol of the third-party application, Perform data conversion and data transmission in accordance with the communication protocol applied by the third party.

圖5是根據本發明實施例的另一種可選的語音交互方法的流程圖,如圖所示,該方法包括如下步驟: FIG. 5 is a flowchart of another optional voice interaction method according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:

步驟1,用戶向終端發送語音指令,該語音指令用於指示執行第三方應用中的目標操作,如:用戶發出語音指令“我要查看天氣預報”,在語音指令中,指示出了用戶要求執行的目標操作為查詢天氣預報,相關的第三方應用為天氣預報應用;再如:用戶發出語音指令“我要搭車去XXX地”,通過該語音指令指示出需要執行搭車應用中的搭車操作,其中,目的地為“XXX地”,出發地默認為當前GPS定位的用戶所在地點。語音指令還可以但不限於為查詢快遞的語音指令,查詢新聞的語音指令,查詢電影資訊和購票的語音指令等。在本發明實施例中,終端可以是安裝在手機等設備上的APP,或者可以是微信公眾號,也可以是智慧音箱,或者智慧手錶,本發明並不限定終端的形式。 Step 1: The user sends a voice instruction to the terminal. The voice instruction is used to instruct to perform the target operation in the third-party application, for example, the user issues a voice instruction "I want to check the weather forecast". The target operation is to query the weather forecast, and the related third-party application is the weather forecast application; another example: the user issues a voice command "I want to ride a car to XXX", and the voice command indicates that the ride-hailing operation in the ride-hailing application needs to be performed, where , The destination is "XXX place", and the departure place defaults to the current GPS location of the user's location. Voice commands can also be but not limited to voice commands for express delivery, voice commands for news, voice information for movie information and ticket purchases, etc. In the embodiment of the present invention, the terminal may be an APP installed on a device such as a mobile phone, or may be a WeChat public account, a smart speaker, or a smart watch. The present invention does not limit the form of the terminal.

步驟2,終端接收到語音指令之後,將該語音指令發送給NLP(自然語言伺服器)。NLP(自然語言伺服器)對語音指令進行語義分析,從中提取出關鍵字。例如:接收到的語音指令為“查詢今日天氣預報”,從該語音指令中提取出關鍵字,可選地,提取出的關鍵字可以為“查詢”、“今日”、“天氣預報”。 Step 2: After receiving the voice command, the terminal sends the voice command to the NLP (Natural Language Server). NLP (Natural Language Server) performs semantic analysis on voice commands to extract keywords from them. For example, the received voice command is "query today's weather forecast", and keywords are extracted from the voice command. Optionally, the extracted keywords may be "query", "today", and "weather forecast".

步驟3,NIP(自然語言伺服器)將提取出的關鍵字返回給終端。終端根據提取出的關鍵字,生成操作請求,該操作請求用於請求執 行目標操作。例如在步驟2中的,從語音指令“查詢今日天氣預報”,中提取出關鍵字“查詢”、“今日”、“天氣預報”。根據關鍵字生成操作請求,“請求查詢當日天氣預報”。 In step 3, the NIP (Natural Language Server) returns the extracted keywords to the terminal. The terminal generates an operation request based on the extracted keywords, and the operation request is used to request execution of the target operation. For example, in step 2, the keywords "query", "today", and "weather forecast" are extracted from the voice command "query today's weather forecast". Generate an operation request based on the keyword, "Request to query the weather forecast for the day."

步驟4,終端將操作請求發送給任務調度伺服器。調度伺服器根據操作請求確定第三方應用。例如,在步驟3中,終端生成的操作請求為“請求查詢當日天氣預報”,終端將該操作請求發送給任務調度伺服器,任務調度伺服器根據該操作請求確定第三方應用為天氣預報應用。 Step 4. The terminal sends the operation request to the task scheduling server. The dispatch server determines the third-party application according to the operation request. For example, in step 3, the operation request generated by the terminal is "request to query the weather forecast for the day", and the terminal sends the operation request to the task scheduling server, and the task scheduling server determines that the third-party application is a weather forecast application according to the operation request.

步驟5,任務調度伺服器將操作請求發送給相應有第三方應用的服務端,並接收服務端返回的目標資料,其中,服務端根據操作請求執行目標操作,得到目標資料。 Step 5. The task scheduling server sends the operation request to the corresponding server with a third-party application and receives the target data returned by the server. The server performs the target operation according to the operation request to obtain the target data.

在步驟4中,任務調度伺服器將操作請求“請求查詢當日天氣預報”發送給天氣預報應用的服務端之後,天氣預報應用的服務端執行查詢當日天氣預報的目標操作,並將查詢到的天氣預報資料返回給任務調度伺服器。 In step 4, after the task scheduling server sends the operation request "request for querying the weather forecast for the day" to the server of the weather forecast application, the server of the weather forecast application performs the target operation of querying the weather forecast for the current day The forecast data is returned to the task scheduling server.

服務端根據操作請求執行查詢天氣預報的操作,得到天氣預報的查詢結果,並將查詢結果返回給公眾號。並將操作請求發送給天氣預報應用的服務端。 The server executes the operation of querying the weather forecast according to the operation request, obtains the query result of the weather forecast, and returns the query result to the public account. And send the operation request to the server of the weather forecast application.

步驟6,任務調度伺服器將目標資料發送給終端。任務調度伺服器將服務端返回的目標資料返回給終端,作為對終端發送操作請求的回應。如將步驟5中服務端返回的天氣預報的查詢結果發送給終端。 Step 6, the task scheduling server sends the target data to the terminal. The task scheduling server returns the target data returned by the server to the terminal as a response to the operation request sent by the terminal. For example, the query result of the weather forecast returned by the server in step 5 is sent to the terminal.

步驟7,終端將目標資料展示給用戶。終端最終將接收到目標資料展示給用戶,從而使用戶發出的語音指令得到回應。如:將步驟6 中接收到的天氣預報展示給用戶。 Step 7. The terminal displays the target data to the user. The terminal finally displays the received target data to the user, so that the voice command issued by the user is answered. For example: show the weather forecast received in step 6 to the user.

本發明實施例通過根據用戶的語音指令直接與第三方應用的服務端進行交互,請求服務端執行目標操作,並獲取目標資料,達到了不需用戶手動操作即獲取服務的目的,從而簡化了通過語音助手進行操作的過程,進而解決了語音助手的操作比較複雜的技術問題。圖6是根據本發明實施例的語音交互方法與競品的語音交互方法的對比的示意圖,如圖6所示,競品的語音交互方法在獲取用戶的語音指令之後,通過web級API喚起第三方web前端或者第三方應用,通過用戶手動操作第三方web前端或者第三方應用,與服務端進行交互,由服務端完成操作,並返回資料。本發明實施例所提供的語音交互方法與競品的語音交互方法的最大不同在於本發明實施例所提供的語音交互方法通過語音應用(也可以為公眾號、音箱或者手錶等)在接收到用戶的語音指令之後,根據用戶的語音指令生成操作請求,並直接與第三方應用服務端進行交互,請求服務端執行目標操作,並將目標資料返回給語音應用,由語音應用展示給用戶,使用戶不需要手動操作即可獲取服務,從而簡化了通過語音助手進行操作的過程。 The embodiment of the present invention directly interacts with the server of the third-party application according to the user's voice instruction, requests the server to perform the target operation, and obtains the target data, thereby achieving the purpose of obtaining the service without manual operation by the user, thereby simplifying the adoption The operation process of the voice assistant solves the technical problem of more complicated operation of the voice assistant. 6 is a schematic diagram of a comparison between a voice interaction method according to an embodiment of the present invention and a voice interaction method of competing products. As shown in FIG. 6, the voice interaction method of competing products evokes the The three-party web front-end or third-party application uses the user to manually operate the third-party web front-end or third-party application, interact with the server, and the server completes the operation and returns the information. The biggest difference between the voice interaction method provided by the embodiment of the present invention and the voice interaction method of competing products is that the voice interaction method provided by the embodiment of the present invention receives a user through a voice application (also can be a public account, a speaker, or a watch, etc.) After the voice command of the user, generate an operation request according to the user's voice command, and directly interact with the third-party application server, request the server to perform the target operation, and return the target data to the voice application, which is displayed to the user by the voice application, so that No manual operation is required to obtain the service, which simplifies the operation process through the voice assistant.

可選地,根據語音指令向第三方應用的服務端發起操作請求包括:根據語音指令向多個第三方應用的多個服務端發起操作請求;接收服務端回應操作請求發送的目標資料包括:接收多個服務端回應操作請求發送的多個資料;按照與操作請求相匹配的預設規則從多個資料中篩選出目標資料。 Optionally, initiating an operation request to the server of the third-party application according to the voice instruction includes: initiating an operation request to multiple servers of multiple third-party applications according to the voice instruction; receiving target data sent by the server in response to the operation request includes: receiving Multiple servers send multiple data in response to the operation request; filter out the target data from the multiple data according to the preset rules that match the operation request.

作為本發明實施例的一種優選地實施方式,根據接收到的語音指令向第三方應用的服務端發送操作請求時,第三方應用可以是多個, 並且接收到的服務端返回的資料相應地也為多個,根據預設的規則,從接收到的多個資料中篩選出目標資料。 As a preferred implementation of the embodiment of the present invention, when an operation request is sent to the server of the third-party application according to the received voice instruction, there may be multiple third-party applications, and the data returned by the received server correspondingly For multiple, according to the preset rules, filter out the target data from the received multiple data.

例如:用戶的通過公眾號發送“查詢劉德華的新聞”的語音指令,公眾號根據該指令可以生成多個操作請求,併發送給多個新聞應用的服務端,多個新聞應用的服務端根據操作請求執行查詢操作,將查詢到的相關新聞返回給公眾號,如果當前公眾號預設的規則為:獲取最近的十條新聞,則公眾號從接收到的新聞資料中篩選出最近的十條新聞。 For example: the user sends a voice command of "Query Andy Lau's news" through the public account. According to the command, the public account can generate multiple operation requests and send them to the servers of multiple news applications. Request to perform the query operation and return the related news to the public account. If the current public account preset rule is: get the latest ten news, the public account will filter out the latest ten news from the received news materials.

可選地,展示目標資料包括:在用戶端的螢幕上顯示目標資料,其中,用戶端與第三方應用不同;或者在用戶端上語音播放目標資料。 Optionally, displaying the target data includes: displaying the target data on the screen of the user terminal, where the user terminal is different from the third-party application; or playing the target data by voice on the user terminal.

作為本發明實施例的一種優選地實施方式,在接收到目標資料之後,可以通過多種方式將目標資料展示給用戶,可選地,目標資料可以顯示在螢幕上,也可以通過語音的方式播放給用戶。在本發明實施例中,可以通過多種方式執行上述方法,如採用語音APP、語音公眾號、智慧音箱、智慧手錶等等,下面具體舉例說明:例如:採用語音APP執行上述方法,當前接收到的語音指令為“搭車去XXX地”,語音APP接收該指令,提取語音令中的關鍵字,生成操作請求,發送給搭車應用的服務端,搭車應用服務端根據操作請求為用戶預訂從用戶所在地去“XXX地”的了租車,並將搭車結果與計程車資訊顯示在用戶的用機螢幕或者語音APP的顯示介面上。再如:採用語音公眾號執行上述方法,當前公眾號接收的到語音指令是“查詢快遞資訊”,公眾號提取關鍵字生成操作請求,發送給快遞應用服務端,快遞應用服務端根據操作請求查找用戶的快遞資訊,將查找到的資料返回公眾號,公眾號 將快遞資料顯示在公眾號的視窗。再如:採用智慧音箱執行上述方法,當前接收到的語音指令為“查詢今日的娛樂新聞”,智慧音箱從語音指令中提取關鍵字,並根據關鍵字生成操作請求,將操作請求發送給新聞應用的服務端,新聞應用服務端查找當日的娛樂新聞併發送給智慧音箱,智慧音箱接收到服務端返回的娛樂新聞後,通過語音的形式,將新聞播放出來。再如:採用智慧手錶執行上述方法,當前手錶接收到語音指令為“查詢目前在映的電影”,智慧手錶生成操作請求後,將操作請求發送給相關的電影應用的服務端,服務端查找當前在映的電影,將資料資訊返回給智慧手錶,智慧手錶可以根據用戶的設置,將電影資訊顯示的手錶螢幕上,或者通過語音的形式將電影資訊播放給用戶。 As a preferred implementation of the embodiment of the present invention, after receiving the target data, the target data can be displayed to the user in various ways. Optionally, the target data can be displayed on the screen or can be played by voice. user. In the embodiment of the present invention, the above methods may be performed in various ways, such as using a voice APP, a voice public account, a smart speaker, a smart watch, etc. The following specific examples are illustrated: For example, using a voice APP to perform the above method, the currently received The voice command is "ride a car to go to XXX". The voice app receives the command, extracts the keywords in the voice command, generates an operation request, and sends it to the server of the ride-hailing application. "XXX place" has rented a car, and displays the results of the ride and taxi information on the user's computer screen or voice APP display interface. Another example: using the voice public account to execute the above method, the current voice command received by the public account is "query express information", the public account extracts keywords to generate an operation request, and sends it to the express application server. The express application server searches according to the operation request The user's express information will return the found information to the public account, and the public account will display the express information in the public account window. Another example: using the smart speaker to perform the above method, the currently received voice command is "query today's entertainment news", the smart speaker extracts keywords from the voice command, generates an operation request based on the keyword, and sends the operation request to the news application On the server side, the news application server finds the entertainment news of the day and sends it to the smart speaker. After receiving the entertainment news returned by the server, the smart speaker broadcasts the news in the form of voice. Another example: using the smart watch to perform the above method, the current watch receives the voice command "query the currently-moving movie", after the smart watch generates an operation request, the operation request is sent to the relevant movie application server, and the server finds the current The movie information will be returned to the smart watch. The smart watch can display the movie information on the watch screen according to the user's settings or play the movie information to the user through voice.

可選地,資訊收集頁面中包括用於供用戶輸入全部的訂購要素資訊的輸入框,用戶在上述輸入框中能夠輸入全部的訂購要素資訊。請參考圖7,其示例性示出了一種資訊收集頁面30的示意圖。資訊收集頁面30中包括:影片輸入框31、影院輸入框32、時間輸入框33和人數輸入框34。用戶根據實際購票需求在影片輸入框31中輸入影片名稱,在影院輸入框32中輸入影院名稱,在時間輸入框33中輸入觀影時間,在人數輸入框34中輸入觀影人數。而後,用戶點擊資訊收集頁面30中的確認控制項35,確認提交上述全部的購票要素資訊,用戶端生成攜帶有全部的購票要素資訊的用戶輸入消息(也即第一類型的用戶輸入消息)。 Optionally, the information collection page includes an input box for the user to input all the order element information, and the user can input all the order element information in the above input box. Please refer to FIG. 7, which exemplarily shows a schematic diagram of an information collection page 30. The information collection page 30 includes: a movie input box 31, a theater input box 32, a time input box 33, and a number of people input box 34. The user enters the movie name in the movie input box 31, the movie theater name in the cinema input box 32, the movie viewing time in the time input box 33, and the movie viewing number in the number input box 34 according to the actual ticket purchase requirements. Then, the user clicks the confirmation control item 35 in the information collection page 30 to confirm the submission of all the above-mentioned ticket purchase element information, and the user terminal generates a user input message carrying all the ticket purchase element information (that is, the first type of user input message ).

另外,伺服器在檢測到用戶端具有訂購需求時,向用戶端發送資訊收集頁面。例如,當用戶端向伺服器發送“我要看電影”的用戶輸入消息或者具有類似含義的用戶輸入消息之後,伺服器向用戶端發送資訊 收集頁面。 In addition, the server sends an information collection page to the client when it detects that the client has an ordering requirement. For example, after the user terminal sends a user input message of "I want to watch a movie" or a user input message with a similar meaning to the server, the server sends an information collection page to the user terminal.

步驟202,用戶端向伺服器發送第一類型的用戶輸入消息。 Step 202: The user terminal sends a first type of user input message to the server.

相應地,伺服器接收用戶端發送的第一類型的用戶輸入消息。 Correspondingly, the server receives the first type of user input message sent by the user terminal.

可選地,在用戶端獲取以語音形式輸入的第一類型的用戶輸入消息的情況下,用戶端可以將語音形式的第一類型的用戶輸入消息轉換為文字形式的第一類型的用戶輸入消息,並向伺服器發送文字形式的第一類型的用戶輸入消息;或者,用戶端也可以直接將語音形式的第一類型的用戶輸入消息發送給伺服器,由伺服器將語音形式的第一類型的用戶輸入消息轉換為文字形式的第一類型的用戶輸入消息。其中,將用戶輸入消息由語音形式轉換為文字形式可採用語音識別技術。 Optionally, in the case where the user terminal obtains the first type of user input message input in voice form, the user terminal may convert the first type of user input message in voice form into the first type of user input message in text form , And send the first type of user input message in text form to the server; or, the user can also directly send the first type of user input message in voice form to the server, and the server will send the first type of voice form Converts the user input message into the first type of user input message in text form. Among them, the voice recognition technology can be used to convert the user input message from the voice form to the text form.

步驟203,伺服器獲取與全部的訂購要素資訊相匹配的虛擬資源。 In step 203, the server obtains virtual resources matching all the order element information.

可選地,當虛擬資源為電子票時,伺服器獲取與全部的購票要素資訊相匹配的電子票。例如,伺服器搜索獲取與全部的購票要素資訊相匹配的電子票。伺服器中儲存有電子票資料庫,該電子票資料庫中記錄有電子票的相關資料。以電子票是電影票為例,伺服器中儲存有電影票資料庫,該電影票資料庫中記錄有電影票資料。上述電影票資料可以包括:當前正在上映的各個影片在各個影院的放映場次,每一個放映場次的放映時間和座位訂購情況。 Optionally, when the virtual resource is an electronic ticket, the server obtains an electronic ticket that matches all the ticket purchase element information. For example, the server searches for and obtains electronic tickets that match all the information of ticket purchase elements. An electronic ticket database is stored in the server, and the electronic ticket database records relevant data of the electronic ticket. Taking an electronic ticket as a movie ticket as an example, a movie ticket database is stored in the server, and movie ticket data is recorded in the movie ticket database. The above-mentioned movie ticket information may include: the screening times of each movie currently being shown in various theaters, the screening time of each screening time and the seat ordering situation.

可選地,以電子票是電影票為例,步驟203包括如下幾個子步驟: Optionally, taking the electronic ticket as a movie ticket for example, step 203 includes the following sub-steps:

步驟203a,伺服器從電影票資料庫中選取與影片名稱和影院名稱相同、放映時間與觀影時間之間的時間間隔小於預設閾值且餘票數量不小於觀影人數的放映場次;其中,預設閾值是預先設定的經驗值,例如60分鐘。 Step 203a, the server selects from the movie ticket database the same number of movie titles and theater names, the time interval between the projection time and the viewing time is less than a preset threshold, and the number of remaining tickets is not less than the number of viewers; The preset threshold is a preset experience value, for example, 60 minutes.

可選地,當存在多個滿足上述條件的放映場次時,伺服器選取放映時間與觀影時間之間的時間間隔最小的放映場次。 Optionally, when there are multiple screening sessions that satisfy the above conditions, the server selects the screening session with the smallest time interval between the screening time and the viewing time.

步驟203b,伺服器從上述選取的放映場次的可選座位中,選擇與觀影人數相符的座位,並根據選擇的座位生成電影票。 In step 203b, the server selects a seat corresponding to the number of viewers from the available seats selected for the screening show, and generates a movie ticket according to the selected seat.

放映場次的可選座位是指該放映場次中暫未被訂購的座位。在一個示例中,伺服器從上述選取的放映場次的可選座位中,隨機選擇與觀影人數相符的座位。在另一個示例中,伺服器從上述選取的放映場次的可選座位中,選擇與觀影人數相符且優先順序最高的座位。伺服器可以按照各個座位的位置對各個座位進行優先順序排序,例如靠場地中央的位置的優先順序較高,而靠場地四周的座位的優先順序較低。通過上述方式,能夠為用戶自動選擇最佳的觀影座位,在提升系統性能的同時也能夠提升用戶體驗。 The optional seats of the screening show refer to the seats that have not been ordered in the screening. In one example, the server randomly selects a seat that matches the number of viewers from the available seats selected for the screening show described above. In another example, the server selects a seat that matches the number of viewers and has the highest priority from the available seats selected for the screening show. The server may prioritize each seat according to the position of each seat, for example, the position near the center of the venue has a higher priority, and the seats around the venue have a lower priority. In this way, the best viewing seat can be automatically selected for the user, which can improve the user experience while improving system performance.

在本發明實施例中,通過伺服器將電影票資料緩存在本地資料庫中,有助於提高伺服器搜索獲取電影票的效率。另外,伺服器可定時更新電影票資料庫,以確保電影票資料庫中儲存的電影票資料的準確性和即時性。例如,伺服器每隔預定時間間隔獲取最新的電影票資料;將最新的電影票資料與電影票資料庫中緩存的電影票資料進行比對;若兩者存在不同,則將電影票資料庫中儲存的電影票資料更新為上述最新的電影票資 料;若兩者相同,則不執行更新操作。上述預定時間間隔根據實際需求進行設定,例如1分鐘、10分鐘等等。 In the embodiment of the present invention, the movie ticket data is cached in the local database through the server, which helps to improve the efficiency of the server searching and obtaining movie tickets. In addition, the server can regularly update the movie ticket database to ensure the accuracy and real-time of the movie ticket data stored in the movie ticket database. For example, the server obtains the latest movie ticket data at predetermined intervals; compares the latest movie ticket data with the movie ticket data cached in the movie ticket database; if there is a difference between the two, the movie ticket database The stored movie ticket information is updated to the latest movie ticket information mentioned above; if the two are the same, the update operation is not performed. The above predetermined time interval is set according to actual needs, for example, 1 minute, 10 minutes, and so on.

步驟204,伺服器生成用於訂購上述虛擬資源的虛擬資源資訊。 In step 204, the server generates virtual resource information for ordering the virtual resource.

虛擬資源資訊中包括虛擬資源的相關資訊,虛擬資源資訊即是指虛擬資源訂單。當虛擬資源為電子票時,虛擬資源資訊可稱為電子票資訊,電子票資訊中包括電子票的相關資訊,電子票資訊即是指電子票訂單。以電子票是電影票為例,電影票資訊(或稱為“電影票訂單”)中包括電影票對應的影片名稱、影院名稱、放映時間、座位編號和訂單金額。 Virtual resource information includes information about virtual resources. Virtual resource information refers to virtual resource orders. When the virtual resource is an electronic ticket, the virtual resource information may be referred to as electronic ticket information. The electronic ticket information includes relevant information of the electronic ticket, and the electronic ticket information refers to the electronic ticket order. Taking the electronic ticket as a movie ticket for example, the movie ticket information (or “movie ticket order”) includes the movie name, theater name, screening time, seat number and order amount corresponding to the movie ticket.

步驟205,伺服器向用戶端發送虛擬資源資訊。 Step 205: The server sends virtual resource information to the client.

相應地,用戶端接收伺服器發送的虛擬資源資訊。 Accordingly, the client receives the virtual resource information sent by the server.

可選地,上述步驟205之後還包括:用戶端顯示虛擬資源資訊。 Optionally, after the above step 205, the method further includes: the client displays virtual resource information.

以電子票資訊為例,用戶端在接收到電子票資訊之後,顯示該電子票資訊和相應的支付控制項。用戶在確認電子票資訊中的各項資訊無誤之後,觸發支付控制項完成線上支付流程,從而完成電子票線上購買。 Taking electronic ticket information as an example, after receiving the electronic ticket information, the user terminal displays the electronic ticket information and the corresponding payment control item. After confirming that the information in the electronic ticket information is correct, the user triggers the payment control item to complete the online payment process, thereby completing the online purchase of the electronic ticket.

綜上所述,本發明實施例提供的方法,通過將全部的訂購要素資訊一次收集完成,用戶端將上述全部的訂購要素資訊一併發送給伺服器,由伺服器查找與其匹配的虛擬資源並生成相應的虛擬資源訂單,從而減少整個訂購過程中用戶端與伺服器之間的交互次數,有助於提升線上訂購虛擬資源的操作效率,且節省用戶端與伺服器之間的傳輸資源。 In summary, in the method provided by the embodiment of the present invention, all the order element information is collected at once, and the client sends all the order element information to the server, and the server finds the matching virtual resources and Generate corresponding virtual resource orders, thereby reducing the number of interactions between the client and the server during the entire ordering process, helping to increase the efficiency of online ordering of virtual resources, and saving transmission resources between the client and the server.

請參考圖8,其示出了本發明實施例提供的另一種資訊獲取 方法的流程圖。該方法可應用於圖1所示的實施環境中。該方法可以包括如下幾個步驟: Please refer to FIG. 8, which shows a flowchart of another method for obtaining information according to an embodiment of the present invention. This method can be applied to the implementation environment shown in FIG. 1. The method may include the following steps:

步驟401,用戶端獲取用戶輸入消息。 Step 401: The user terminal obtains a user input message.

用戶輸入消息是指由用戶輸入的消息。在本發明實施例中,對用戶輸入消息的方式不作限定。用戶可以通過麥克風輸入語音形式的用戶輸入消息,用戶也可以通過輸入法程式輸入文字形式的用戶輸入消息,用戶還可以通過觸發用戶端顯示的預設按鈕,將與該預設按鈕對應的預設消息作為用戶輸入消息。例如,用戶端顯示有“我要看電影”按鈕,用戶點擊該按鈕觸發輸入的用戶輸入消息為“我要看電影”。 The user input message refers to a message input by the user. In the embodiment of the present invention, the manner in which the user inputs a message is not limited. The user can input the user input message in the form of voice through the microphone, the user can also input the user input message in the form of text through the input method program, and the user can also trigger the preset button displayed on the user terminal to set the preset corresponding to the preset button. The message serves as the user input message. For example, the user terminal displays a "I want to watch a movie" button, and the user input message triggered by the user clicking this button is "I want to watch a movie".

步驟401包括如下幾種可能情況: Step 401 includes the following possible situations:

1、用戶端獲取第一類型的用戶輸入消息,第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息;例如,以獲取電影票訂單為例,第一類型的用戶輸入消息為:幫我訂2張今天晚上8點xx影院的奇X博士的電影票。 1. The user terminal obtains the first type of user input message. The first type of user input message refers to the user input message that carries all the order element information; for example, taking the movie ticket order as an example, the first type of user input message The news is: help me book 2 movie tickets for Dr. Qi X in the xx theater tonight.

2、用戶端獲取第二類型的用戶輸入消息,第二類型的用戶輸入消息是指攜帶有部分的訂購要素資訊的用戶輸入消息;例如,以獲取電影票訂單為例,第二類型的用戶輸入消息為:我想在今天下午3點看深海浩X。上述舉例的第二類型的用戶輸入消息中僅包括影片名稱和觀影時間,但並不包括影院名稱和觀影人數。 2. The user terminal obtains a second type of user input message. The second type of user input message refers to a user input message that carries part of the order element information; for example, taking a movie ticket order as an example, the second type of user input message The news is: I want to see Shenhai Hao X at 3 pm today. The second type of user input message exemplified above only includes the movie name and movie viewing time, but does not include the theater name and movie viewing number.

3、用戶端獲取第三類型的用戶輸入消息,第三類型的用戶輸入消息是指未攜帶訂購要素資訊的用戶輸入消息;例如,第三類型的用戶輸入消息為:今天吃什麼。 3. The user terminal obtains a third type of user input message. The third type of user input message refers to a user input message that does not carry order element information; for example, the third type of user input message is: what to eat today.

可選地,用戶端通過聊天對話方式獲取在聊天對話介面中輸入的用戶輸入消息。例如,當用戶端是具備AI功能的用戶端時,該聊天對話介面可以是用戶與AI機器人之間的聊天對話介面,該AI機器人可以看作是用戶端,也可以看作是為用戶端提供後臺服務的伺服器。通過上述方式,採用與用戶之間進行友好交互的方式獲取用戶的虛擬資源訂購需求,提供了一種嶄新的線上訂購虛擬資源的場景和方式。 Optionally, the user terminal obtains the user input message input in the chat dialogue interface through the chat dialogue mode. For example, when the user terminal is a user terminal with an AI function, the chat dialogue interface may be a chat dialogue interface between the user and the AI robot. The AI robot may be regarded as a user terminal, or may be regarded as a user terminal. Server for background services. In the above manner, the user's virtual resource ordering needs are obtained through friendly interaction with the user, which provides a brand-new scenario and method for ordering virtual resources online.

步驟402,用戶端向伺服器發送用戶輸入消息。 In step 402, the user terminal sends a user input message to the server.

相應地,伺服器接收用戶端發送的用戶輸入消息。 Correspondingly, the server receives the user input message sent by the user terminal.

可選地,在用戶端獲取以語音形式輸入的用戶輸入消息的情況下,用戶端可以將語音形式的用戶輸入消息轉換為文字形式的用戶輸入消息,並向伺服器發送文字形式的用戶輸入消息;或者,用戶端也可以直接將語音形式的用戶輸入消息發送給伺服器,由伺服器將語音形式的用戶輸入消息轉換為文字形式的用戶輸入消息。其中,將用戶輸入消息由語音形式轉換為文字形式可採用語音識別技術。 Optionally, in the case where the user terminal obtains the user input message input in voice form, the user terminal may convert the user input message in voice form into the user input message in text form, and send the user input message in text form to the server Or, the user terminal can directly send the user input message in voice form to the server, and the server converts the user input message in voice form into the user input message in text form. Among them, the voice recognition technology can be used to convert the user input message from the voice form to the text form.

步驟403,伺服器確定用戶輸入消息的類型。 In step 403, the server determines the type of user input message.

用戶輸入消息的類型為上文介紹的第一類型、第二類型和第三類型中的任意一種。伺服器從用戶輸入消息中識別訂購要素資訊,並根據識別結果確定用戶輸入消息的類型。若伺服器從用戶輸入消息中識別出全部的訂購要素資訊,則確定用戶輸入消息的類型為第一類型;若伺服器從用戶輸入消息中識別出部分的訂購要素資訊,則確定用戶輸入消息的類型為第二類型;若伺服器從用戶輸入消息中未識別出訂購要素資訊,則確定用戶輸入消息的類型為第三類型。 The type of the user input message is any one of the first type, the second type, and the third type described above. The server recognizes the order element information from the user input message, and determines the type of the user input message according to the recognition result. If the server recognizes all the order element information from the user input message, the type of the user input message is determined to be the first type; if the server identifies part of the order element information from the user input message, the user input message is determined The type is the second type; if the server does not recognize the order element information from the user input message, the type of the user input message is determined to be the third type.

伺服器可採用關鍵字識別技術、語義分析技術或者結合上述兩種技術從用戶輸入消息中識別訂購要素資訊。 The server may use keyword recognition technology, semantic analysis technology, or a combination of the above two technologies to identify order element information from the user input message.

可選地,伺服器檢測用戶輸入消息是否與基礎消息範本相匹配;若用戶輸入消息與基礎消息範本相匹配,則伺服器採用基於基礎消息範本生成的消息變數範本從用戶輸入消息中識別得到訂購要素資訊;若用戶輸入消息與基礎消息範本不匹配,則伺服器確定用戶輸入消息中未攜帶訂購要素資訊,也即確定用戶輸入消息的類型為第三類型。 Optionally, the server detects whether the user input message matches the basic message template; if the user input message matches the basic message template, the server uses the message variable template generated based on the basic message template to identify and order from the user input message Element information; if the user input message does not match the basic message template, the server determines that the user input message does not carry the order element information, that is, the type of the user input message is the third type.

其中,基礎消息範本用於判定用戶輸入消息中是否攜帶有訂購要素資訊。當用戶輸入消息與基礎消息範本相匹配時,說明用戶輸入消息中攜帶有至少一項訂購要素資訊,伺服器採用消息變數範本從用戶輸入消息中識別得到訂購要素資訊,進而根據識別得到的訂購要素資訊的項數確定用戶輸入消息的類型為第一類型或第二類型。消息變數範本用於從用戶輸入消息中識別提取訂購要素資訊。基礎消息範本和消息變數範本可採用正則運算式構建,通過正則運算式來確定用戶輸入消息中是否攜帶有訂購要素資訊,以及在確定用戶輸入消息中攜帶訂購要素資訊的情況下,從用戶輸入消息中識別提取訂購要素資訊。 The basic message template is used to determine whether the user input message carries order element information. When the user input message matches the basic message template, it indicates that the user input message carries at least one order element information. The server uses the message variable template to identify the order element information from the user input message, and then according to the identified order element The number of information items determines whether the type of the user input message is the first type or the second type. The message variable template is used to identify and extract the order element information from the user input message. The basic message template and the message variable template can be constructed using regular expressions. The regular expressions are used to determine whether the user input message carries the order element information, and if it is determined that the user input message carries the order element information, input the message from the user Identify and extract the order element information.

若用戶輸入消息的類型為第一類型,則伺服器從下述步驟404開始執行;若用戶輸入消息的類型為第二類型,則伺服器從下述步驟408開始執行;若用戶輸入消息的類型為第三類型,則伺服器從下述步驟410開始執行。 If the type of the user input message is the first type, the server executes from the following step 404; if the type of the user input message is the second type, the server executes from the following step 408; if the user enters the type of message For the third type, the server executes from step 410 described below.

步驟404,若用戶輸入消息的類型為第一類型,則伺服器獲取與用戶輸入消息中攜帶的全部的訂購要素資訊相匹配的虛擬資源。 Step 404, if the type of the user input message is the first type, the server obtains a virtual resource that matches all the order element information carried in the user input message.

步驟405,伺服器生成用於訂購上述虛擬資源的虛擬資源資訊。 In step 405, the server generates virtual resource information for ordering the virtual resource.

步驟406,伺服器向用戶端發送虛擬資源資訊。 Step 406, the server sends virtual resource information to the client.

相應地,用戶端接收伺服器發送的虛擬資源資訊。 Accordingly, the client receives the virtual resource information sent by the server.

可選地,步驟406之後還包括如下步驟407: Optionally, after step 406, the following step 407 is further included:

步驟407,用戶端顯示虛擬資源資訊。 In step 407, the client displays virtual resource information.

上述步驟404至步驟406與圖2所示實施例中的步驟203至步驟205相同或類似,具體詳見步驟203至步驟205中的解釋說明,此處不再贅述。 The above steps 404 to 406 are the same as or similar to steps 203 to 205 in the embodiment shown in FIG. 2. For details, refer to the explanations in steps 203 to 205, and details are not described here.

步驟408,若用戶輸入消息的類型為第二類型,則伺服器向用戶端發送資訊收集頁面。 Step 408, if the type of the user input message is the second type, the server sends the information collection page to the user terminal.

相應地,用戶端接收伺服器發送的資訊收集頁面。 Accordingly, the client receives the information collection page sent by the server.

在用戶輸入消息中僅攜帶部分的訂購要素資訊的情況下,伺服器無法根據該部分的訂購要素資訊準確地搜索獲取到虛擬資源。例如,用戶輸入消息為“我想在今天下午3點看深海浩X”,伺服器從中只能識別出2項購票要素資訊,也即影片名稱和觀影時間,但是並不確定影院名稱和觀影人數,因此伺服器無法準確地搜索獲取到電影票。 In the case where the user input message carries only part of the order element information, the server cannot accurately search and obtain the virtual resource based on the part of the order element information. For example, if the user enters the message "I want to see Shenhaihao X at 3 pm today," the server can only recognize two pieces of ticket purchase element information, that is, the movie name and movie viewing time, but the theater name and The number of viewers, so the server cannot accurately search for movie tickets.

在這種情況下,伺服器向用戶端發送資訊收集頁面,該資訊收集頁面用於收集全部的訂購要素資訊。可選地,資訊收集頁面中包括上述從第二類型的用戶輸入消息中識別出的部分的訂購要素資訊。仍然結合上述例子,伺服器向用戶端發送的資訊收集頁面中,在影片輸入框中已經填寫“深海浩X”,在時間輸入框中已經填寫“今天15:00”,而影院輸入 框和人數輸入框中未填寫相應的購票要素資訊,等待用戶補充。 In this case, the server sends an information collection page to the client, which is used to collect all the order element information. Optionally, the information collection page includes part of the order element information identified above from the second type of user input message. Still combining the above example, in the information collection page sent by the server to the user, "Shen Hai Hao X" has been filled in the video input box, and "Today 15:00" has been filled in the time input box, while the theater input box and the number of people The input box does not fill in the corresponding ticket purchase element information, waiting for the user to add.

步驟409,用戶端顯示資訊收集頁面。 In step 409, the client displays the information collection page.

用戶端通過向用戶顯示資訊收集頁面,使得用戶能夠根據實際訂購需求在資訊收集頁面中輸入全部的訂購要素資訊。例如,用戶在影院輸入框中輸入“xx影院”,在人數輸入框中輸入“3人”,並確認提交之後,用戶端獲取到全部4項購票要素資訊。 The user terminal displays the information collection page to the user, so that the user can input all the order element information in the information collection page according to the actual order demand. For example, the user enters "xx theater" in the theater input box, and enters "3 people" in the number of people input box, and after confirming the submission, the user terminal obtains all 4 items of ticket purchase element information.

之後,用戶端與伺服器執行如下步驟(圖中未示出)以獲取虛擬資源資訊(也即虛擬資源訂單):用戶端獲取在資訊收集頁面中輸入的全部的訂購要素資訊,根據獲取的全部的訂購要素資訊,生成第一類型的用戶輸入消息,並向伺服器發送第一類型的用戶輸入消息;伺服器接收用戶端發送的第一類型的用戶輸入消息,獲取與該第一類型的用戶輸入消息中攜帶的全部的訂購要素資訊相匹配的虛擬資源,生成用於訂購上述虛擬資源的虛擬資源資訊,向用戶端發送虛擬資源資訊;用戶端接收伺服器發送的虛擬資源資訊。 After that, the client and the server perform the following steps (not shown in the figure) to obtain virtual resource information (that is, virtual resource order): the client obtains all the order element information entered on the information collection page, based on the obtained all Order element information, generate the first type of user input message, and send the first type of user input message to the server; the server receives the first type of user input message sent by the user terminal, and obtains the first type of user input message The virtual resources matching all the order element information carried in the input message are generated to generate virtual resource information for ordering the above virtual resources, and the virtual resource information is sent to the client; the client receives the virtual resource information sent by the server.

可選地,伺服器向用戶端發送資訊收集頁面之前,還執行如下步驟: Optionally, before sending the information collection page to the client, the server also performs the following steps:

1、伺服器獲取登錄用戶端的用戶帳號的特徵資訊;用戶帳號的特徵資訊用於指示該用戶帳號對應的用戶個人特徵。針對不同類型虛擬資源的訂購需求,伺服器獲取的特徵資訊也有所不同。例如,當訂購電影票時,伺服器獲取的特徵資訊包括但不限於以下至少一項:當前地理位置、常用的影院名稱、常用的觀影人數、常用的觀影時間、偏好的影片類型、歷史觀影記錄等。又例如,當訂購演唱會門票 時,伺服器獲取的特徵資訊包括但不限於以下至少一項:偏好的明星、歷史購票記錄、當前地理位置、常用的觀演人數等。又例如,當訂購電子機票時,伺服器獲取的特徵資訊包括但不限於以下至少一項:常用的航班編號、常用的購票人數、常用的乘機倉位、偏好的航空公司、歷史乘機記錄等。又例如,當訂購家政服務時,伺服器獲取的特徵資訊包括但不限於以下至少一項:常用的家政服務機構、常用的服務專案、常用的服務時間、歷史的家政服務訂購記錄等。 1. The server obtains the characteristic information of the user account logged in to the user terminal; the characteristic information of the user account is used to indicate the personal characteristics of the user corresponding to the user account. According to the ordering requirements of different types of virtual resources, the characteristic information obtained by the server is also different. For example, when ordering movie tickets, the feature information obtained by the server includes but is not limited to at least one of the following: current geographic location, commonly used theater name, commonly used movie viewers, commonly used movie viewing time, preferred movie type, history Viewing records, etc. For another example, when ordering concert tickets, the feature information obtained by the server includes, but is not limited to, at least one of the following: preferred stars, historical ticket purchase records, current geographic location, commonly used audience numbers, and so on. For another example, when ordering an electronic ticket, the feature information obtained by the server includes but is not limited to at least one of the following: commonly used flight numbers, commonly used ticket purchasers, commonly used flight positions, preferred airlines, historical flight records, etc. For another example, when ordering housekeeping services, the characteristic information acquired by the server includes but is not limited to at least one of the following: commonly used housekeeping service organizations, commonly used service projects, commonly used service hours, historical housekeeping service order records, and so on.

2、伺服器根據用戶帳號的特徵資訊,生成至少一項訂購要素資訊的推薦資訊。 2. The server generates at least one piece of recommendation information for ordering element information according to the characteristic information of the user account.

伺服器通過對用戶帳號的特徵資訊進行分析,生成至少一項訂購要素資訊的推薦資訊。訂購要素資訊的推薦資訊是指基於用戶個人特徵向用戶推薦的訂購要素資訊。例如,伺服器根據用戶的當前地理位置,選擇距離當前地理位置最近的影院作為影院名稱的推薦資訊。又例如,伺服器根據用戶常用的觀影人數,將該常用的觀影人數作為觀影人數的推薦資訊。再例如,伺服器根據用戶偏好的影片類型,將當前正在上映的影片中屬於上述偏好的影片類型的影片作為影片名稱的推薦資訊。還例如,伺服器根據歷史觀影記錄確定常用的影院名稱、常用的觀影人數、常用的觀影時間、偏好的影片類型中的至少一項資訊,並根據確定出的上述資訊進一步生成購票要素資訊的推薦資訊。 The server analyzes the characteristic information of the user account to generate recommended information of at least one order element information. The recommendation information of the order element information refers to the order element information recommended to the user based on the user's personal characteristics. For example, the server selects the theater closest to the current geographic location as the recommended information for the theater name according to the current geographic location of the user. For another example, the server uses the number of people watching the movie as recommended information for the number of people watching the movie according to the number of people watching the movie. For another example, according to the user's preferred video type, the server uses videos belonging to the above-mentioned preferred video type as recommended information of the video name among the currently-released videos. For another example, the server determines at least one piece of information from the names of commonly used theaters, the number of people watching movies, the time of watching movies, and the type of preferred movies based on historical viewing records, and further generates ticket purchases based on the determined information Recommended information for element information.

伺服器向用戶端發送的資訊收集頁面中還包括上述訂購要素資訊的推薦資訊,以便於用戶端在顯示資訊收集頁面的同時,將訂購要素資訊的推薦資訊顯示在相應的輸入框中,如果訂購要素資訊的推薦資訊 恰好是符合用戶實際訂購需求的,那麼用戶無需再手動輸入訂購要素資訊,簡化用戶操作。 The information collection page sent by the server to the client also includes the recommended information of the order element information, so that the client displays the recommended information of the order element information in the corresponding input box while displaying the information collection page. The recommended information of element information happens to meet the user's actual ordering requirements, so the user does not need to manually enter the order element information, simplifying the user's operation.

需要說明的是,對於任意一項訂購要素資訊,如果該項訂購要素資訊已經從用戶輸入資訊中識別得到,則伺服器向用戶端發送的資訊收集頁面中包括該項識別得到的訂購要素資訊,而不包括該項訂購要素資訊的推薦資訊;如果該項訂購要素資訊並未從用戶輸入資訊中識別得到,則伺服器向用戶端發送的資訊收集頁面中可以包括該項訂購要素資訊的推薦資訊。 It should be noted that, for any order element information, if the order element information has been identified from the user input information, the information collection page sent by the server to the client includes the identified order element information, It does not include the recommendation information of the order element information; if the order element information is not recognized from the user input information, the information collection page sent by the server to the client may include the recommendation information of the order element information .

步驟410,若用戶輸入消息的類型為第三類型,則伺服器將用戶輸入消息發送給至少兩個智慧聊天系統。 Step 410, if the type of the user input message is the third type, the server sends the user input message to at least two smart chat systems.

在用戶輸入消息中未攜帶訂購要素資訊的情況下,說明該用戶輸入消息與訂購虛擬資源無關,此時伺服器調用智慧聊天系統與用戶進行人工智慧對話。 When the user input message does not carry the order element information, it means that the user input message has nothing to do with ordering virtual resources. At this time, the server calls the smart chat system to conduct artificial intelligence dialogue with the user.

伺服器與一個或者多個智慧聊天系統對接。可選地,伺服器與至少兩個智慧聊天系統對接。不同的智慧聊天系統的消息回復策略有所不同。例如,針對同一句用戶輸入消息“今天吃什麼”,智慧聊天系統A生成的回復消息為“今天吃老北京炸醬麵”,智慧聊天系統B生成的回復消息為“我不吃飯,給我充電就行了”。可選地,不同的智慧聊天系統還可以有不同的風格,例如能夠模仿女僕、暖男、大叔等不同人物的聲音。 The server is connected to one or more smart chat systems. Optionally, the server interfaces with at least two smart chat systems. Different smart chat systems have different message reply strategies. For example, for the same sentence user input message "what to eat today", the reply message generated by the smart chat system A is "to eat old Beijing fried sauce noodles today", and the reply message generated by the smart chat system B is "I do not eat, charge me Just do it. " Optionally, different smart chat systems can also have different styles, such as being able to imitate the voices of different characters such as maid, warm man, and uncle.

步驟411,伺服器接收各個智慧聊天系統發送的對應於第三類型的用戶輸入消息的回復消息。 In step 411, the server receives reply messages corresponding to the third type of user input messages sent by each smart chat system.

步驟412,伺服器獲取各個回復消息與第三類型的用戶輸入 消息之間的匹配度。 In step 412, the server obtains the matching degree between each reply message and the third type of user input message.

在本發明實施例中,對計算回復消息與第三類型的用戶輸入消息之間的匹配度的方式不作限定。例如,伺服器基於語義分析演算法,對第三類型的用戶輸入消息和回復消息進行語義分析,計算回復消息與第三類型的用戶輸入消息之間的語義匹配度。 In the embodiment of the present invention, the manner of calculating the matching degree between the reply message and the third type of user input message is not limited. For example, the server performs semantic analysis on the third type of user input message and reply message based on a semantic analysis algorithm, and calculates the semantic matching degree between the reply message and the third type of user input message.

步驟413,伺服器根據匹配度確定對應於第三類型的用戶輸入消息的最終回復消息。 In step 413, the server determines the final reply message corresponding to the third type of user input message according to the matching degree.

可選地,伺服器選取匹配度最高的回復消息作為最終回復消息。 Optionally, the server selects the reply message with the highest matching degree as the final reply message.

步驟414,伺服器向用戶端發送最終回復消息。 Step 414, the server sends a final reply message to the user terminal.

相應地,用戶端接收伺服器發送的最終回復消息。 Accordingly, the user terminal receives the final reply message sent by the server.

而後,用戶端將最終回復消息進行展示。例如,當最終回復消息為文字形式時,用戶端顯示最終回復消息;當最終回復消息為語音形式時,用戶端播放最終回復消息。 Then, the user terminal will finally display the reply message. For example, when the final reply message is in text form, the user terminal displays the final reply message; when the final reply message is in voice form, the user terminal plays the final reply message.

在本發明實施例中,通過伺服器與至少兩個智慧聊天系統對接,實現為用戶提供更具多樣性的人工智慧聊天體驗。 In the embodiment of the present invention, the server is connected with at least two smart chat systems to provide users with a more diverse artificial intelligence chat experience.

可選地,用戶端獲取的消息還可能是預設消息。預設消息是指預先設定的消息。預設消息用於表達具有訂購虛擬資源的需求,但預設消息中並不攜帶訂購要素資訊。以獲取電影票訂單為例,預設消息包括“我要看電影”、“我要訂電影票”、“我要買電影票”等。預設消息的數量可以是一條,也可以是多條,本發明實施例對此不作限定。 Optionally, the message acquired by the user terminal may also be a preset message. The preset message refers to a preset message. The preset message is used to express the demand for ordering virtual resources, but the preset message does not carry order element information. Taking an example of obtaining a movie ticket order, the preset messages include "I want to watch a movie", "I want to order a movie ticket", "I want to buy a movie ticket", and so on. The number of preset messages may be one or multiple, which is not limited in this embodiment of the present invention.

用戶端獲取預設消息之後,向伺服器發送預設消息;伺服器 在接收到預設消息之後,向用戶端發送資訊收集頁面;用戶端接收伺服器發送的資訊收集頁面,顯示資訊收集頁面。在上文已經介紹,資訊收集頁面用於收集全部的訂購要素資訊。可選地,資訊收集頁面中包括至少一項訂購要素資訊的推薦資訊。之後,用戶端與伺服器按照上文介紹的步驟以獲取虛擬資源資訊(也即虛擬資源訂單),本實施例對此不再贅述,參見步驟409之後的介紹說明。 After obtaining the preset message, the client sends the preset message to the server; after receiving the preset message, the server sends the information collecting page to the client; the client receives the information collecting page sent by the server and displays the information collecting page. As mentioned above, the information collection page is used to collect all order element information. Optionally, the information collection page includes at least one piece of recommended information for ordering element information. After that, the client and the server follow the steps described above to obtain virtual resource information (that is, virtual resource orders), which will not be repeated in this embodiment. For details, refer to the description after step 409.

伺服器在從用戶端接收到任一消息之後,可以首先判斷該消息是否為預設消息;如果該消息為預設消息,則伺服器從向用戶端發送資訊收集頁面的步驟開始執行;如果該消息不是預設消息,則說明該消息為上述任一類型的用戶輸入消息,則伺服器從確定用戶輸入消息的類型的步驟開始執行。 After receiving any message from the client, the server can first determine whether the message is a preset message; if the message is a preset message, the server starts from the step of sending the information collection page to the client; if the If the message is not a preset message, it means that the message is any type of user input message mentioned above, and the server executes from the step of determining the type of user input message.

通過上述方式,伺服器在接收到用戶端發送的任一消息之後,首先判斷該消息是否為預設消息,並在該消息是預設消息的情況下,向用戶端發送資訊收集頁面,從而提高了伺服器對預設消息的回應效率。 In the above manner, after receiving any message sent by the client, the server first determines whether the message is a preset message, and if the message is a preset message, sends the information collection page to the client, thereby improving The efficiency of the server's response to the preset message is improved.

另外需要補充說明的一點是,在本發明實施例中,對用戶輸入預設消息的方式不作限定,例如用戶可以採用文字形式輸入預設消息,也可以採用語音形式輸入預設消息,還可以採用預設按鈕輸入預設消息,等等。 Another point that needs to be added is that, in the embodiment of the present invention, the manner in which the user inputs the preset message is not limited. For example, the user may enter the preset message in text form, or may enter the preset message in voice form, and may also use The preset button enters a preset message, and so on.

綜上所述,本發明實施例提供的方法,通過將全部的訂購要素資訊一次收集完成,用戶端將上述全部的訂購要素資訊一併發送給伺服器,由伺服器查找與其匹配的虛擬資源並生成相應的虛擬資源訂單,從而減少整個訂購過程中用戶端與伺服器之間的交互次數,有助於提升線上訂 購虛擬資源的操作效率,且節省用戶端與伺服器之間的傳輸資源。 In summary, in the method provided by the embodiment of the present invention, all the order element information is collected at once, and the client sends all the order element information to the server, and the server finds the matching virtual resources and Generate corresponding virtual resource orders, thereby reducing the number of interactions between the client and the server during the entire ordering process, helping to increase the efficiency of online ordering of virtual resources, and saving transmission resources between the client and the server.

另外,在伺服器獲取部分的訂購要素資訊的情況下,通過向用戶端發送資訊收集頁面,從而一次收集全部的訂購要素資訊,使得用戶端與伺服器之間僅需兩次交互即可生成虛擬資源訂單,相較於相關技術的交互次數同樣縮短。 In addition, when the server obtains part of the order element information, by sending the information collection page to the client, all the order element information is collected at one time, so that only two interactions between the client and the server can generate a virtual The number of resource orders is also shorter than that of related technologies.

另外,還通過伺服器獲取登錄用戶端的用戶帳號的特徵資訊,根據用戶帳號的特徵資訊,生成至少一項訂購要素資訊的推薦資訊,並在資訊收集頁面中顯示上述訂購要素資訊的推薦資訊,實現了向用戶自動推薦合適的訂購要素資訊,有助於減少用戶的輸入操作,進一步提高訂購效率。 In addition, the feature information of the user account logged in to the client terminal is obtained through the server, and at least one piece of recommended information of order element information is generated based on the feature information of the user account, and the recommended information of the order element information is displayed on the information collection page, In order to automatically recommend the appropriate order element information to the user, it helps reduce the user's input operation and further improve the order efficiency.

在上述方法實施例中,僅從用戶端和伺服器之間交互的角度進行介紹說明。其中,有關用戶端一側的步驟可以單獨實現成用戶端側的資訊獲取方法,有關伺服器一側的步驟可以單獨實現成為伺服器側的資訊提供方法。 In the above method embodiments, the description is only given from the perspective of interaction between the user terminal and the server. Among them, the steps on the client side can be implemented separately as the information acquisition method on the client side, and the steps on the server side can be implemented separately as the information providing method on the server side.

請參考圖9,其示出了本發明實施例提供的另一種資訊獲取方法的流程圖。在本實施例中,用戶端以聊天對話方式獲取用戶的虛擬資源訂購需求。該方法可以包括如下幾個步驟: Please refer to FIG. 9, which shows a flowchart of another information acquisition method provided by an embodiment of the present invention. In this embodiment, the user terminal obtains the user's virtual resource subscription requirements in a chat conversation. The method may include the following steps:

步驟501,用戶端顯示與訂購伺服器的聊天對話介面。 In step 501, the user terminal displays a chat dialogue interface with the order server.

聊天對話介面是指以聊天對話的方式獲取用戶的虛擬資源訂購需求的用戶介面。可選地,該聊天對話介面可以是用戶端(也即用戶)與訂購伺服器之間的聊天對話介面。訂購伺服器是為用戶端提供後臺服務的伺服器,也即上述圖2和圖8實施例中的伺服器。訂購伺服器可以稱為訂 購機器人,其具備AI功能。 The chat dialogue interface refers to a user interface that obtains the user's virtual resource ordering requirements in the form of chat dialogue. Optionally, the chat dialogue interface may be a chat dialogue interface between the user terminal (that is, the user) and the order server. The order server is a server that provides a background service for the client, that is, the server in the embodiments of FIG. 2 and FIG. 8 described above. The order server can be called order robot, which has AI function.

在一個例子中,假設用戶端為“智慧助手”用戶端,訂購伺服器為訂票伺服器。“智慧助手”用戶端以聊天對話方式獲取用戶的電影票訂購需求。如圖10中(a)部分所示,用戶打開“智慧助手”用戶端,“智慧助手”用戶端顯示與訂票伺服器的聊天對話介面60。聊天對話介面60中包括歡迎語61、文字輸入欄62和語音輸入按鈕63。文字輸入欄62用於觸發調用輸入法程式,使得用戶能夠輸入文字形式的用戶輸入消息。語音輸入按鈕63用於觸發調用麥克風,使得用戶能夠輸入語音形式的用戶輸入消息。可選地,聊天對話介面60中還包括多個快捷功能按鈕,如圖中示出的用於線上購買電影票的“我要看電影”快捷功能按鈕64、用於線上預訂餐廳的“我要訂餐廳”快捷功能按鈕(圖中未標號)、用於線上叫車的“我要搭車”快捷功能按鈕(圖中未標號)。 In one example, assume that the client is a "smart assistant" client and the order server is a ticket server. The "smart assistant" user terminal obtains the user's movie ticket ordering requirements through chat conversation. As shown in part (a) of FIG. 10, the user opens the "smart assistant" client, and the "smart assistant" client displays a chat dialogue interface 60 with the ticket server. The chat interface 60 includes a welcome message 61, a text input field 62, and a voice input button 63. The text input field 62 is used to trigger the call of the input method program, so that the user can input the user input message in the form of text. The voice input button 63 is used to trigger the calling of the microphone, so that the user can input a user input message in the form of voice. Optionally, the chat dialogue interface 60 also includes a plurality of shortcut function buttons, such as the "I want to watch a movie" shortcut function button 64 for purchasing movie tickets online as shown in the figure, and "I want to watch movies" for online restaurant reservations "Reservation for restaurant" shortcut function button (not labeled in the figure), "I want to ride a car" shortcut function button (not labeled in the figure) for online taxi calling.

步驟502,用戶端獲取在聊天對話介面中輸入的第一類型的用戶輸入消息。 Step 502: The user terminal obtains the first type of user input message input in the chat dialogue interface.

第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,訂購要素資訊是指線上訂購虛擬資源所需的必要資訊。 The first type of user input message refers to a user input message that carries all the order element information. The order element information refers to the necessary information required to order virtual resources online.

示例性地,用戶端獲取在聊天對話介面中輸入的第一類型的用戶輸入消息包括如下幾種可能的實現方式:在第一種可能的實現方式中,用戶端獲取在聊天對話介面中以文字形式輸入的第一類型的用戶輸入消息。 Exemplarily, the user terminal acquiring the first type of user input message entered in the chat dialogue interface includes the following possible implementations: In the first possible implementation, the user end acquires text in the chat dialogue interface The first type of user input message in the form of input.

例如,用戶可以在聊天對話介面60的文字輸入欄62中輸入如下文字內容“今天晚上8點,4人去xx影院觀看我不是潘X蓮”,並提交給 “智慧助手”用戶端。相應地,“智慧助手”用戶端獲取在聊天對話介面60中以文字形式輸入的第一類型的用戶輸入消息。 For example, the user may enter the following text content in the text input field 62 of the chat dialogue interface 60, “At 8 o'clock tonight, 4 people go to the xx theater to watch that I am not Pan Xlian”, and submit it to the “smart assistant” client. Correspondingly, the "smart assistant" user terminal obtains the first type of user input message entered in the chat conversation interface 60 in text form.

在第二種可能的實現方式中,用戶端獲取在聊天對話介面中以語音形式輸入的第一類型的用戶輸入消息。 In a second possible implementation manner, the user terminal obtains the first type of user input message input in the form of voice in the chat conversation interface.

例如,用戶點擊聊天對話介面60中的語音輸入按鈕63,觸發“智慧助手”用戶端調用麥克風,通過麥克風採集如下語音資訊:我想在今天晚上8點去xx影院觀看奇X博士,幫我出2張電影票。相應地,“智慧助手”用戶端獲取在聊天對話介面60中以語音形式輸入的第一類型的用戶輸入消息。 For example, the user clicks the voice input button 63 in the chat dialogue interface 60 to trigger the "smart assistant" client to call the microphone, and collect the following voice information through the microphone: I want to watch Dr. Qi X at xx theater at 8 o'clock tonight 2 movie tickets. Correspondingly, the "smart assistant" user terminal obtains the first type of user input message input in the chat conversation interface 60 in the form of voice.

在第三種可能的實現方式中,用戶端獲取在聊天對話介面的資訊收集頁面中輸入的全部的訂購要素資訊;生成攜帶有全部的訂購要素資訊的第一類型的用戶輸入消息。 In a third possible implementation manner, the user terminal obtains all order element information entered in the information collection page of the chat dialogue interface; and generates a first type of user input message carrying all order element information.

可選地,資訊收集頁面中包括用於供用戶輸入全部的訂購要素資訊的輸入框,用戶在上述輸入框中能夠輸入全部的訂購要素資訊。資訊收集頁面的示例性示意圖可參見圖7。 Optionally, the information collection page includes an input box for the user to input all the order element information, and the user can input all the order element information in the above input box. An exemplary schematic diagram of the information collection page can be seen in FIG. 7.

例如,如圖10中(b)部分所示,“智慧助手”用戶端在聊天對話介面60中顯示資訊收集頁面65。用戶在資訊收集頁面65中填寫全部的購票要素資訊,包括影片名稱、影院名稱、觀影時間和觀影人數。如圖6中(c)部分所示,用戶在資訊收集頁面65中填寫影片名稱“我不是潘X蓮”、影院名稱“xx影城(深大店)”、觀影時間“今天17:00”以及觀影人數“2人”。用戶在輸入完成全部的購票要素資訊之後,點擊資訊收集頁面65中的“確認”按鈕,觸發“智慧助手”用戶端向訂票伺服器發送第一 類型的用戶輸入消息,該第一類型的用戶輸入消息中攜帶上述全部的購票要素資訊。 For example, as shown in part (b) of FIG. 10, the "smart assistant" client displays an information collection page 65 in the chat conversation interface 60. The user fills in all information of the ticket purchase elements on the information collection page 65, including the name of the movie, the name of the theater, the viewing time and the number of viewers. As shown in part (c) of Figure 6, the user fills in the information collection page 65 the movie name "I am not Pan Xlian", the theater name "xx Cinema (Shenda Store)", and the viewing time "Today 17:00 "And the number of viewers" 2 ". After inputting all the information of ticket purchase elements, the user clicks the "confirm" button on the information collection page 65 to trigger the "smart assistant" client to send the first type of user input message to the booking server. The user input message carries all the above-mentioned ticket purchase element information.

另外,用戶可以在資訊收集頁面的輸入框中直接輸入訂購要素資訊;或者,用戶也可以觸發顯示訂購要素資訊對應的候選項,從候選項中選擇需要輸入的訂購要素資訊。 In addition, the user can directly enter the order element information in the input box of the information collection page; or, the user can also trigger the display of candidate items corresponding to the order element information, and select the order element information to be input from the candidate items.

資訊收集頁面由訂購伺服器發送給用戶端。可選地,在如下兩種情況下,用戶端從訂購伺服器獲取資訊收集頁面並顯示。 The information collection page is sent to the client by the order server. Optionally, in the following two cases, the client obtains the information collection page from the order server and displays it.

在一種可能的情況下,用戶端獲取在聊天對話介面中輸入的第二類型的用戶輸入消息,第二類型的用戶輸入消息是指攜帶有部分的訂購要素資訊的用戶輸入消息;向訂購伺服器發送第二類型的用戶輸入消息;接收訂購伺服器發送的資訊收集頁面;在聊天對話介面中顯示資訊收集頁面。 In a possible situation, the user terminal obtains a second type of user input message entered in the chat dialogue interface. The second type of user input message refers to a user input message that carries part of the order element information; to the order server Send the second type of user input message; receive the information collection page sent by the order server; display the information collection page in the chat dialogue interface.

例如,第二類型的用戶輸入消息為“我想在今天晚上9點看深海浩X”,訂票伺服器從中只能識別出2項購票要素資訊,也即影片名稱和觀影時間,但是並不確定影院名稱和觀影人數,因此訂票伺服器無法準確地搜索獲取到電影票。在這種情況下,訂票伺服器向用戶端發送資訊收集頁面,用於收集全部的購票要素資訊。用戶端接收到資訊收集頁面之後,將資訊收集頁面顯示在聊天對話介面中。 For example, the second type of user input message is "I want to see Shenhai Hao X at 9 o'clock tonight", and the booking server can only recognize 2 pieces of ticket purchase element information, that is, the name of the movie and the viewing time, but The name of the theater and the number of viewers are not certain, so the ticket booking server cannot accurately search for and obtain movie tickets. In this case, the ticket booking server sends an information collection page to the client for collecting all the ticket purchase element information. After receiving the information collection page, the client displays the information collection page in the chat dialogue interface.

可選地,資訊收集頁面中包括上述從第二類型的用戶輸入消息中識別出的部分的訂購要素資訊。仍然結合上述例子,訂票伺服器向用戶端發送的資訊收集頁面中,在影片輸入框中已經填寫“深海浩X”,在時間輸入框中已經填寫“今天21:00”,而影院輸入框和人數輸入框中未填寫 相應的購票要素資訊,等待用戶補充。 Optionally, the information collection page includes part of the order element information identified above from the second type of user input message. Still combining the above example, in the information collection page sent by the booking server to the user, "Shen Hai Hao X" has been filled in the video input box, "21:00 today" has been filled in the time input box, and the theater input box The corresponding ticket purchase element information is not filled in the input box for the number of people, waiting for the user to add.

在另一種可能的情況下,用戶端獲取在聊天對話介面中輸入的預設消息;向訂購伺服器發送預設消息;接收訂購伺服器發送的資訊收集頁面;在聊天對話介面中顯示資訊收集頁面。 In another possible situation, the client obtains the preset message entered in the chat dialogue interface; sends the preset message to the order server; receives the information collection page sent by the order server; and displays the information collection page in the chat dialogue interface .

預設消息是指預先設定的消息。預設消息用於表達具有訂購虛擬資源的需求,但預設消息中並不攜帶訂購要素資訊。以獲取電影票訂單為例,預設消息包括“我要看電影”、“我要訂電影票”、“我要買電影票”等。預設消息的數量可以是一條,也可以是多條,本發明實施例對此不作限定。 The preset message refers to a preset message. The preset message is used to express the demand for ordering virtual resources, but the preset message does not carry order element information. Taking an example of obtaining a movie ticket order, the preset messages include "I want to watch a movie", "I want to order a movie ticket", "I want to buy a movie ticket", and so on. The number of preset messages may be one or multiple, which is not limited in this embodiment of the present invention.

結合參考圖10,用戶點擊“我要看電影”快捷功能按鈕62之後,“智慧助手”用戶端向訂票伺服器發送預設消息,該預設消息的內容為“我要看電影”。 With reference to FIG. 10, after the user clicks the "I want to watch a movie" shortcut function button 62, the "smart assistant" client sends a preset message to the booking server, and the content of the preset message is "I want to watch a movie".

在其他可能的實現方式中,用戶也可以通過文字或者語音輸入用於表達訂購需求的預設消息。例如,用戶在聊天對話介面60的文字輸入欄62中輸入“我想看個電影”的文字資訊,或者用戶點擊聊天對話介面60中的語音輸入按鈕63輸入“我要訂電影票”的語音資訊。 In other possible implementation manners, the user may also input a preset message for expressing order requirements through text or voice. For example, the user enters the text information of "I want to watch a movie" in the text input field 62 of the chat dialogue interface 60, or the user clicks the voice input button 63 in the chat dialogue interface 60 to enter the voice information of "I want to order a movie ticket" .

訂購伺服器在檢測到用戶端發送的用戶輸入消息為預設消息後,向用戶端發送資訊收集頁面,用於收集全部的訂購要素資訊。用戶端接收到資訊收集頁面之後,將資訊收集頁面顯示在聊天對話介面中。 After detecting that the user input message sent by the user terminal is a preset message, the order server sends an information collection page to the user terminal for collecting all the order element information. After receiving the information collection page, the client displays the information collection page in the chat dialogue interface.

可選地,資訊收集頁面中包括至少一項訂購要素資訊的推薦資訊。有關推薦資訊的介紹說明可參見上述圖8實施例,本實施例對此不再贅述。 Optionally, the information collection page includes at least one piece of recommended information for ordering element information. Refer to the above-mentioned embodiment of FIG. 8 for the introduction and description of the recommendation information, which will not be repeated in this embodiment.

步驟503,用戶端向訂購伺服器發送第一類型的用戶輸入消息。 In step 503, the user terminal sends a first type of user input message to the order server.

訂購伺服器接收到用戶端發送的第一類型的用戶輸入消息之後,獲取與全部的訂購要素資訊相匹配的虛擬資源,而後生成用於訂購上述虛擬資源的虛擬資源資訊(也即虛擬資源訂單),並向用戶端發送虛擬資源資訊。上述過程可參見圖2實施例中的步驟202-205,本實施例對此不再贅述。 After receiving the first type of user input message sent by the client, the ordering server obtains virtual resources matching all the order element information, and then generates virtual resource information (that is, virtual resource order) for ordering the above virtual resources And send virtual resource information to the client. For the above process, reference may be made to steps 202-205 in the embodiment of FIG. 2, which will not be repeated in this embodiment.

步驟504,用戶端接收訂購伺服器發送的虛擬資源資訊。 Step 504: The user terminal receives the virtual resource information sent by the order server.

步驟505,用戶端顯示虛擬資源資訊。 In step 505, the client displays virtual resource information.

用戶端在接收到虛擬資源資訊之後,顯示該虛擬資源資訊和相應的支付控制項。用戶在確認虛擬資源資訊中的資訊無誤之後,觸發支付控制項完成線上支付流程,從而完成虛擬資源線上訂購。 After receiving the virtual resource information, the user terminal displays the virtual resource information and the corresponding payment control item. After confirming that the information in the virtual resource information is correct, the user triggers the payment control item to complete the online payment process, thereby completing the online ordering of the virtual resource.

如圖10中(d)部分所示,用戶端在聊天對話介面60中顯示電影票訂單66,用戶查看電影票訂單66中的資訊無誤後,點擊“支付”按鈕,完成線上支付流程,從而完成電影票線上購買。 As shown in part (d) of FIG. 10, the user terminal displays the movie ticket order 66 in the chat dialogue interface 60. After viewing the information in the movie ticket order 66, the user clicks the "Pay" button to complete the online payment process, thereby completing Buy movie tickets online.

借助于“智慧助手”用戶端,將服務商和用戶通過聊天互動的方式串聯起來,用戶在使用“智慧助手”用戶端和“智慧助手”聊天的過程中,“智慧助手”會根據用戶需求提供相應的資訊和服務(包括但不限於電影票訂購服務),有助於增強趣味性,且能夠有效提高服務的使用率。另外,當用戶線上購買電影票之後,“智慧助手”還可以為用戶提供一些關聯服務,例如為用戶推薦影院附近的餐廳、為用戶提前規劃到達影院的線路並提供叫車服務,等等。 With the help of the "smart assistant" client, the service provider and the user are connected through chat interaction. When the user uses the "smart assistant" client and the "smart assistant" to chat, the "smart assistant" will provide according to user needs. Corresponding information and services (including but not limited to movie ticket ordering services) help to enhance the fun and can effectively improve the service utilization rate. In addition, after users purchase movie tickets online, the "smart assistant" can also provide users with some related services, such as recommending restaurants near the theater to the user, planning the route to the theater in advance for the user, and providing taxi service, etc.

綜上所述,本實施例提供的方法,採用與用戶之間進行友好交互的方式獲取用戶的虛擬資源訂購需求,提供了一種嶄新的線上訂購虛擬資源的場景和方式。 In summary, the method provided in this embodiment adopts a friendly interaction with the user to obtain the user's virtual resource ordering requirements, and provides a new scenario and method for ordering virtual resources online.

在一個示例中,結合參考圖11,其示出了伺服器對從用戶端接收到的消息的處理流程的示意圖。伺服器70包括:消息收發模組71、消息識別模組72、消息分發模組73、消息過濾模組74。 In one example, with reference to FIG. 11, it shows a schematic diagram of the processing flow of the server for the message received from the user terminal. The server 70 includes a message transceiving module 71, a message recognition module 72, a message distribution module 73, and a message filtering module 74.

消息收發模組71用於收發消息,包括從用戶端接收消息和向用戶端發送消息。 The message transceiving module 71 is used to send and receive messages, including receiving messages from the user terminal and sending messages to the user terminal.

消息識別模組72用於判斷從用戶端接收到的消息是否為預設消息,以及在不是預設消息的情況下,進一步識別確定該消息的類型。消息識別模組72提供有基礎業務識別和消息變數識別兩大功能。 The message identification module 72 is used to determine whether the message received from the user terminal is a preset message, and, if it is not a preset message, further identify and determine the type of the message. The message recognition module 72 provides two functions of basic service recognition and message variable recognition.

其中,基礎業務識別功能用於判斷從用戶端接收到的消息是否為預設消息,若該消息是預設消息,則根據消息範本檔獲取與預設消息相對應的應答消息,並將應答消息發送給消息收發模組71,通過消息收發模組71將應答消息發送給用戶端;若該消息不是預設消息,則將該消息交由消息變數識別功能進行處理。消息範本檔中包括至少一組預設消息和應答消息之間的對應關係,例如消息範本檔中包括預設消息“我要看電影”和資訊收集頁面之間的對應關係。 The basic service identification function is used to determine whether the message received from the user terminal is a preset message. If the message is a preset message, the response message corresponding to the preset message is obtained according to the message template file, and the reply message It is sent to the message transceiving module 71, and the response message is sent to the user terminal through the message transceiving module 71; if the message is not a preset message, the message is handed over to the message variable recognition function for processing. The message template file includes the correspondence between at least one set of preset messages and response messages. For example, the message template file includes the correspondence between the preset message "I want to watch a movie" and the information collection page.

消息變數識別功能用於確定消息為第一類型的用戶輸入消息、第二類型的用戶輸入消息還是第三類型的用戶輸入消息。可選地,消息變數識別功能具體用於:檢測用戶輸入消息是否與基礎消息範本相匹配;若用戶輸入消息與基礎消息範本相匹配,則確定該用戶輸入消息的類 型為第一類型或者第二類型,進一步採用基於基礎消息範本生成的消息變數範本從用戶輸入消息中識別得到訂購要素資訊,當識別得到全部的訂購要素資訊時,說明是第一類型的用戶輸入消息,調用搜索服務獲取虛擬資源,當識別得到部分的訂購要素資訊時,說明是第二類型的用戶輸入消息,生成並向用戶端發送資訊收集頁面;若用戶輸入消息與基礎消息範本不匹配,則說明是第三類型的用戶輸入消息,將第三類型的用戶輸入消息交由消息分發模組73做下一步處理。 The message variable identification function is used to determine whether the message is a first type of user input message, a second type of user input message, or a third type of user input message. Optionally, the message variable identification function is specifically used to detect whether the user input message matches the basic message template; if the user input message matches the basic message template, determine that the type of the user input message is the first type or the second Type, further use the message variable template generated based on the basic message template to identify the order element information from the user input message. When all the order element information is identified, it is the first type of user input message, and the search service is called to obtain virtual resources , When part of the order element information is identified, the description is the second type of user input message, and the information collection page is generated and sent to the user; if the user input message does not match the basic message template, it is the third type of user Input the message, and hand over the third type of user input message to the message distribution module 73 for further processing.

消息分發模組73與智慧聊天系統對接,用於將第三類型的用戶輸入消息分發給一個或者多個智慧聊天系統,獲取各個智慧聊天系統發送的對應於該第三類型的用戶輸入消息的回復消息,並計算各個回復消息與第三類型的用戶輸入消息之間的匹配度。消息分發模組73還用於將各個回復消息及對應的匹配度發送給消息過濾模組74。 The message distribution module 73 is docked with the smart chat system to distribute the third type of user input message to one or more smart chat systems to obtain replies corresponding to the third type of user input message sent by each smart chat system Message, and calculate the matching degree between each reply message and the third type of user input message. The message distribution module 73 is also used to send each reply message and the corresponding matching degree to the message filtering module 74.

消息過濾模組74用於根據匹配度確定對應於第三類型的用戶輸入消息的最終回復消息,並將最終回復消息發送給消息收發模組71,通過消息收發模組71將最終回復消息發送給用戶端。 The message filtering module 74 is used to determine the final reply message corresponding to the third type of user input message according to the matching degree, and send the final reply message to the messaging module 71, and send the final reply message to the messaging module 71 user terminal.

上述示例中涉及的模組為按照功能劃分的功能模組。在本發明實施例中,僅以上述各功能模組的劃分進行舉例說明,實際應用中,可以根據需要而將伺服器的功能分配由不同的功能模組完成,即將伺服器的內部結構劃分成不同的功能模組,以完成以上描述的全部或者部分功能。 The modules involved in the above examples are functional modules divided according to functions. In the embodiment of the present invention, only the division of the above functional modules is used as an example for illustration. In practical applications, the function distribution of the server can be completed by different functional modules according to needs, that is, the internal structure of the server is divided into Different functional modules to complete all or part of the functions described above.

可選地,當伺服器是由多台伺服器組成的伺服器集群時,示例性的伺服器架構可以如圖12所示。該伺服器集群包括:消息伺服器81、 處理伺服器82、解析伺服器83和代理伺服器84。其中,處理伺服器82與消息伺服器81、解析伺服器83和代理伺服器84之間分別具有通信連接,該通信連接可以基於有線網路或者無線網路建立。 Alternatively, when the server is a server cluster composed of multiple servers, an exemplary server architecture may be as shown in FIG. 12. The server cluster includes a message server 81, a processing server 82, a resolution server 83, and a proxy server 84. The processing server 82 has a communication connection with the message server 81, the resolution server 83, and the proxy server 84, and the communication connection may be established based on a wired network or a wireless network.

消息伺服器81主要用於收發消息,包括從用戶端接收消息和向用戶端發送消息。可選地,消息伺服器81還用於儲存消息,包括儲存從用戶端接收的消息和向用戶端發送的消息,以便後續在有需求時能夠查找歷史消息記錄。 The message server 81 is mainly used to send and receive messages, including receiving messages from the user terminal and sending messages to the user terminal. Optionally, the message server 81 is also used to store messages, including storing messages received from the user terminal and messages sent to the user terminal, so as to be able to search historical message records when required later.

處理伺服器82主要用於根據全部的訂購要素資訊,搜索獲取與該全部的訂購要素資訊相匹配的虛擬資源。 The processing server 82 is mainly used for searching and acquiring virtual resources matching all the order element information based on all the order element information.

解析伺服器83主要用於對消息進行解析,從消息中識別得到訂購要素資訊。 The parsing server 83 is mainly used for parsing the message and identifying the order element information from the message.

代理伺服器84主要用於生成虛擬資源資訊(也即虛擬資源訂單)。 The proxy server 84 is mainly used to generate virtual resource information (that is, virtual resource orders).

結合參考圖9,其示出了基於圖8所示的伺服器集群,本發明實施例提供的一種資訊獲取方法的流程圖。 With reference to FIG. 9, it shows a flowchart of an information acquisition method provided by an embodiment of the present invention based on the server cluster shown in FIG. 8.

步驟901,用戶端向消息伺服器發送消息;相應地,消息伺服器接收用戶端發送的消息;步驟902,消息伺服器儲存消息;步驟903,消息伺服器向處理伺服器轉發消息;相應地,處理伺服器接收消息伺服器轉發的消息;步驟904,處理伺服器在確定需要對消息進行解析時,將消息轉發給解析伺服器; 相應地,解析伺服器接收處理伺服器轉發的消息;步驟905,解析伺服器對消息進行解析,從消息中識別得到訂購要素資訊;步驟906,解析伺服器將訂購要素資訊發送給處理伺服器;相應地,處理伺服器接收解析伺服器發送的訂購要素資訊;步驟907,如果處理伺服器接收到全部的訂購要素資訊,則處理伺服器搜索獲取與全部的訂購要素資訊相匹配的虛擬資源;步驟908,處理伺服器向代理伺服器發送訂購請求,訂購請求用於請求訂購上述虛擬資源;相應地,代理伺服器接收處理伺服器發送的訂購請求;步驟909,代理伺服器生成與訂購請求相對應的虛擬資源訂單;步驟910,代理伺服器將虛擬資源訂單發送給處理伺服器;相應地,處理伺服器接收代理伺服器發送的虛擬資源訂單;步驟911,處理伺服器生成攜帶有虛擬資源訂單的訂單消息;步驟912,處理伺服器向消息伺服器發送訂單消息;相應地,消息伺服器接收處理伺服器發送的訂單消息;步驟913,消息伺服器儲存訂單消息;步驟914,消息伺服器向用戶端發送訂單消息;相應地,用戶端接收消息伺服器發送的訂單消息。 Step 901, the user terminal sends a message to the message server; accordingly, the message server receives the message sent by the user terminal; step 902, the message server stores the message; step 903, the message server forwards the message to the processing server; accordingly, The processing server receives the message forwarded by the message server; step 904, the processing server forwards the message to the parsing server when it determines that the message needs to be parsed; accordingly, the parsing server receives the message forwarded by the processing server; step 905 , The parsing server parses the message and identifies order element information from the message; step 906, the parsing server sends the order element information to the processing server; accordingly, the processing server receives the order element information sent by the parsing server; Step 907, if the processing server receives all the order element information, the processing server searches to obtain virtual resources matching all the order element information; step 908, the processing server sends an order request to the proxy server. In order to request the order of the above virtual resources; accordingly, the agent The server receives the order request sent by the processing server; step 909, the proxy server generates a virtual resource order corresponding to the order request; step 910, the proxy server sends the virtual resource order to the processing server; accordingly, the processing server Receive the virtual resource order sent by the proxy server; Step 911, the processing server generates an order message carrying the virtual resource order; Step 912, the processing server sends the order message to the message server; accordingly, the message server receives the processing server The sent order message; step 913, the message server stores the order message; step 914, the message server sends the order message to the user terminal; accordingly, the user terminal receives the order message sent by the message server.

需要補充說明的一點是,在本發明實施例中,主要以線上訂購電影票這一應用場景對本發明提供的技術方案進行介紹說明。本發明提 供的技術方案同樣適用於其他產品或服務的線上訂購場景,例如線上訂購演唱會門票、線上訂購演出門票、線上訂購機票、線上訂購各類生活服務、線上訂餐廳、線上叫車,等等。針對上述應用場景,用戶端通過一次獲取全部的訂購要素資訊,並將全部的訂購要素資訊發送給伺服器,以使得伺服器據此生成相應的訂單,從而減少用戶端與伺服器之間的交互次數。 It should be added that in the embodiment of the present invention, the technical solution provided by the present invention is mainly described and described in the application scenario of ordering movie tickets online. The technical solutions provided by the present invention are also applicable to the online ordering scenarios of other products or services, such as online ordering of concert tickets, online ordering of show tickets, online ordering of air tickets, online ordering of various life services, online ordering of restaurants, online taxi calling, etc Wait. For the above application scenarios, the client obtains all the order element information at once and sends all the order element information to the server, so that the server generates the corresponding order accordingly, thereby reducing the interaction between the client and the server frequency.

下述為本發明裝置實施例,可以用於執行本發明方法實施例。對於本發明裝置實施例中未披露的細節,請參照本發明方法實施例。 The following is an embodiment of the device of the present invention, which can be used to execute the method embodiment of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

請參考圖14,其示出了本發明實施例提供的一種資訊獲取裝置的框圖。該裝置具有實現上述方法示例中用戶端側的功能。所述功能可以由硬體實現,也可以由硬體執行相應的軟體實現。該裝置可以包括:第一獲取模組1010、第一發送模組1020和資訊接收模組1030。 Please refer to FIG. 14, which illustrates a block diagram of an information acquisition device provided by an embodiment of the present invention. The device has the function of realizing the user side in the above method example. The function can be realized by hardware, or can be realized by hardware executing corresponding software. The device may include: a first acquisition module 1010, a first sending module 1020, and an information receiving module 1030.

第一獲取模組1010,用於獲取第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊。 The first obtaining module 1010 is used to obtain a first type of user input message, the first type of user input message refers to a user input message carrying all order element information, and the order element information refers to online ordering Necessary information for virtual resources.

第一發送模組1020,用於向伺服器發送所述第一類型的用戶輸入消息。 The first sending module 1020 is configured to send the first type of user input message to the server.

資訊接收模組1030,用於接收所述伺服器在獲取到與所述全部的訂購要素資訊相匹配的虛擬資源之後發送的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。 The information receiving module 1030 is configured to receive the virtual resource information sent by the server after acquiring the virtual resources matching all the order element information, and the virtual resource information is used for online ordering and all Order virtual resources that match the element information.

圖6是根據本發明實施例的一種可選的語音交互裝置的示意圖,如圖6所示,該語音交互裝置主要包括:第一接收單元610,用於接收語音指令,其中,語音指令用 於指示執行第三方應用中的目標操作。 FIG. 6 is a schematic diagram of an optional voice interaction device according to an embodiment of the present invention. As shown in FIG. 6, the voice interaction device mainly includes: a first receiving unit 610, configured to receive voice commands, wherein the voice commands are used to Instruct to perform the target operation in the third-party application.

在基於圖14所示實施例提供的一個可選實施例中,所述裝置還包括:資訊顯示模組。 In an optional embodiment provided based on the embodiment shown in FIG. 14, the device further includes: an information display module.

資訊顯示模組,用於顯示所述虛擬資源資訊。 The information display module is used to display the virtual resource information.

在基於圖14所示實施例提供的另一個可選實施例中,所述裝置還包括:第二獲取模組、第二發送模組、頁面接收模組和頁面顯示模組。 In another optional embodiment provided based on the embodiment shown in FIG. 14, the device further includes: a second acquisition module, a second sending module, a page receiving module, and a page display module.

第二獲取模組,用於獲取第二類型的用戶輸入消息,所述第二類型的用戶輸入消息是指攜帶有部分的訂購要素資訊的用戶輸入消息。 A second acquisition module is used to acquire a second type of user input message, where the second type of user input message refers to a user input message that carries part of the order element information.

第二發送模組,用於向所述伺服器發送所述第二類型的用戶輸入消息。 A second sending module is used to send the second type of user input message to the server.

頁面接收模組,用於接收所述伺服器在識別出所述第二類型的用戶輸入消息之後發送的資訊收集頁面,所述資訊收集頁面用於收集所述全部的訂購要素資訊。可選地,所述資訊收集頁面中包括所述部分的訂購要素資訊。 The page receiving module is configured to receive an information collection page sent by the server after identifying the second type of user input message, and the information collection page is used to collect all the order element information. Optionally, the information collection page includes the partial order element information.

頁面顯示模組,用於顯示所述資訊收集頁面。 The page display module is used to display the information collection page.

在基於圖14所示實施例提供的另一個可選實施例中,所述裝置還包括:第三獲取模組、第三發送模組、頁面接收模組和頁面顯示模組。 In another optional embodiment provided based on the embodiment shown in FIG. 14, the device further includes: a third acquisition module, a third sending module, a page receiving module, and a page display module.

第三獲取模組,用於獲取預設消息。 The third obtaining module is used to obtain preset messages.

第三發送模組,用於向所述伺服器發送所述預設消息。 The third sending module is used to send the preset message to the server.

頁面接收模組,用於接收所述伺服器在識別出所述預設消息之後發送的資訊收集頁面,所述資訊收集頁面用於收集所述全部的訂購要素資訊。 The page receiving module is used to receive an information collection page sent by the server after identifying the preset message, and the information collection page is used to collect all the order element information.

頁面顯示模組,用於顯示所述資訊收集頁面。 The page display module is used to display the information collection page.

可選地,所述資訊收集頁面中包括至少一項訂購要素資訊的推薦資訊,所述訂購要素資訊的推薦資訊根據登錄用戶端的用戶帳號的特徵資訊生成,所述特徵資訊用於指示所述用戶帳號對應的用戶個人特徵。 Optionally, the information collection page includes at least one piece of recommended information for ordering element information, and the recommended information for the ordering element information is generated according to feature information of a user account logged in to the user terminal, and the feature information is used to indicate The personal characteristics of the user corresponding to the account.

在基於圖14所示實施例提供的另一個可選實施例中,所述裝置還包括:第四獲取模組、第四發送模組、回復接收模組和回復展示模組。 In another optional embodiment provided based on the embodiment shown in FIG. 14, the device further includes: a fourth acquisition module, a fourth sending module, a reply receiving module, and a reply display module.

第四獲取模組,用於獲取第三類型的用戶輸入消息,所述第三類型的用戶輸入消息是指未攜帶訂購要素資訊的用戶輸入消息。 A fourth acquisition module is used to acquire a third type of user input message, where the third type of user input message refers to a user input message that does not carry order element information.

第四發送模組,用於向所述伺服器發送所述第三類型的用戶輸入消息;以使得所述伺服器將所述第三類型的用戶輸入消息發送給至少兩個智慧聊天系統,接收各個所述智慧聊天系統發送的對應於所述第三類型的用戶輸入消息的回復消息,並根據各個所述回復消息與所述第三類型的用戶輸入消息之間的匹配度,確定對應於所述第三類型的用戶輸入消息的最終回復消息。 A fourth sending module, configured to send the third type of user input message to the server; so that the server sends the third type of user input message to at least two smart chat systems to receive A reply message corresponding to the third type of user input message sent by each of the smart chat systems, and according to the degree of matching between each of the reply message and the third type of user input message, determine the corresponding The final reply message of the third type of user input message is described.

回復接收模組,用於接收所述伺服器發送的所述最終回復消息。 The reply receiving module is used for receiving the final reply message sent by the server.

回復展示模組,用於展示所述最終回復消息。 The reply display module is used for displaying the final reply message.

相關細節可參考圖2和圖8所述的方法實施例。 For related details, reference may be made to the method embodiments described in FIGS. 2 and 8.

請參考圖15,其示出了本發明實施例提供的一種資訊提供裝置的框圖。該裝置具有實現上述方法示例中伺服器側的功能。所述功能可以由硬體實現,也可以由硬體執行相應的軟體實現。該裝置可以包括:第一接收模組1110、資源獲取模組1120、資訊生成模組1130和資訊發送模組 1140。 Please refer to FIG. 15, which illustrates a block diagram of an information providing apparatus provided by an embodiment of the present invention. This device has the function of implementing the server side in the above method example. The function can be realized by hardware, or can be realized by hardware executing corresponding software. The apparatus may include: a first receiving module 1110, a resource acquiring module 1120, an information generating module 1130, and an information sending module 1140.

第一接收模組1110,用於接收用戶端發送的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊。 The first receiving module 1110 is configured to receive a first type of user input message sent by the user terminal. The first type of user input message refers to a user input message that carries all order element information. Refers to the necessary information required to order virtual resources online.

資源獲取模組1120,用於獲取與所述全部的訂購要素資訊相匹配的虛擬資源。 The resource acquisition module 1120 is used to acquire virtual resources matching all the order element information.

資訊生成模組1130,用於生成用於訂購所述虛擬資源的虛擬資源資訊。 The information generating module 1130 is used to generate virtual resource information for ordering the virtual resource.

資訊發送模組1140,用於向所述用戶端發送所述虛擬資源資訊。 The information sending module 1140 is used to send the virtual resource information to the user terminal.

在基於圖15所示實施例提供的一個可選實施例中,所述裝置還包括:第二接收模組和頁面發送模組。 In an optional embodiment provided based on the embodiment shown in FIG. 15, the device further includes: a second receiving module and a page sending module.

第二接收模組,用於接收所述用戶端發送的第二類型的用戶輸入消息,所述第二類型的用戶輸入消息是指攜帶有部分的訂購要素資訊的用戶輸入消息。 The second receiving module is configured to receive a second type of user input message sent by the user terminal. The second type of user input message refers to a user input message that carries part of the order element information.

頁面發送模組,用於向所述用戶端發送資訊收集頁面,所述資訊收集頁面用於收集所述全部的訂購要素資訊。可選地,所述資訊收集頁面中包括所述部分的訂購要素資訊。 A page sending module is used to send an information collection page to the user terminal, and the information collection page is used to collect all the order element information. Optionally, the information collection page includes the partial order element information.

在基於圖15所示實施例提供的一個可選實施例中,所述裝置還包括:第三接收模組和頁面發送模組。 In an optional embodiment provided based on the embodiment shown in FIG. 15, the device further includes: a third receiving module and a page sending module.

第三接收模組,用於接收所述用戶端發送的預設消息。 The third receiving module is configured to receive the preset message sent by the user terminal.

頁面發送模組,用於向所述用戶端發送資訊收集頁面,所述資訊收集頁面用於收集所述全部的訂購要素資訊。 A page sending module is used to send an information collection page to the user terminal, and the information collection page is used to collect all the order element information.

可選地,所述裝置還包括:特徵獲取模組和資訊生成模組。 Optionally, the device further includes: a feature acquisition module and an information generation module.

特徵獲取模組,用於獲取登錄所述用戶端的用戶帳號的特徵資訊,所述特徵資訊用於指示所述用戶帳號對應的用戶個人特徵。 The feature acquiring module is used to acquire feature information of a user account logged in to the user terminal, and the feature information is used to indicate a user's personal feature corresponding to the user account.

資訊生成模組,用於根據所述用戶帳號的特徵資訊,生成至少一項訂購要素資訊的推薦資訊。 The information generating module is used for generating recommended information of at least one order element information according to the characteristic information of the user account.

其中,所述資訊收集頁面中包括所述訂購要素資訊的推薦資訊。 Wherein, the information collection page includes recommended information of the order element information.

在基於圖15所示實施例提供的另一個可選實施例中,所述裝置還包括:第四接收模組、消息發送模組、回復接收模組、匹配度獲取模組、回復確定模組和回復發送模組。 In another optional embodiment provided based on the embodiment shown in FIG. 15, the device further includes: a fourth receiving module, a message sending module, a reply receiving module, a matching degree acquiring module, and a reply determining module And reply sending module.

第四接收模組,用於接收所述用戶端發送的第三類型的用戶輸入消息,所述第三類型的用戶輸入消息是指未攜帶訂購要素資訊的用戶輸入消息。 The fourth receiving module is configured to receive a third type of user input message sent by the user terminal, where the third type of user input message refers to a user input message that does not carry information about order elements.

消息發送模組,用於將所述第三類型的用戶輸入消息發送給至少兩個智慧聊天系統。 The message sending module is used to send the third type of user input message to at least two smart chat systems.

回復接收模組,用於接收各個所述智慧聊天系統發送的對應於所述第三類型的用戶輸入消息的回復消息。 The reply receiving module is configured to receive reply messages corresponding to the third type of user input messages sent by each of the smart chat systems.

匹配度獲取模組,用於獲取各個所述回復消息與所述第三類型的用戶輸入消息之間的匹配度。 The matching degree obtaining module is used to obtain a matching degree between each reply message and the third type of user input message.

回復確定模組,用於根據所述匹配度確定對應於所述第三類 型的用戶輸入消息的最終回復消息。 The reply determining module is configured to determine a final reply message corresponding to the third type of user input message according to the matching degree.

回復發送模組,用於向所述用戶端發送所述最終回復消息。 The reply sending module is used to send the final reply message to the user terminal.

在基於圖15所示實施例提供的另一個可選實施例中,所述虛擬資源為電影票,所述全部的訂購要素資訊包括:影片名稱、影院名稱、觀影時間和觀影人數。 In another optional embodiment provided based on the embodiment shown in FIG. 15, the virtual resource is a movie ticket, and all the order element information includes: movie name, theater name, movie viewing time, and number of movie viewers.

所述資源獲取模組,包括:場次選取單元和電影票生成單元。 The resource acquisition module includes: a session selection unit and a movie ticket generation unit.

場次選取單元,用於從電影票資料庫中選取與所述影片名稱和所述影院名稱相同、放映時間與所述觀影時間之間的時間間隔小於預設閾值且餘票數量不小於所述觀影人數的放映場次。 The event selection unit is used to select from the movie ticket database the same as the movie name and the theater name, the time interval between the screening time and the viewing time is less than a preset threshold, and the number of remaining tickets is not less than the The number of screenings of the audience.

電影票生成單元,用於從所述放映場次的可選座位中,選擇與所述觀影人數相符的座位,並根據選擇的座位生成所述電影票。 The movie ticket generating unit is configured to select a seat corresponding to the number of viewers from the available seats of the screening, and generate the movie ticket according to the selected seat.

相關細節可參考圖2和圖8所述的方法實施例。 For related details, reference may be made to the method embodiments described in FIGS. 2 and 8.

本發明一示例性實施例還提供了一種資訊獲取系統,該系統包括:用戶端和伺服器。用戶端包括如圖14所示實施例或者基於圖14所示實施例的可選實施例所提供的資訊獲取裝置。伺服器包括如圖15所示實施例或者基於圖15所示實施例的可選實施例所提供的資訊提供裝置。 An exemplary embodiment of the present invention also provides an information acquisition system, which includes: a client and a server. The user terminal includes the information acquisition device provided by the embodiment shown in FIG. 14 or an alternative embodiment based on the embodiment shown in FIG. 14. The server includes the information providing device provided by the embodiment shown in FIG. 15 or an alternative embodiment based on the embodiment shown in FIG. 15.

請參考圖16,其示出了本發明實施例提供的一種資訊獲取裝置的框圖。該裝置具有實現上述方法示例中用戶端側的功能。所述功能可以由硬體實現,也可以由硬體執行相應的軟體實現。該裝置可以包括:介面顯示模組1210、第一獲取模組1220、第一發送模組1230和資訊顯示模組1240。 Please refer to FIG. 16, which shows a block diagram of an information acquisition device provided by an embodiment of the present invention. The device has the function of realizing the user side in the above method example. The function can be realized by hardware, or can be realized by hardware executing corresponding software. The device may include: an interface display module 1210, a first acquisition module 1220, a first sending module 1230, and an information display module 1240.

介面顯示模組1210,用於顯示與訂購伺服器的聊天對話介 面。 The interface display module 1210 is used to display a chat dialogue interface with the order server.

第一獲取模組1220,用於獲取在所述聊天對話介面中輸入的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊。 The first obtaining module 1220 is configured to obtain a first type of user input message input in the chat dialogue interface, where the first type of user input message refers to a user input message carrying all order element information, The order element information refers to necessary information required for ordering virtual resources online.

第一發送模組1230,用於向所述訂購伺服器發送所述第一類型的用戶輸入消息。 The first sending module 1230 is configured to send the first type of user input message to the order server.

資訊顯示模組1240,用於顯示接收到的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。 The information display module 1240 is configured to display the received virtual resource information, and the virtual resource information is used to order online virtual resources that match all the order element information.

在基於圖16所示實施例提供的一個可選實施例中,所述第一獲取模組1220,包括:文字獲取單元,用於獲取在所述聊天對話介面中以文字形式輸入的所述第一類型的用戶輸入消息;或者,語音獲取單元,用於獲取在所述聊天對話介面中以語音形式輸入的所述第一類型的用戶輸入消息;或者,資訊獲取單元,用於獲取在所述聊天對話介面的資訊收集頁面中輸入的所述全部的訂購要素資訊;消息生成單元,用於生成攜帶有所述全部的訂購要素資訊的所述第一類型的用戶輸入消息。 In an optional embodiment provided based on the embodiment shown in FIG. 16, the first obtaining module 1220 includes: a text obtaining unit, configured to obtain the first input in the form of text in the chat dialogue interface A type of user input message; or, a voice acquisition unit for acquiring the first type of user input message input in a voice form in the chat dialogue interface; or, an information acquisition unit for acquiring The all order element information input on the information collection page of the chat dialogue interface; a message generating unit, configured to generate the first type of user input message carrying the all order element information.

在基於圖16所示實施例提供的另一個可選實施例中,所述裝置還包括:第二獲取模組、第二發送模組和頁面顯示模組。 In another optional embodiment provided based on the embodiment shown in FIG. 16, the device further includes: a second acquisition module, a second sending module, and a page display module.

第二獲取模組,用於獲取在所述聊天對話介面中輸入的第二 類型的用戶輸入消息,所述第二類型的用戶輸入消息是指攜帶有部分的訂購要素資訊的用戶輸入消息。 A second acquisition module is used to acquire a second type of user input message input in the chat dialogue interface, where the second type of user input message refers to a user input message carrying part of order element information.

第二發送模組,用於向所述訂購伺服器發送所述第二類型的用戶輸入消息。 A second sending module is used to send the second type of user input message to the order server.

頁面顯示模組,用於在所述聊天對話介面中顯示接收到的所述資訊收集頁面。 The page display module is used to display the received information collection page in the chat dialogue interface.

在基於圖16所示實施例提供的另一個可選實施例中,所述裝置還包括:第三獲取模組、第三發送模組和頁面顯示模組。 In another optional embodiment provided based on the embodiment shown in FIG. 16, the device further includes: a third acquisition module, a third sending module, and a page display module.

第三獲取模組,用於獲取在所述聊天對話介面中輸入的預設消息。 The third obtaining module is used to obtain the preset message input in the chat dialogue interface.

第三發送模組,用於向所述訂購伺服器發送所述預設消息。 The third sending module is used to send the preset message to the order server.

頁面顯示模組,用於在所述聊天對話介面中顯示接收到的所述資訊收集頁面。 The page display module is used to display the received information collection page in the chat dialogue interface.

在基於圖16所示實施例提供的另一個可選實施例中,所述資訊收集頁面中包括至少一項訂購要素資訊的推薦資訊。 In another optional embodiment provided based on the embodiment shown in FIG. 16, the information collection page includes at least one piece of recommended information for ordering element information.

相關細節可參考圖10、圖2和圖8所述的方法實施例。 Relevant details can refer to the method embodiments described in FIG. 10, FIG. 2 and FIG. 8.

需要說明的是,上述實施例提供的裝置在實現其功能時,僅以上述各功能模組的劃分進行舉例說明,實際應用中,可以根據需要而將上述功能分配由不同的功能模組完成,即將設備的內部結構劃分成不同的功能模組,以完成以上描述的全部或者部分功能。另外,上述實施例提供的裝置與方法實施例屬於同一構思,其具體實現過程詳見方法實施例,這裏不再贅述。 It should be noted that when the device provided by the above embodiment realizes its function, it is only exemplified by the division of the above functional modules. In actual applications, the above functions can be allocated by different functional modules according to needs. That is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept. For the specific implementation process, see the method embodiments, and details are not described here.

請參考圖17,其示出了本發明實施例提供的一種終端的結構示意圖。該終端用於實施上述實施例中提供的用戶端側的資訊獲取方法。具體來講:終端1300可以包括RF(Radio Frequency,射頻)電路1310、包括有一個或一個以上電腦可讀儲存介質的記憶體1320、輸入單元1330、顯示單元1340、感測器1350、音頻電路1360、WiFi(wireless fidelity,無線保真)模組1370、包括有一個或者一個以上處理核心的處理器1380、以及電源1390等部件。本領域技術人員可以理解,圖17中示出的終端結構並不構成對終端的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件佈置。其中:RF電路1310可用於收發資訊或通話過程中,信號的接收和發送,特別地,將基站的下行資訊接收後,交由一個或者一個以上處理器1380處理;另外,將涉及上行的資料發送給基站。通常,RF電路1310包括但不限於天線、至少一個放大器、調諧器、一個或多個振盪器、用戶身份模組(SIM)卡、收發信機、耦合器、LNA(Low Noise Amplifier,低雜訊放大器)、雙工器等。此外,RF電路1310還可以通過無線通信與網路和其他設備通信。所述無線通信可以使用任一通信標準或協定,包括但不限於GSM(Global System of Mobile communication,全球移動通訊系統)、GPRS(General Packet Radio Service,通用分組無線服務)、CDMA(Code Division Multiple Access,碼分多址)、WCDMA(Wideband Code Division Multiple Access,寬頻碼分多址)、LTE(Long Term Evolution,長期演進)、電子郵件、SMS(Short Messaging Service,短消息服務)等。 Please refer to FIG. 17, which shows a schematic structural diagram of a terminal according to an embodiment of the present invention. The terminal is used to implement the information acquisition method on the user side provided in the above embodiments. Specifically, the terminal 1300 may include an RF (Radio Frequency, radio frequency) circuit 1310, a memory 1320 including one or more computer-readable storage media, an input unit 1330, a display unit 1340, a sensor 1350, and an audio circuit 1360 , WiFi (wireless fidelity, wireless fidelity) module 1370, including a processor 1380 with one or more processing cores, and a power supply 1390 and other components. Those skilled in the art may understand that the terminal structure shown in FIG. 17 does not constitute a limitation on the terminal, and may include more or fewer components than those illustrated, or combine certain components, or have different component arrangements. Among them: RF circuit 1310 can be used to receive and send signals during the sending and receiving of information or during a call. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 1380 for processing; To the base station. Generally, the RF circuit 1310 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low noise Amplifier), duplexer, etc. In addition, the RF circuit 1310 can also communicate with other devices via a wireless communication network. The wireless communication may use any communication standard or agreement, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access) , Code Division Multiple Access (WCDMA), Wideband Code Division Multiple Access (WCDMA), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), etc.

記憶體1320可用於儲存軟體程式以及模組,處理器1380通過運行儲存在記憶體1320的軟體程式以及模組,從而執行各種功能應用以及資料處理。記憶體1320可主要包括儲存程式區和儲存資料區,其中,儲存程式區可儲存作業系統、至少一個功能所需的應用程式(比如聲音播放功能、圖像播放功能等)等;儲存資料區可儲存根據終端1300的使用所創建的資料(比如音頻資料、電話本等)等。此外,記憶體1320可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如至少一個磁盤記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。相應地,記憶體1320還可以包括記憶體控制器,以提供處理器1380和輸入單元1330對記憶體1320的訪問。 The memory 1320 may be used to store software programs and modules. The processor 1380 executes various functional applications and data processing by running the software programs and modules stored in the memory 1320. The memory 1320 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, applications required for at least one function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may Store materials created according to the use of the terminal 1300 (such as audio materials, phone books, etc.) and so on. In addition, the memory 1320 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk memory device, flash memory device, or other volatile solid-state memory devices. Correspondingly, the memory 1320 may further include a memory controller to provide access to the memory 1320 by the processor 1380 and the input unit 1330.

輸入單元1330可用於接收輸入的數位或字元資訊,以及產生與用戶設置以及功能控制有關的鍵盤、滑鼠、操作杆、光學或者軌跡球信號輸入。可選地,輸入單元1330可包括圖像輸入設備1331以及其他輸入設備1332。圖像輸入設備1331可以是攝像頭,也可以是光電掃描設備。除了圖像輸入設備1331,輸入單元1330還可以包括其他輸入設備1332。可選地,其他輸入設備1332可以包括但不限於物理鍵盤、功能鍵(比如音量控制按鍵、開關按鍵等)、軌跡球、滑鼠、操作杆等中的一種或多種。 The input unit 1330 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Optionally, the input unit 1330 may include an image input device 1331 and other input devices 1332. The image input device 1331 may be a camera or a photoelectric scanning device. In addition to the image input device 1331, the input unit 1330 may include other input devices 1332. Optionally, other input devices 1332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and so on.

顯示單元1340可用於顯示由用戶輸入的資訊或提供給用戶的資訊以及終端1300的各種圖形用戶介面,這些圖形用戶介面可以由圖形、文本、圖示、視頻和其任意組合來構成。顯示單元1340可包括顯示面板1341,可選的,可以採用LCD(Liquid Crystal Display,液晶顯示器)、OLED(Organic Light-Emitting Diode,有機發光二極體)等形式來配置顯示面 板1341。 The display unit 1340 can be used to display information input by the user or provided to the user and various graphical user interfaces of the terminal 1300. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. The display unit 1340 may include a display panel 1341. Alternatively, the display panel 1341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.

終端1300還可包括至少一種感測器1350,比如光感測器、運動感測器以及其他感測器。可選地,光感測器可包括環境光感測器及接近感測器,其中,環境光感測器可根據環境光線的明暗來調節顯示面板1341的亮度,接近感測器可在終端1300移動到耳邊時,關閉顯示面板1341和/或背光。作為運動感測器的一種,重力加速度感測器可檢測各個方向上(一般為三軸)加速度的大小,靜止時可檢測出重力的大小及方向,可用於識別手機姿態的應用(比如橫豎屏切換、相關遊戲、磁力計姿態校準)、振動識別相關功能(比如計步器、敲擊)等;至於終端1300還可配置的陀螺儀、氣壓計、濕度計、溫度計、紅外線感測器等其他感測器,在此不再贅述。 The terminal 1300 may further include at least one sensor 1350, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1341 according to the brightness of the ambient light, and the proximity sensor may be in the terminal 1300 When moving to the ear, the display panel 1341 and / or the backlight is turned off. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used to identify mobile phone gesture applications (such as horizontal and vertical screens) Switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc .; as for terminal 1300, gyro, barometer, hygrometer, thermometer, infrared sensor, etc. can also be configured The sensor will not be repeated here.

音頻電路1360、揚聲器1361,傳聲器1362可提供用戶與終端1300之間的音頻介面。音頻電路1360可將接收到的音頻資料轉換後的電信號,傳輸到揚聲器1361,由揚聲器1361轉換為聲音信號輸出;另一方面,傳聲器1362將收集的聲音信號轉換為電信號,由音頻電路1360接收後轉換為音頻資料,再將音頻資料輸出處理器1380處理後,經RF電路1310以發送給比如另一終端,或者將音頻資料輸出至記憶體1320以便進一步處理。音頻電路1360還可能包括耳塞插孔,以提供外設耳機與終端1300的通信。 The audio circuit 1360, the speaker 1361, and the microphone 1362 can provide an audio interface between the user and the terminal 1300. The audio circuit 1360 can transmit the converted electrical signal of the received audio data to the speaker 1361, which converts the speaker 1361 into a sound signal output; on the other hand, the microphone 1362 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 1360 After receiving, it is converted into audio data, and then processed by the audio data output processor 1380, and then sent to another terminal through the RF circuit 1310, or the audio data is output to the memory 1320 for further processing. The audio circuit 1360 may further include an earplug jack to provide communication between the peripheral earphone and the terminal 1300.

WiFi屬於短距離無線傳輸技術,終端1300通過WiFi模組1370可以幫助用戶收發電子郵件、瀏覽網頁和訪問流式媒體等,它為用戶提供了無線的寬頻互聯網訪問。雖然圖13示出了WiFi模組1370,但是可以理解的是,其並不屬於終端1300的必須構成,完全可以根據需要在不改變發明的本質的範圍內而省略。 WiFi is a short-distance wireless transmission technology. The terminal 1300 can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1370. It provides users with wireless broadband Internet access. Although FIG. 13 shows the WiFi module 1370, it can be understood that it does not belong to the mandatory configuration of the terminal 1300, and can be omitted as needed without changing the scope of the essence of the invention.

處理器1380是終端1300的控制中心,利用各種介面和線路連接整個手機的各個部分,通過運行或執行儲存在記憶體1320內的軟體程式和/或模組,以及調用儲存在記憶體1320內的資料,執行終端1300的各種功能和處理資料,從而對手機進行整體監控。可選的,處理器1380可包括一個或多個處理核心;優選的,處理器1380可集成應用處理器和調製解調處理器,其中,應用處理器主要處理作業系統、用戶介面和應用程式等,調製解調處理器主要處理無線通信。可以理解的是,上述調製解調處理器也可以不集成到處理器1380中。 The processor 1380 is the control center of the terminal 1300, and uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing software programs and / or modules stored in the memory 1320, and calling the programs stored in the memory 1320. Data, execute various functions of terminal 1300 and process data, so as to monitor the mobile phone as a whole. Optionally, the processor 1380 may include one or more processing cores; preferably, the processor 1380 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc. The modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1380.

終端1300還包括給各個部件供電的電源1390(比如電池),優選的,電源可以通過電源管理系統與處理器1380邏輯相連,從而通過電源管理系統實現管理充電、放電、以及功耗管理等功能。電源1390還可以包括一個或一個以上的直流或交流電源、再充電系統、電源故障檢測電路、電源轉換器或者逆變器、電源狀態指示器等任意元件。 The terminal 1300 further includes a power supply 1390 (such as a battery) that supplies power to various components. Preferably, the power supply can be logically connected to the processor 1380 through a power management system, so as to implement functions such as charging, discharging, and power consumption management through the power management system. The power supply 1390 may also include any component such as one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

儘管未示出,終端1300還可以包括藍牙模組等,在此不再贅述。 Although not shown, the terminal 1300 may further include a Bluetooth module and the like, which will not be repeated here.

具體在本實施例中,終端1300還包括有記憶體,以及一個或者一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且經配置以由一個或者一個以上處理器執行。上述一個或者一個以上套裝程式含用於執行上述用戶端側的資訊獲取方法的指令。 Specifically in this embodiment, the terminal 1300 further includes a memory, and one or more programs, where one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more package programs contain instructions for executing the information acquisition method on the client side.

請參考圖18,其示出了本發明實施例提供的一種伺服器的結構示意圖。該伺服器用於實施上述實施例中提供的伺服器側的資訊提供方法。具體來講: 所述伺服器1400包括中央處理單元(CPU)1401、包括隨機存取記憶體(RAM)1402和唯讀記憶體(ROM)1403的系統記憶體1404,以及連接系統記憶體1404和中央處理單元1401的系統匯流排1405。所述伺服器1400還包括幫助電腦內的各個器件之間傳輸資訊的基本輸入/輸出系統(I/O系統)1406,和用於儲存作業系統1413、應用程式1414和其他程式模組1415的大容量儲存設備1407。 Please refer to FIG. 18, which shows a schematic structural diagram of a server according to an embodiment of the present invention. The server is used to implement the server-side information providing method provided in the above embodiment. Specifically, the server 1400 includes a central processing unit (CPU) 1401, a system memory 1404 including a random access memory (RAM) 1402 and a read only memory (ROM) 1403, and a system memory 1404 connected to The system bus 1405 of the central processing unit 1401. The server 1400 also includes a basic input / output system (I / O system) 1406 that helps transfer information between various devices in the computer, and a large storage system for storing the operating system 1413, application programs 1414, and other program modules 1415. Capacity storage device 1407.

所述基本輸入/輸出系統1406包括有用於顯示資訊的顯示器1408和用於用戶輸入消息的諸如滑鼠、鍵盤之類的輸入設備1409。其中所述顯示器1408和輸入設備1409都通過連接到系統匯流排1405的輸入輸出控制器1410連接到中央處理單元1401。所述基本輸入/輸出系統1406還可以包括輸入輸出控制器1410以用於接收和處理來自鍵盤、滑鼠、或電子觸控筆等多個其他設備的輸入。類似地,輸入輸出控制器1410還提供輸出到顯示幕、印表機或其他類型的輸出設備。 The basic input / output system 1406 includes a display 1408 for displaying information and an input device 1409 for a user to input messages such as a mouse and a keyboard. The display 1408 and the input device 1409 are both connected to the central processing unit 1401 through an input and output controller 1410 connected to the system bus 1405. The basic input / output system 1406 may further include an input-output controller 1410 for receiving and processing input from a number of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input output controller 1410 also provides output to a display, printer, or other type of output device.

所述大容量儲存設備1407通過連接到系統匯流排1405的大容量儲存控制器(未示出)連接到中央處理單元1401。所述大容量儲存設備1407及其相關聯的電腦可讀介質為伺服器1400提供非易失性儲存。也就是說,所述大容量儲存設備1407可以包括諸如硬碟或者CD-ROM驅動器之類的電腦可讀介質(未示出)。 The mass storage device 1407 is connected to the central processing unit 1401 through a mass storage controller (not shown) connected to the system bus 1405. The mass storage device 1407 and its associated computer-readable medium provide non-volatile storage for the server 1400. That is, the mass storage device 1407 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.

不失一般性,所述電腦可讀介質可以包括電腦儲存介質和通信介質。電腦儲存介質包括以用於儲存諸如電腦可讀指令、資料結構、程式模組或其他資料等資訊的任何方法或技術實現的易失性和非易失性、可移動和不可移動介質。電腦儲存介質包括RAM、ROM、EPROM、EEPROM、 快閃記憶體或其他固態儲存其技術,CD-ROM、DVD或其他光學儲存、磁帶盒、磁帶、磁片儲存或其他磁性儲存設備。當然,本領域技術人員可知所述電腦儲存介質不局限於上述幾種。上述的系統記憶體1404和大容量儲存設備1407可以統稱為記憶體。 Without loss of generality, the computer-readable medium may include a computer storage medium and a communication medium. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, tape cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art may know that the computer storage medium is not limited to the foregoing types. The above-mentioned system memory 1404 and mass storage device 1407 may be collectively referred to as memory.

根據本發明的各種實施例,所述伺服器1400還可以通過諸如網際網路等網路連接到網路上的遠端電腦運行。也即伺服器1400可以通過連接在所述系統匯流排1405上的網路介面單元1411連接到網路1412,或者說,也可以使用網路介面單元1411來連接到其他類型的網路或遠端電腦系統(未示出)。 According to various embodiments of the present invention, the server 1400 may also be operated by a remote computer connected to the network through a network such as the Internet. That is, the server 1400 can be connected to the network 1412 through the network interface unit 1411 connected to the system bus 1405, or, the network interface unit 1411 can also be used to connect to other types of networks or remote Computer system (not shown).

所述記憶體還包括一個或者一個以上的程式,所述一個或者一個以上程式儲存於記憶體中,且經配置以由一個或者一個以上處理器執行。上述一個或者一個以上套裝程式含用於執行上述伺服器側的資訊提供方法的指令。 The memory also includes one or more programs stored in the memory and configured to be executed by one or more processors. The one or more package programs include instructions for executing the above-mentioned server-side information providing method.

雖然本申請已用較佳實施例揭露如上,然其並非用以限定本申請,本申請所屬技術領域中具有通常知識者,在不脫離本申請之精神和範圍內,當可作各種之更動與潤飾,因此本申請之保護範圍當視後附之申請專利範圍所界定者為準。 Although this application has been disclosed as above with preferred embodiments, it is not intended to limit this application. Those with ordinary knowledge in the technical field to which this application belongs can make various changes without departing from the spirit and scope of this application. Retouching, therefore the scope of protection of this application shall be deemed as defined by the scope of the attached patent application.

Claims (22)

一種資訊獲取方法,所述方法包括:獲取第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;向伺服器發送所述第一類型的用戶輸入消息;接收所述伺服器在獲取到與所述全部的訂購要素資訊相匹配的虛擬資源之後發送的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。     An information acquisition method, the method includes: acquiring a first type of user input message, the first type of user input message refers to a user input message carrying all order element information, and the order element information refers to online Necessary information required for ordering virtual resources; sending the first type of user input message to the server; receiving virtual resource information sent by the server after acquiring virtual resources matching all the order element information , The virtual resource information is used to order online virtual resources that match all the order element information.     如申請專利範圍第1項所述的方法,其中,所述獲取第一類型的用戶輸入消息之前,還包括:獲取第二類型的用戶輸入消息,所述第二類型的用戶輸入消息是指攜帶有部分的訂購要素資訊的用戶輸入消息;向所述伺服器發送所述第二類型的用戶輸入消息;接收所述伺服器在識別出所述第二類型的用戶輸入消息之後發送的資訊收集頁面,所述資訊收集頁面用於收集所述全部的訂購要素資訊;顯示所述資訊收集頁面。     The method according to item 1 of the patent application scope, wherein before acquiring the first type of user input message, the method further comprises: acquiring a second type of user input message, where the second type of user input message refers to Partial user input message for ordering element information; sending the second type of user input message to the server; receiving the information collection page sent by the server after identifying the second type of user input message , The information collection page is used to collect all the order element information; the information collection page is displayed.     如申請專利範圍第1項所述的方法,其中,所述獲取第一類型的用戶輸入消息之前,還包括:獲取預設消息;向所述伺服器發送所述預設消息;接收所述伺服器在識別出所述預設消息之後發送的資訊收集頁面,所 述資訊收集頁面用於收集所述全部的訂購要素資訊;顯示所述資訊收集頁面。     The method according to item 1 of the patent application scope, wherein before acquiring the first type of user input message, the method further includes: acquiring a preset message; sending the preset message to the server; receiving the servo The information collection page sent by the device after identifying the preset message. The information collection page is used to collect all the order element information; the information collection page is displayed.     如申請專利範圍第2至3任一項所述的方法,其中,所述資訊收集頁面中包括至少一項訂購要素資訊的推薦資訊,所述訂購要素資訊的推薦資訊根據登錄用戶端的用戶帳號的特徵資訊生成,所述特徵資訊用於指示所述用戶帳號對應的用戶個人特徵。     The method according to any one of claims 2 to 3, wherein the information collection page includes at least one piece of recommended information for ordering element information, and the recommended information for the ordering element information is based on Feature information is generated, and the feature information is used to indicate the personal characteristics of the user corresponding to the user account.     如申請專利範圍第1至3任一項所述的方法,其中,所述方法還包括:獲取第三類型的用戶輸入消息,所述第三類型的用戶輸入消息是指未攜帶訂購要素資訊的用戶輸入消息;向所述伺服器發送所述第三類型的用戶輸入消息;以使得所述伺服器將所述第三類型的用戶輸入消息發送給至少兩個智慧聊天系統,接收各個所述智慧聊天系統發送的對應於所述第三類型的用戶輸入消息的回復消息,並根據各個所述回復消息與所述第三類型的用戶輸入消息之間的匹配度,確定對應於所述第三類型的用戶輸入消息的最終回復消息;接收所述伺服器發送的所述最終回復消息;展示所述最終回復消息。     The method according to any one of claims 1 to 3, wherein the method further comprises: acquiring a third type of user input message, where the third type of user input message refers to information that does not carry order element information User input message; send the third type of user input message to the server; so that the server sends the third type of user input message to at least two smart chat systems to receive each of the smart A reply message sent by the chat system corresponding to the user input message of the third type, and according to the matching degree between each of the reply message and the user input message of the third type, it is determined to correspond to the third type Of users input the final reply message of the message; receive the final reply message sent by the server; display the final reply message.     如申請專利範圍第1項所述的方法,其中,獲取第一類型的用戶輸入消息包括:接收語音指令,其中,所述語音指令用於指示執行第三方應用中的目標操作;根據所述語音指令向所述第三方應用的服務端發起操作請求,其中, 所述操作請求用於請求所述服務端執行所述目標操作;接收所述服務端回應所述操作請求發送的目標資料,其中,所述目標資料是由所述服務端執行所述目標操作得到的;展示所述目標資料。     The method according to item 1 of the patent application scope, wherein obtaining the first type of user input message includes: receiving a voice instruction, wherein the voice instruction is used to instruct to perform a target operation in a third-party application; according to the voice The instruction initiates an operation request to the server of the third-party application, where the operation request is used to request the server to perform the target operation; receiving target data sent by the server in response to the operation request, wherein, The target data is obtained by the server performing the target operation; displaying the target data.     如申請專利範圍第6項所述的方法,其中,根據所述語音指令向所述第三方應用的服務端發起操作請求包括:提取所述語音指令中的關鍵字;根據所述關鍵字確定所述第三方應用的所述服務端,其中,所述關鍵字與所述第三方應用具有關聯關係;根據所述關鍵字生成所述操作請求;向所述服務端發送所述操作請求,以請求所述服務端執行與所述關鍵字相關的所述目標操作。     The method according to item 6 of the patent application scope, wherein initiating an operation request to the server of the third-party application according to the voice instruction includes: extracting a keyword in the voice instruction; determining the keyword based on the keyword The server of the third-party application, wherein the keyword has an association relationship with the third-party application; generate the operation request according to the keyword; send the operation request to the server to request The server performs the target operation related to the keyword.     如申請專利範圍第7項所述的方法,其中,根據所述關鍵字生成所述操作請求包括:根據所述服務端確定所述服務端採用的通訊協定,其中,所述通訊協定為預先約定的通訊協定;根據所述通訊協定和所述關鍵字生成所述操作請求。     The method according to item 7 of the patent application scope, wherein generating the operation request according to the keyword includes: determining a communication protocol adopted by the server according to the server, wherein the communication agreement is a pre-agreed The communication protocol; generating the operation request according to the communication protocol and the keyword.     如申請專利範圍第6項所述的方法,其中,根據所述語音指令向所述第三方應用的服務端發起操作請求包括:根據所述語音指令向多個所述第三方應用的多個服務端發起所述操作請求;接收所述服務端回應所述操作請求發送的目標資料包括:接收所述多個服務端回應所述操作請求發送的多個資料;按照與所述操作請求相匹配 的預設規則從所述多個資料中篩選出所述目標資料。     The method according to item 6 of the patent application scope, wherein initiating an operation request to the server of the third-party application according to the voice instruction includes: according to the voice instruction, to multiple services of multiple third-party applications The terminal initiates the operation request; receiving the target data sent by the server in response to the operation request includes: receiving a plurality of materials sent by the plurality of servers in response to the operation request; according to the information matching the operation request The preset rule filters out the target data from the plurality of data.     如申請專利範圍第6項所述的方法,其中,展示所述目標資料包括:在用戶端的螢幕上顯示所述目標資料,其中,所述用戶端與所述第三方應用不同;或者在所述用戶端上語音播放所述目標資料。     The method according to item 6 of the patent application scope, wherein displaying the target data includes: displaying the target data on a screen of the user terminal, wherein the user terminal is different from the third-party application; or in the The target material is played by voice on the user terminal.     一種資訊提供方法,述方法包括:接收用戶端發送的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;獲取與所述全部的訂購要素資訊相匹配的虛擬資源;生成用於訂購所述虛擬資源的虛擬資源資訊;向所述用戶端發送所述虛擬資源資訊。     An information providing method, comprising: receiving a first type of user input message sent by a user terminal, the first type of user input message refers to a user input message carrying all order element information, the order element information Refers to the necessary information required for ordering virtual resources online; obtaining virtual resources that match all the order element information; generating virtual resource information for ordering the virtual resources; sending the virtual resources to the client Information.     如申請專利範圍第11項所述的方法,其中,所述接收用戶端發送的第一類型的用戶輸入消息之前,還包括:向所述用戶端發送資訊收集頁面,所述資訊收集頁面用於收集所述全部的訂購要素資訊。     The method according to item 11 of the patent application scope, wherein before receiving the first type of user input message sent by the user terminal, the method further includes: sending an information collection page to the user terminal, the information collection page is used for Collect all the order element information mentioned above.     如申請專利範圍第12項所述的方法,其中,所述向所述用戶端發送資訊收集頁面之前,還包括:獲取登錄所述用戶端的用戶帳號的特徵資訊,所述特徵資訊用於指示所述用戶帳號對應的用戶個人特徵;根據所述用戶帳號的特徵資訊,生成至少一項訂購要素資訊的推薦資訊; 其中,所述資訊收集頁面中包括所述訂購要素資訊的推薦資訊。     The method according to item 12 of the patent application scope, wherein before sending the information collection page to the user terminal, the method further includes: acquiring characteristic information of a user account logged in to the user terminal, and the characteristic information is used to indicate The personal characteristics of the user corresponding to the user account; generating at least one piece of recommended information of order element information according to the characteristic information of the user account; wherein, the information collection page includes recommended information of the order element information.     一種資訊獲取方法,所述方法包括:顯示與訂購伺服器的聊天對話介面;獲取在所述聊天對話介面中輸入的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;向所述訂購伺服器發送所述第一類型的用戶輸入消息;顯示接收到的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。     An information acquisition method, which includes: displaying a chat dialogue interface with an order server; acquiring a first type of user input message entered in the chat dialogue interface, the first type of user input message refers to carrying User input message with all the order element information, the order element information refers to the necessary information required to order virtual resources online; the first type of user input message is sent to the order server; the received virtual information is displayed Resource information, the virtual resource information is used to order online virtual resources that match all the order element information.     如申請專利範圍第14項所述的方法,其中,所述獲取在所述聊天對話介面中輸入的第一類型的用戶輸入消息,包括:獲取在所述聊天對話介面中以文字形式輸入的所述第一類型的用戶輸入消息;或者,獲取在所述聊天對話介面中以語音形式輸入的所述第一類型的用戶輸入消息;或者,獲取在所述聊天對話介面的資訊收集頁面中輸入的所述全部的訂購要素資訊;生成攜帶有所述全部的訂購要素資訊的所述第一類型的用戶輸入消息。     The method according to item 14 of the patent application scope, wherein the acquiring the first type of user input message input in the chat dialogue interface includes: acquiring all the information input in the chat dialogue interface in text form The first type of user input message; or, acquiring the first type of user input message input in the chat conversation interface in a voice form; or, acquiring the information input in the chat conversation interface information collection page Generating all the order element information; generating the first type of user input message carrying the all order element information.     一種資訊獲取裝置,所述裝置包括:第一獲取模組,用於獲取第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊; 第一發送模組,用於向伺服器發送所述第一類型的用戶輸入消息;資訊接收模組,用於接收所述伺服器在獲取到與所述全部的訂購要素資訊相匹配的虛擬資源之後發送的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。     An information acquisition device, the device includes: a first acquisition module for acquiring a first type of user input message, the first type of user input message refers to a user input message carrying all the order element information, The order element information refers to the necessary information required to order virtual resources online; the first sending module is used to send the first type of user input message to the server; the information receiving module is used to receive the servo The virtual resource information sent by the device after acquiring the virtual resources matching all the order element information, the virtual resource information is used to order online the virtual resources matching the all order element information.     如申請專利範圍第16項所述的裝置,其中,所述第一獲取模組包括:第一接收單元,用於接收語音指令,其中,所述語音指令用於指示執行第三方應用中的目標操作;請求單元,用於根據所述語音指令向所述第三方應用的服務端發起操作請求,其中,所述操作請求用於請求所述服務端執行所述目標操作;第二接收單元,用於接收所述服務端回應所述操作請求發送的目標資料,其中,所述目標資料是由所述服務端執行所述目標操作得到的;展示單元,用於展示所述目標資料。     The device according to item 16 of the patent application scope, wherein the first acquisition module includes: a first receiving unit for receiving a voice instruction, wherein the voice instruction is used to instruct execution of a target in a third-party application Operation; request unit, used to initiate an operation request to the server of the third-party application according to the voice instruction, wherein the operation request is used to request the server to perform the target operation; the second receiving unit, used After receiving the target data sent by the server in response to the operation request, wherein the target data is obtained by the server performing the target operation; a display unit is used to display the target data.     一種資訊提供裝置,所述裝置包括:第一接收模組,用於接收用戶端發送的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;資源獲取模組,用於獲取與所述全部的訂購要素資訊相匹配的虛擬資源;資訊生成模組,用於生成用於訂購所述虛擬資源的虛擬資源資訊;資訊發送模組,用於向所述用戶端發送所述虛擬資源資訊。     An information providing device, the device includes: a first receiving module for receiving a first type of user input message sent by a user terminal, the first type of user input message refers to carrying all the order element information The user inputs a message that the order element information refers to the necessary information required to order virtual resources online; the resource acquisition module is used to acquire virtual resources matching all the order element information; the information generation module is used to Generating virtual resource information for ordering the virtual resource; an information sending module for sending the virtual resource information to the user terminal.     一種資訊獲取裝置,所述裝置包括: 介面顯示模組,用於顯示與訂購伺服器的聊天對話介面;第一獲取模組,用於獲取在所述聊天對話介面中輸入的第一類型的用戶輸入消息,所述第一類型的用戶輸入消息是指攜帶有全部的訂購要素資訊的用戶輸入消息,所述訂購要素資訊是指線上訂購虛擬資源所需的必要資訊;第一發送模組,用於向所述訂購伺服器發送所述第一類型的用戶輸入消息;資訊顯示模組,用於顯示接收到的虛擬資源資訊,所述虛擬資源資訊用於線上訂購與所述全部的訂購要素資訊相匹配的虛擬資源。     An information acquisition device includes: an interface display module for displaying a chat dialogue interface with an order server; a first acquisition module for acquiring a first type of user input in the chat dialogue interface Input message, the first type of user input message refers to a user input message that carries all the order element information, and the order element information refers to the necessary information required to order virtual resources online; the first sending module uses Sending the first type of user input message to the order server; an information display module for displaying the received virtual resource information, the virtual resource information for online ordering and all the order element information Matching virtual resources.     一種資訊獲取系統,所述系統包括:用戶端和伺服器;所述用戶端包括如權利要求16所述的資訊獲取裝置;所述伺服器包括如權利要求18所述的資訊提供裝置。     An information acquisition system, the system includes: a client and a server; the client includes the information acquisition device according to claim 16; and the server includes the information provision device according to claim 18.     一種儲存介質,所述儲存介質中儲存有電腦程式,其中,所述電腦程式被設置為運行時執行如申請專利範圍第1至3、6至10任一項中所述的方法。     A storage medium in which a computer program is stored, wherein the computer program is configured to execute the method described in any one of patent application scopes 1 to 3, 6 to 10 when it is run.     一種電子裝置,包括記憶體和處理器,所述記憶體中儲存有電腦程式,所述處理器被設置為通過所述電腦程式執行如申請專利範圍第1至3、6至10任一項中所述的方法。     An electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor is configured to be executed by the computer program as in any one of patent application scopes 1 to 3, 6 to 10 The method.    
TW107106429A 2017-03-02 2018-02-26 Information acquisition method, providing method, device, system, and storage medium TWI683272B (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
??201710123278.1 2017-03-02
CN201710123278.1 2017-03-02
CN201710123278.1A CN108304153A (en) 2017-03-02 2017-03-02 Voice interactive method and device
??201710193668.6 2017-03-28
CN201710193668.6 2017-03-28
CN201710193668.6A CN108306851B (en) 2017-03-28 2017-03-28 Information acquisition method, information providing method, information acquisition device, information providing device and information acquisition system

Publications (2)

Publication Number Publication Date
TW201833845A true TW201833845A (en) 2018-09-16
TWI683272B TWI683272B (en) 2020-01-21

Family

ID=63369776

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107106429A TWI683272B (en) 2017-03-02 2018-02-26 Information acquisition method, providing method, device, system, and storage medium

Country Status (2)

Country Link
TW (1) TWI683272B (en)
WO (1) WO2018157721A1 (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10904178B1 (en) 2010-07-09 2021-01-26 Gummarus, Llc Methods, systems, and computer program products for processing a request for a resource in a communication
US10033672B1 (en) 2012-10-18 2018-07-24 Sitting Man, Llc Methods and computer program products for browsing using a communicant identifier
US10019135B1 (en) 2012-10-18 2018-07-10 Sitting Man, Llc Methods, and computer program products for constraining a communication exchange
CN109117235B (en) 2018-08-24 2019-11-05 腾讯科技(深圳)有限公司 A kind of business data processing method, device and relevant device
CN111582902B (en) * 2019-02-18 2023-07-21 阿里巴巴(北京)软件服务有限公司 Data processing method, service processing method and device
CN112272367B (en) * 2019-05-28 2023-03-07 创新先进技术有限公司 Service calling method and application client
CN112330380B (en) * 2019-07-17 2023-12-12 腾讯科技(深圳)有限公司 Order creation method, order creation device, computer equipment and computer readable storage medium
CN112306589A (en) * 2019-07-29 2021-02-02 阿里巴巴集团控股有限公司 Data processing method, system and equipment
CN110569127B (en) * 2019-09-10 2023-07-04 腾讯科技(深圳)有限公司 Virtual resource transferring, sending and obtaining method and device
CN110809024B (en) * 2019-09-27 2022-06-24 口碑(上海)信息技术有限公司 Service resource providing method and device and subscription package providing method and device
CN110704190A (en) * 2019-09-29 2020-01-17 腾讯科技(深圳)有限公司 Virtual resource processing method, device, equipment and storage medium
CN111080190A (en) * 2019-11-18 2020-04-28 北京小米移动软件有限公司 Takeout order state acquisition method and device and computer readable storage medium
CN111354350B (en) * 2019-12-26 2024-04-05 阿里巴巴集团控股有限公司 Voice processing method and device, voice processing equipment and electronic equipment
CN111242721B (en) * 2019-12-30 2023-10-31 北京百度网讯科技有限公司 Voice meal ordering method and device, electronic equipment and storage medium
CN113472628B (en) * 2020-03-31 2024-02-02 腾讯科技(深圳)有限公司 Information collection control method, device and computer readable storage medium
CN114429383B (en) * 2021-12-30 2023-04-07 广州盖盟达工业品有限公司 Industrial instrument order generation method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184054A (en) * 2007-02-28 2008-05-21 腾讯科技(深圳)有限公司 Method, system and server of implementing product or service reservation through network
CN105139251A (en) * 2015-10-08 2015-12-09 邹春秋 Scenic spot entrance ticket selling device and method
CN105306281B (en) * 2015-12-03 2019-05-14 腾讯科技(深圳)有限公司 Information processing method and client
CN105677822A (en) * 2016-01-05 2016-06-15 首都师范大学 Enrollment automatic question-answering method and system based on conversation robot
CN106227876B (en) * 2016-08-02 2020-03-10 百度在线网络技术(北京)有限公司 Activity arrangement aided decision-making method and device

Also Published As

Publication number Publication date
TWI683272B (en) 2020-01-21
WO2018157721A1 (en) 2018-09-07

Similar Documents

Publication Publication Date Title
TWI683272B (en) Information acquisition method, providing method, device, system, and storage medium
US11270343B2 (en) Method and apparatus for generating targeted label, and storage medium
CN108306851B (en) Information acquisition method, information providing method, information acquisition device, information providing device and information acquisition system
US9659298B2 (en) Systems and methods for informing virtual agent recommendation
WO2017133547A1 (en) Information processing method and device
CN109347722B (en) Interaction system, method, client and background server
US9253134B2 (en) Creating real-time conversations
CN105979312B (en) Information sharing method and device
US11157942B2 (en) Dynamic information presentation system, method, and apparatus, and terminal
WO2017092244A1 (en) Information processing method, client and computer storage medium
CN105103105B (en) Social cover feed interface
US20150211866A1 (en) Place of interest recommendation
US20140026065A1 (en) Transportation service communication method, apparatus and system
CN110418207B (en) Information processing method, device and storage medium
CN110020218B (en) Service information display method and device
US10951923B2 (en) Method and apparatus for provisioning secondary content based on primary content
CN106126570B (en) Information service system
WO2017202238A1 (en) Method, apparatus and system for delivering promotion information, and storage medium
KR101783431B1 (en) Method for providing funding and consulting information related with entertainment by crowd funding system
CN106487655B (en) Message interaction method and device and processing server
US11144971B2 (en) Facilitation of real-time interactive feedback
KR101370543B1 (en) System and Method for waiting service using mobile terminal
CN113839913B (en) Interactive information processing method, related device and storage medium
JP2017033569A (en) System and method of collecting user's feeling and activity on the basis of instant message
CN107358403A (en) A kind of express delivery distribution platform based on big data