Topic Guidance in Conversation
Through the method and device of guiding topics between users and chat engines, the problem of passive interaction mode of existing chat robots is solved, dynamic guidance of dialogues and improvement of user experience are achieved, and business value is provided.
Patent Information
- Application Number
- CN201880057126.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-06-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2038-06-25
AI Technical Summary
The existing chatbot interaction model is mainly based on replying to answers, resulting in a passive and potentially unsatisfactory user experience, and it is difficult to effectively guide the conversation between the user and the chatbot to a specific topic or target topic.
Through methods and devices for guiding topics between users and chat engines, the initial topic is determined and the conversation is gradually guided to the target topic based on the user's response. Related resources or services can be recommended and topics can be dynamically switched until the target topic is reached.
It enhances user interaction experience, provides business value, and meets user needs by gradually recommending high-quality resources or services.
Smart Images

Figure CN111052107B
Abstract
Description
Background Art
[0001] Artificial intelligence (AI) chatbots are becoming more and more popular and are being applied in more and more scenarios. Chatbots are designed to simulate human conversations and can chat with users through text, voice, images, etc. Typically, chatbots can scan keywords in messages entered by users or apply natural language processing to messages, and provide users with responses with the most matching keywords or the most similar wording patterns. Summary of the invention
[0002] The present invention content is provided to introduce the selection of design concepts further described in the detailed description below. It is not intended to identify the key features or important features of the claimed invention subject matter, nor is it intended to be used to limit the scope of the claimed invention subject matter.
[0003] Embodiments of the present disclosure propose methods and devices for guiding topics in a conversation between a user and a chat engine. Determine at least one first topic. Provide a first message to a user based on the at least one first topic so as to guide the conversation to the at least one first topic. Receive a first response to the first message from the user. Determine whether the first response is associated with the at least one first topic. In the case where it is determined that the first response is associated with the at least one first topic, determine at least one second topic based on the at least one first topic. Provide at least one second message based on at least the at least one second topic, wherein if the at least one second topic is associated with a resource or service, the at least one second message includes at least the resource or service.
[0004] It should be noted that one or more of the above aspects include features that are fully described below and specifically pointed out in the claims. The following description and drawings set forth in detail certain illustrative features of one or more aspects. These features are merely indicative of various ways in which the principles of various aspects can be used, and the present disclosure is intended to include all such aspects and their equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The disclosed aspects will be described hereinafter in conjunction with the accompanying drawings, which are provided for the purpose of illustrating the disclosed aspects rather than limiting them.
[0006] Figure 1 According to an embodiment, an exemplary network architecture for deploying a chatbot is shown.
[0007] Figure 2 An exemplary chatbot system is shown according to an embodiment.
[0008] Figure 3An exemplary user interface is shown in accordance with an embodiment.
[0009] Figure 4 An exemplary general subject matter diagram is shown in accordance with an embodiment.
[0010] Figure 5A An exemplary subject map is shown according to an embodiment.
[0011] Figure 5B according to Figure 5A The embodiment of FIG. 1 shows an exemplary chat window between a user and a chatbot for guiding a topic.
[0012] Figure 5C according to Figure 5A The embodiment of shows another exemplary chat window between a user and a chatbot for guiding a topic.
[0013] Fig. 6A Another exemplary subject diagram is shown according to an embodiment.
[0014] Figure 6B according to Fig. 6A The embodiment of FIG. 1 shows an exemplary chat window between a user and a chatbot for guiding a topic.
[0015] Figure 7 An exemplary process for guiding a topic is shown according to an embodiment.
[0016] Figure 8 Another exemplary process for guiding a topic is shown according to an embodiment.
[0017] Fig. 9 A flow chart of an exemplary method for directing a topic in a conversation between a user and a chat engine is shown according to an embodiment.
[0018] Fig.10 According to an embodiment, an exemplary apparatus for directing a topic in a conversation between a user and a chat engine is shown.
[0019] Fig.11 A flow chart of another exemplary method for guiding a topic in a conversation between a user and a chat engine is shown according to an embodiment.
[0020] Fig.12 Another exemplary apparatus for directing a topic in a conversation between a user and a chat engine is shown according to an embodiment.
[0021] Fig.13 According to an embodiment, an exemplary apparatus for guiding a topic in a conversation between a user and a chat engine is shown. DETAILED DESCRIPTION
[0022] The present disclosure will now be discussed with reference to several example implementations. It should be understood that these implementations are discussed only to enable those skilled in the art to better understand and thereby implement embodiments of the present disclosure and do not imply any limitation on the scope of the present disclosure.
[0023] Conversational AI chat systems have been one of the most impressive trends in the field of AI in recent years. In recent years, the interaction pattern between users and open-domain chatbots has been mainly based on providing answers. However, this reply pattern can make the chatbot passive and may bring an unsatisfactory experience.
[0024] The embodiment of the present disclosure proposes a solution that can enable a chatbot to have the ability to gradually guide the conversation between a user and the chatbot to a specific topic or target topic, and optionally, recommend relevant resources to the user, such as articles, music, images, videos or services, such as ticket booking services, software applications, etc. This can enhance the user's interactive experience and can provide or increase business value to the conversation. A conversation can refer to a time-continuous conversation between two chat participants, which can include messages and responses in the conversation. In this article, "message" refers to any information input by one of the chat participants (e.g., a chatbot or a user), such as a query / question / gossip from one chat participant, a chat participant's answer to a question from another chat participant, a document indicated by a chat participant, a chat participant's opinion, etc.; and "response" refers to any information provided by another chat participant (e.g., a user or a chatbot), such as an answer / reply to a question from a chat participant, a chat participant's comment, etc. The term "message" and the term "query" can also be used interchangeably. In this article, "message" and "response" can be used interchangeably, for example, a message can be provided by a user or a chatbot, and a corresponding response can be provided by a chatbot or a user.
[0025] A specific topic or target topic may be associated with a resource or service, such as a recommended product, a subscription service, one or more partner applications, etc., and may be guided by a chatbot from an initial topic that may be unrelated to a resource or service. Topics that are unrelated to a resource or service may also be referred to as "implicit topics" in this article. For example, in a scenario of a conversation between a user and a chatbot, the chatbot may first provide an initial topic to the user, and guide the conversation from the initial topic to a specific or target topic based at least on the user's response. The target topic may also be referred to as an "explicit topic" associated with a resource or service in this article. Such topic guidance may be controlled by the chatbot, and topics may be dynamically switched during the conversation until the target topic is reached. In addition, the chatbot may deliver high-quality resources or services by step-by-step recommendations, which may be easily accepted by the user and may satisfy the user's experience.
[0026] Figure 1 An exemplary network architecture 100 for deploying a chatbot is shown according to an embodiment.
[0027] exist Figure 1 In the example, the network 110 is applied to the interconnection between the terminal device 120 and the chat robot server 130.
[0028] The network 110 may be any type of network capable of interconnecting network entities. The network 110 may be a single network or a combination of various networks. In terms of coverage, the network 110 may be a local area network (LAN), a wide area network (WAN), etc. In terms of a carrier medium, the network 110 may be a wired network, a wireless network, etc. In terms of data exchange technology, the network 110 may be a circuit switching network, a packet switching network, etc.
[0029] The terminal device 120 may be any type of electronic computing device that can connect to the network 110, evaluate a server or website on the network 110, process data or signals, etc. For example, the terminal device 120 may be a desktop computer, a laptop computer, a tablet computer, a smart phone, an AI terminal, etc. Figure 1 Only one terminal device is shown in FIG. 1 , but it should be understood that a different number of terminal devices may be connected to the network 110 .
[0030] In one implementation, the terminal device 120 can be used by a user. The terminal device 120 can include a chatbot client 122, which can provide an automatic chat service for the user. In some cases, the chatbot client 122 can interact with a chatbot server 130. For example, the chatbot client 122 can send a message to the chatbot server 130, and receive a response associated with the message from the chatbot server 130. However, it should be understood that: in other cases, the chatbot client 122 can also locally generate a response to the message input by the user, rather than interacting with the chatbot server 130.
[0031] The chatbot server 130 may be connected to or include a chatbot database 140. The chatbot database 140 may include information that may be used by the chatbot server 130 to generate messages and / or responses.
[0032] It should be understood that: Figure 1 All network entities shown in FIG. 1 are exemplary, and any other network entities may be involved in the application scenario 100 depending on specific application requirements.
[0033] Figure 2 An exemplary chatbot system 200 is shown according to an embodiment.
[0034] The chatbot system 200 may include a user interface (UI) 210 for presenting a chat window. The chatbot may use the chat window to interact with the user.
[0035] The chatbot system 200 may include a core processing module 220. The core processing module 220 is configured to provide processing capabilities during operation of the chatbot by cooperating with other modules of the chatbot system 200.
[0036] The chatbot system 200 can obtain the message in the chat window and store the message in the message queue 230. The message can have various multimedia forms, such as text, voice, image, video, etc.
[0037] The core processing module 220 can process the messages in the message queue 230 in a first-in-first-out manner. The core processing module 220 can call the processing units in the application program interface (API) module 240 to process messages in various forms. The API module 240 may include a text processing unit 241, a voice processing unit 242, an image processing unit 243, etc.
[0038] For a text message, the text processing unit 241 may perform text understanding on the text message, and the core processing module 220 may further determine a text response.
[0039] For a voice message, the voice processing unit 242 may perform voice-to-text conversion on the voice message to obtain a text sentence, the text processing unit 241 may perform text understanding on the obtained text sentence, and the core processing module 220 may further determine a text response. If it is determined to provide a response in voice, the voice processing unit 242 may perform text-to-speech conversion on the text response to generate a corresponding voice response.
[0040] For an image message, the image processing unit 243 may perform image recognition on the image message to generate corresponding text, and the core processing module 220 may further determine a text response. In some cases, the image processing unit 243 may also be used to obtain an image response based on the text response.
[0041] In addition, although not Figure 2 , but the API module 240 may also include any other processing units. For example, the API module 240 may include a video processing unit for cooperating with the core processing module 220 to process the video message and determine the response.
[0042] The core processing module 220 may determine the response through the database 250. The database 250 may include a plurality of index items that the core processing module 220 may search to determine the response.
[0043] The database 250 may include a pure chat index set 251. The pure chat index set 251 may include index items prepared for free chat between a chatbot and a user, and may be established using data from, for example, a social network. The index items in the pure chat index set 251 may or may not be in the form of a question-answer (QA) pair, such as <question, answer>. A question-answer pair may also be referred to as a message-response pair.
[0044] The database 250 may include a topic graph 252. In this article, the topic graph 252 may refer to a single topic graph or multiple topic graphs in various domains. The topic graph 252 may reflect the distribution and transfer of conversation topics that can be learned from a large number of chat conversation corpora. Each topic in the topic graph may be indicated by a word or phrase in a message. Each topic may be displayed as a node in the topic graph. The topic graph 252 may be constructed by utilizing various word alignment models (e.g., IBM's word alignment model 1) across different domains.
[0045] There may be certain types of topics in a topic graph, such as an initial topic, an intermediate topic, and a target topic, or an implicit topic, an explicit topic. In this article, an intermediate topic may refer to a node in a topic graph that is interconnected between an initial topic and a target topic and may not be associated with a resource or service. An implicit topic may refer to an initial topic or an intermediate topic that is not associated with a resource or service. In contrast, an explicit topic may refer to a target topic that may be associated with a resource or service to be transmitted.
[0046] Database 250 may include user profile 253. User profile 253 may include personalized information of the user. For example, user profile 253 may include the user's gender, age, location information, topics of interest, hobbies, preferences, etc.
[0047] Database 250 may include a conversation log 254. Conversation log 254 may include a conversation context between a chatbot and a user, such as messages from a user or a chatbot during a current conversation or a previous conversation, responses of a chatbot or a user during a current conversation or a previous conversation, etc. Herein, conversation context may refer to a record of conversation content in a conversation.
[0048] Database 250 may include data set 255. Data set 255 may include various types of resource or service information from various partner entities. Herein, "resource" may refer to content related to the product to be recommended to the user, such as documents, articles, music, images, videos, etc.; "service" may refer to any service provided by, for example, a partner entity, such as various ticket booking services, travel services, ordering services, etc. A partner entity may be a producer, seller or provider of goods or a provider of services, from which the chatbot may obtain information about services or resources.
[0049] The chatbot system 200 may include a module set 260, which is a collection of functional modules that can be operated by the core processing module 220 to generate or obtain messages and / or responses.
[0050] The module set 260 may include a correlation module 261, which may be configured to determine the correlation of messages and responses to ensure relevant responses to the messages. The correlation of messages and responses may be determined by any existing techniques, for example, by question-answer (QA) pairs.
[0051] The module set 260 may include a topic determination module 262. The topic determination module 262 may be configured to determine topics during a conversation, such as implicit topics and / or explicit topics in a topic map. For example, the initial implicit topic may be determined based at least on the conversation context in the conversation log 254 and / or the user profile in the user profile 253. As an alternative, the initial implicit topic during the conversation may be randomly selected from the topic map. As another example, the intermediate implicit topic may be determined based at least on one or more of the correlations between the conversation context, the user profile, the intermediate implicit topic, and the initial implicit topic. As another example, the explicit topic may be determined based at least on one or more of the correlations between the conversation context, the user profile, the explicit topic and the initial implicit topic and / or the intermediate implicit topic. In this article, the correlation between the intermediate implicit topic and the initial implicit topic, and the correlation between the explicit topic and the initial implicit topic and / or the intermediate implicit topic include one or more of the following: causal relationship, coordinate relationship, substitution relationship, transition relationship, progressive relationship, up-down relationship, contrast relationship, etc., and may also indicate the weight between the two topics.
[0052] The module set 260 may include a message providing module 263. The message providing module 263 may be configured to provide a message including the determined topic during the conversation.
[0053] The module set 260 may include a delivery module 264. The delivery module 264 may be configured to deliver resources or services based on explicit topics.
[0054] The core processing module 220 can provide the generated responses to the response queue or response cache 232. For example, the response cache 232 can ensure that the response sequence can be displayed in a predefined time stream. Assuming that the core processing module 220 generates no less than two responses for the message, a time delay setting for the response may be necessary. For example, if the message input by the user is "Did you eat your breakfast?", two responses may be generated, for example, the first response "Yes, I ate bread" and the second response "How about you? Still feeling hungry?" In this case, through the response cache 232, the chatbot can ensure that the first response is provided to the user immediately. In addition, the chatbot can ensure that the second response is provided with a time delay such as 1 or 2 seconds, so that the second response will be provided to the user 1 or 2 seconds after the first response. In this way, the response cache 232 can manage the responses to be sent and the appropriate timing for each response.
[0055] The responses in the response queue or response cache 232 may be further transmitted to the UI 210 so that the responses may be displayed to the user in a chat window.
[0056] It should be understood that: Figure 2 All elements shown in the chatbot system 200 are exemplary, and any shown element may be omitted and any other elements may be involved in the chatbot system 200 depending on specific application requirements.
[0057] Figure 3 An exemplary user interface 300 is shown in accordance with an embodiment.
[0058] The user interface 300 may be included in a terminal device and may include a chatbot icon 310, a rendering area 320, a control area 330, and an input area 340. The chatbot icon 310 may be a photo or picture representing the chatbot, such as a logo, name, and homepage URL of the chatbot. The rendering area 320 may display a chat window, which may contain messages and responses in a conversation between a user and the chatbot. The control area 330 may include a plurality of virtual buttons for the user to perform message input settings. For example, the user may choose to perform voice input, attach image files, select emoticons, make shortcuts to the current screen, activate the camera, and conduct a voice call or video conversation with the chatbot through the control area 330. The input area 340 may be used by the user to input messages. For example, the user may type text through the input area 340. The user interface 300 may also include a virtual button 350 for confirming the sending of the input message. If the user touches the virtual button 350, the message entered in the input area 340 may be sent to the rendering area 320.
[0059] It should be understood that: Figure 3 All elements and their layout shown in are exemplary. Depending on specific application requirements, Figure 3 The user interface in the can omit or add any elements, and Figure 3 The layout of the elements in the user interface in can also be changed in various ways. For example, although the messages and responses are shown in text form in the presentation area 320, the messages and responses can also be in voice form. Therefore, the chatbot and the user can chat by voice.
[0060] Figure 4 An exemplary general subject matter diagram is shown in accordance with an embodiment.
[0061] In this article Figure 4In the following figures, the italicized content in the blocks of the topic map represents explicit topics or target topics, and the content in other blocks of the topic map represents implicit topics, such as initial implicit topics or intermediate implicit topics. Figure 4 There are five explicit themes in total, namely "Package Tour", "Budget Tour", "Self-Driving Travel", "Do-It-Yourself Tour" and "Travel", and Figure 4 There are ten implicit topics in the data set, for example, the topics "Car", "CarClub", "Short Trip", "Airplane", "Train", "Passenger Station", "Long Journey", "Global Travel", "Travel Service" and "Travel Around".
[0062] A line with an arrow between two nodes in the topic graph represents the correlation between two topics in the topic graph, where the arrow represents guidance or switching between the two topics.
[0063] by Figure 4 For example, the topic diagram 400 in FIG. 1 shows the topic guidance from the current topic or initial implicit topic “Car” to the target topic “Travel”. In this example, the target topic “Travel” has four sub-target topics “Package Tour”, “Budget Tour”, “Self-Driving Travel” and “Do-It-Yourself Tour”. For each sub-target topic, there are several initial or intermediate implicit topics connected to it. For example, Figure 4As shown in the figure, the implicit topic "Car" can be connected to several implicit topics, such as "Car Club", "Short Trip", "Airplane", "Train", and several explicit topics, such as "Do-It-Yourself Tour", "Self-Driving Travel" and "Budget Tour". In addition, the implicit topics "Long Journey" and "Passenger Station" are not connected to the implicit topic "Car"; that is, in this topic graph, these topics "Long Journey" and "Passenger Station" are not associated with the topic "Car".
[0064] In the exemplary topic graph, different relevance weights may exist between different topic pairs. Figure 4 In the example shown, the relevance weight between the topic "Car" and the topic "Self-Driving Travel" may be the highest among the relevance weights between the topic "Car" and each other topic. This means that when the current topic is "Car", the next possible topic to switch to may be the topic "Self-Driving Travel". Alternatively, during topic guidance or conversation switching, when determining the next topic to switch to from the current topic, the topic with the second highest relevance weight relative to the current topic may be selected instead of the topic with the highest relevance weight. For example, in Figure 4 In the example shown, the relevance weight between the topic "Car" and the topic "Budget Tour" may be the second highest. During topic switching, the next topic to be switched from the current topic "Car" may be selected as "Budget Tour". The next topic to be switched from the current topic during a conversation herein may be selected or determined by utilizing any suitable means.
[0065] It should be understood that: Figure 4 All topics shown in FIG. 4 are exemplary, and any other topics may be included in topic map 400 depending on specific application requirements.
[0066] Figure 5AAn exemplary topic graph 500 is shown according to an embodiment. For simplicity, the exemplary topic graph 500 is given as a simple example. In this article, there is only one explicit topic "Chocolate" in the topic graph 500, which is associated with a resource such as the document "How to make chocolate at home". There are two implicit topics "Snacks" and "Flower" in the topic graph 500, wherein both the topics "Snacks" and "Flower" are associated with the explicit topic "Chocolate", and the two implicit topics "Snacks" and "Flower" are not connected to each other.
[0067] It should be understood that: Figure 5A All topics shown in are exemplary, and any other topics may be included in the topic map 500 depending on specific application requirements, and there may be more than one explicit topic or one or more implicit topics in the topic map.
[0068] Figure 5B according to Figure 5A The embodiment of FIG. 5 shows an exemplary chat window 510 between a user and a chatbot for guiding a topic.
[0069] In the exemplary chat window 510, the conversation can be initiated by the chatbot, for example, by the chatbot saying "Hi! It's time for snacks", as shown at 511 in the chat window 510. Alternatively, the conversation can be initiated by the user, for example, by the user saying "Hi", shown at 511' in the chat window 510 by a dotted box. The initial topic "Snacks" is determined by the chatbot and presented to the user through the first message "Hi! It's time for snacks", which indicates that the topic is "Snacks". The initial topic "Snacks" is called an implicit topic related to the topic map 500 because the topic is not associated with any resource or service. The first response provided by the user to the first message provided by the chatbot is "That's great" shown at 512. Based on the response from the user, the chatbot may determine that the first response is associated with the implicit topic "Snacks" (which indicates that the user is interested in the topic), and determine further topics, such as the explicit topic "Chocolate" shown in topic map 500. The explicit topic may be indicated in the second message "Would you like some chocolate? It's very delicious" and may be provided to the user by presenting the second message via the user interface (as shown at 513). The topic "Chocolate" is associated with the article "How to make chocolate at home", which is also referred to as a target topic.
[0070] The user provides a second response to the second message as shown at 514: "No, thanks. It's not good for my fitness plan", and this response may be considered a negative response to the target / displayed topic. Based on the second response from the user, the chatbot can determine that the user is not interested in the explicit topic "Chocolate" and may not transmit the document "How to make chocolate at home". The chatbot can then determine a new topic, such as "Nut", which is not shown in the topic map 500, and indicate the new topic in the message "How about nuts? It's good for fitness", as shown at 515, wherein such a message indicating a new topic can be generated based at least on the negative response from the user to the previous explicit topic. Alternatively, the chatbot can end the conversation or target topic by providing a message such as "Oh, you are a strong willed person", as shown at 515'.
[0071] Figure 5C according to Figure 5A The embodiment of FIG. 5 shows another exemplary chat window 520 between a user and a chatbot for guiding a topic.
[0072] like Figure 5C As shown, the user indicated by the dashed box 521' in the chat window 510 saying "Hi" can be similar to Figure 5B 511' in. When the chatbot provides the first message "Hi! It's time for snacks" as shown at 521, similar to 511, the user may not be interested in the topic "Snacks" indicated in the first message. For example, the user may respond or reply with "I have lots of work to do", which may not be associated with the topic "Snacks", as shown at 522. When the chatbot determines that the response from the user is not associated with the topic provided by the chatbot, it can switch the topic from the current implicit topic to another implicit topic. For example, as Figure 5C Combination Figure 5A As shown in the topic graph in Figure 2, the chatbot can determine another implicit topic as "Flower" and switch the topic from "Snacks" to "Flower". Figure 5AThe topic "Flower" shown in the example is connected to the explicit topic "Chocolate" and is not connected to the current implicit topic "Snacks". The determined implicit topic "Flower" can be indicated in the second message by the word "Rose", such as Figure 5CAs shown. The second message "OK. Give you some roses as gift. It will bring a good mood" can be provided by the chatbot, wherein the topic "Flower" is indicated by the word "Rose" in the second message, as shown at 523. The user may be interested in the topic "Flower" and provide or present a second response to the chatbot as "Oh, yes. Rose is beautiful and brings happiness", which is associated with the topic "Flower", as shown at 524. Based on this response from the user, the chatbot can determine that the response from the user is associated with the topic "Flower", which indicates that the user is interested in the topic "Flower" indicated by the word "Rose" in the message, and can determine the explicit topic "Chocolate" based at least on the response and the previous topic "Flower" of the explicit topic in the connected topic graph. The determined explicit topic is indicated in a third message and provided by the chatbot to the user, such as "I also think so. How about chocolate? It tastes good and can make you pleasure", as shown at 525. The explicit topic is associated with a resource such as the document "How to make chocolate at home". The user provides or presents the message "Chocolate? It's very delicious", as shown at 526, which is associated with the explicit topic "Chocolate" to respond to the previous message provided by the chatbot. Upon receiving the message from the user, the chatbot can determine that the user is interested in the explicit topic "Chocolate" and can start the process for transmitting the document by providing a message as shown at 527, "I've got a method for making chocolate by oneself. I will share it with you and you can make chocolate yourself at home".
[0073] In this case, during the process for transmitting the document, there may be different responses from the user to the message provided by the chatbot, such as Figure 5C . In an exemplary case, the user may give a positive response to the resource about chocolate, such as "That's great. Thank you", as shown at 528. Based on this positive response from the user, the chatbot may perform the task by providing or uploading the document "How to make chocolate at home" to the user. Alternatively, before the chatbot performs the process for transmitting the document, it may have several rounds of chatting with the user about the target topic determined in the conversation.
[0074] As another exemplary case, the user may give a negative response to the chocolate resource, such as "I like chocolate, but I don't like to make it by myself", as shown at 528'. Upon receiving such a negative response, the chatbot may determine that the user is not interested in the resource or service associated with the target topic. Based on such a determination, the chatbot may end the conversation by saying, for example, "You are so lazy. Well, I will make it at home alone", as shown at 529, or may provide the user with another topic, Figure 5C Not shown.
[0075] Fig. 6A Another exemplary topic graph 600 is shown according to an embodiment. In this article, there is only one explicit topic "On a Diet" in the topic graph 600, which is associated with a resource or service such as the document "How to cook delicious vegetable dish". There are three implicit topics "Dinner", "Meat" and "Lose Appetite" in the topic graph 600. Fig. 6A As shown, the current topic or initial implicit topic “Dinner” is connected to the intermediate implicit topic “Meat”, and the intermediate implicit topic “Meat” is in turn connected to another intermediate implicit topic “Lose Appetite”. The intermediate implicit topic “Lose Appetite” is connected to the target topic “On a Diet”, as shown in topic diagram 600.
[0076] It should be understood that: Fig. 6A All topics shown in the topic map 600 are exemplary, and any other topics may be involved in the topic map 600 depending on specific application requirements, and there may be more than one explicit topic or one or more implicit topics in the topic map.
[0077] Figure 6B according to Fig. 6A The embodiment of FIG. 6 shows an exemplary chat window 610 between a user and a chatbot for guiding a topic.
[0078] In the exemplary chat window 610, the conversation may be initiated by the chatbot, for example, by the chatbot saying "It's late now. Did you have dinner?" as shown at 611 in the chat window 610. Alternatively, the conversation may be initiated by the user, for example, by the user saying "I'm off the get off work," as shown by the dashed box at 611' in the chat window 610. The initial topic "Dinner" is determined by the chatbot and presented to the user through the first message "It's late now. Did you have dinner?", which indicates the determined topic "Dinner". The initial topic "Dinner" is referred to as an implicit topic connected to the topic graph 600 because the topic is not associated with any resource or service. The user provides a first response to the first message at 611, "Not yet, I'm hungry now", which is associated with the topic "Dinner", as shown at 612. Based on the response from the user, the chatbot can determine that the response from the user is associated with the topic "Dinner", which indicates that the user is interested in the implicit topic "Dinner", and determine further topics, such as the implicit topic "Meat" shown in the topic map 600. The implicit topic can be indicated by the second message "Having some meat" and provided to the user by presenting the second message via the user interface, as shown at 613. This topic "Meat" is not associated with any resource or service, and it is also called an intermediate implicit topic. The user provides a second response to the chatbot's second message, "I'm greedy now. What about you? Have dinner already?", which is associated with the topic "Meat", as shown at 614. Upon receiving the second response, the chatbot may determine that the user is interested in the intermediate implicit topic "Meat". Based on such a determination, the chatbot may determine another intermediate implicit topic "Lose Appetite", which is indicated by the phrase "lost my appetite" in the third message. The chatbot may generate and provide or present a third message indicating the intermediate implicit topic "Lose Appetite", i.e., "Just finished eating. But I've lost my appetite lately.Any recommendations? (Just finished. But I lost my appetite recently. Any recommendations?)", as shown at 615. The user can chat with the chatbot and give a third response to the chatbot such as "Fishis a good choice", which is associated with the topic "Lose Appetite". Based on the third response received from the user, the chatbot can determine that the user continues to be interested in the further implicit topic "Lose Appetite". Based on this determination, the chatbot can determine the explicit topic or target topic "On a Diet" and provide the explicit topic to the user by indicating the explicit topic in the message "I'm on a diet...", as shown at 617. From the user's response "You? (You?)” As shown at 618, the chatbot can determine that the response from the user is associated with the topic “On a Diet”, which indicates that the user is interested in the explicit topic “On a Diet”, and can start a process for transmitting resources or services, for example, the document “How to cook delicious vegetable dish”. After chatting with the user through one or more rounds of dialogue (as shown in 619, 620, 621), the chatbot can transmit or upload the document “How to cook delicious vegetable dish” to the user. Optionally, after transmitting the resource or service, the chatbot can receive feedback on the resource or service from the user, for example, “Thank you. It's helpful”, as shown at 622 in the chat window 610.
[0079] Although each message shown in the above example includes only one topic, it should be understood that the chatbot can determine several different topics at a time, and each message or response provided by the chatbot can include several different topics. It should also be understood that any message or response herein can also be generated based on at least the user profile, the conversation context.
[0080] Figure 7 According to an embodiment, an exemplary process 700 for guiding a topic is shown. In one implementation, the exemplary process 700 can be performed by a chatbot during a conversation between the chatbot and a user. Through the process 700, the current topic can be switched or guided to another topic during the conversation.
[0081] At 702, the chatbot can determine topic 1 based at least on the user profile and / or the conversation context from the topic map. In this example, this topic 1 can be an implicit topic.
[0082] Optionally, a message may be received from the user before step 702. In this document, a message may refer to one or more current or latest messages from the user. The message may be in the form of text, voice, image, etc. Since a voice or image message may be converted into a corresponding text message, the following discussion will take a text message as an example.
[0083] At 704, when implicit topic 1 is determined, a message can be generated and / or provided to the user indicating the implicit topic 1. Implicit topic 1 can be indicated by a word or phrase in the message.
[0084] At 706, a response 1 to message 1 may be received from the user. Based on the received response 1, the chatbot may determine at 708 whether response 1 is associated with implicit topic 1, which may indicate whether topic 1 is of interest to the user.
[0085] If the result is determined to be “yes” in 708 , the process may proceed to step 710 .
[0086] At 710, since response 1 is associated with implicit topic 1 indicating that the user is interested in topic 1, the chatbot can determine topic 2 based on implicit topic 1, such as Figure 5A the theme "Chocolate" as shown in , or Fig. 6A In addition, Topic 2 may be determined based on at least one of a conversation context, a user profile, a correlation between Topic 2 and Topic 1, and any combination thereof.
[0087] When the topic 2 is determined, at 712, at least one message 2 may be provided based at least on the topic 2. The at least one message 2 may indicate the topic 2 through a word or a phrase in the at least one message 2.
[0088] At 714, the chatbot may determine whether Topic 2 is associated with a resource or service, ie, whether Topic 2 is an explicit topic.
[0089] If the determination is "no", meaning that Topic 2 is not an explicit topic, the process may proceed to 716. At 716, the chatbot may determine Topic 3, which may be associated with a service or resource and may be considered an explicit topic, e.g. Fig. 6A "Lose Appetite" as shown in the video.
[0090] At 718, at least one message 3 indicates the determined topic 3 and / or includes resources or services that can be generated by the chatbot or provided to the user based at least on the topic 3. If an explicit topic 3 is determined, the process can proceed to step 722.
[0091] Alternatively, if the determination is “yes”, that is, Topic 2 is an explicit topic, the process may proceed to 720. At 720, based on the explicit topic 2, the chatbot may include a resource or service in at least one message 2.
[0092] When the user receives Message 2 or Message 3, the user may provide or present Response 2 to Message 2 or Response 3 to Message 3. Accordingly, at 722, the chatbot may receive Response 2 or Response 3 from the user.
[0093] At 724, the chatbot may determine whether to transfer the resource or service based at least on Response 2 or Response 3. For example, if Response 2 or Response 3 is a positive response, it may indicate that the user is interested in the resource or service. If the response is a negative response, it may indicate that the user is not interested in the resource or service.
[0094] Based on the determination result, there may be different operations. For example, as shown at 726, if the determination result is "no", the chatbot may not transfer the resource or service. If, as shown at 728, the determination result is "yes", the chatbot may continue to transfer the resource or service.
[0095] Optionally, at 730 , the user may provide feedback on the resource or service, so the chatbot may receive feedback from the user to improve the resource or service accordingly.
[0096] Will be in Figure 8 An exemplary case where the determination result in 708 is "No" is described in FIG.
[0097] Figure 8 Another exemplary process 800 for guiding a topic is shown according to an embodiment.
[0098] Steps 702-708 and Figure 7 , but may not be shown in Figure 8 These steps are described in .
[0099] If the result of the determination in 708 is “NO”, the process may proceed to step 802 .
[0100] At 802, the chatbot may determine topic 4 based on topic 1. Topic 4 may not be associated with topic 1 and may be shown as not connected to topic 1 in the topic graph, as shown in FIG. Figure 5AThe implicit subject "Flower" shown in .
[0101] At 804 , after determining topic 4 , the chatbot may generate or provide message 4 to the user based on topic 4 , where topic 4 may be indicated by words or phrases in message 4 .
[0102] At 806, the chatbot may receive a response 4 from the user to the message 4. Such a response 4 may or may not be associated with the topic 4.
[0103] At 808, the chatbot may determine whether the response 4 received from the user is associated with topic 4, which indicates whether the user is interested in topic 4. Herein, the response 4 associated with topic 4 means that the user is interested in topic 4, otherwise it means that the user is not interested in topic 4.
[0104] Depending on the determination result, there may be different operations. For example, as shown at 810, if the determination result in 808 is "no", that is, the response is not associated with topic 4 (which indicates that the user is not interested in topic 4), the chatbot may determine that the new implicit topic 6 is not associated with a resource or service, and may continue to perform steps similar to the previous process for guiding the conversation from the implicit topic to the explicit topic, such as Figure 7 Like in.
[0105] If the result of the determination in 808 is "yes", the chatbot can determine topic 5 based on at least topic 4 at 812, which can be associated with a resource or service and can be considered an explicit topic, such as Fig. 6A and Figure 6B When an explicit topic is determined, the process can continue with the same process as, for example, Figure 7 Steps similar to the previous process for delivering resources or services.
[0106] Fig. 9 A flow chart of an exemplary method 900 for directing a topic in a conversation between a user and a chat engine is shown according to an embodiment.
[0107] At least one first topic can be determined in the conversation at 910. Such topic determination can be combined with a topic map.
[0108] At 920, a first message may be provided to the user based at least on at least one first topic. In some implementations, the first message may be used to direct the conversation to the at least one first topic.
[0109] At 930, a first response to the first message can be received from the user. In some implementations, the first response can be associated with the first topic.
[0110] At 940, it is determined whether the first response is associated with at least one first topic.
[0111] At 950, in the event that it is determined that the first response is associated with at least one first topic: at least one second topic can be determined based on the at least one first topic; and at least one second message can be provided based at least on the at least one second topic, wherein, if the at least one second topic is associated with a resource or service, the at least one second message includes at least the resource or service.
[0112] In one implementation, if at least one second topic is not associated with a resource or service, the method may also include: determining at least one third topic based on the at least one second topic, the at least one third topic being associated with the resource or service; and providing at least one third message based at least on the at least third topic, wherein the at least third message may at least include the resource or service.
[0113] In one implementation, the at least one first topic may be determined based on at least one of the conversation context and the user profile. In one implementation, the at least one second topic may also be determined based on at least one of the following: the conversation context, the user profile, the correlation between the at least one second topic and the at least one first topic. In some implementations, the at least one third topic may also be determined based on at least one of the following: the conversation context, the user profile, the correlation between the at least one third topic and the at least one second topic.
[0114] In one implementation, each of the correlations between at least one second theme and at least one first theme and the correlations between at least one third theme and at least one second theme may include at least one of the following: a causal relationship, a coordinate relationship, a substitution relationship, a transition relationship, a progressive relationship, a top-bottom relationship, and a contrast relationship.
[0115] In one implementation, the first message may also be provided based on at least one of the conversation context and the user profile, and wherein at least one second message may also be provided based on at least one of the conversation context, the user profile, and the first response.
[0116] In one implementation, at least one first topic may be indicated by a word or phrase in a first message, and at least one second topic may be indicated by a word or phrase in at least one second message.
[0117] In one implementation, the method may also include: in the case of determining that the first response is not associated with at least one first topic: determining at least one fourth topic; providing a fourth message to the user based on the at least one fourth topic; receiving a fourth response to the fourth message from the user; determining whether the fourth response is associated with the fourth topic; and in the case of determining that the fourth response is associated with the fourth topic: determining at least one fifth topic based on the at least one fourth topic, and providing at least one fifth message based at least on the at least one fifth topic, wherein, if the at least one fifth topic is associated with a resource or service, the at least one fifth message includes at least the resource or service.
[0118] In one implementation, the fourth message may also be provided based on the first response, and the fifth message may also be provided based on the fourth response.
[0119] In one implementation, at least one fourth topic may be indicated by a word or phrase in a fourth message, and at least one fifth topic may be indicated by a word or phrase in at least one fifth message.
[0120] In one implementation, the at least one fourth topic may be determined based on at least one of the conversation context and the user profile. In one implementation, the at least one fifth topic may be determined based on at least one of the following: the conversation context, the user profile, the correlation between the at least one fifth topic and the at least one fourth topic.
[0121] In one implementation, the method may further include: receiving at least one second response to the at least one second message from the user; and determining whether to transfer the resource or service based on the at least one second response.
[0122] In one implementation, in the case where it is determined to transmit the resource or service, the method may further include: receiving feedback on the resource or service from the user.
[0123] It should be understood that method 900 may also include any steps / processes for guiding topics in a conversation between a user and a chat engine according to embodiments of the present disclosure as described above.
[0124] Fig.10 According to an embodiment, an exemplary apparatus 1000 for guiding a topic in a conversation between a user and a chat engine is shown.
[0125] The device 1000 may include: a first topic determination module 1010, which is used to determine at least one first topic; a first message providing module 1020, which is used to provide a first message to a user based on the at least one first topic so as to guide the conversation to the at least one first topic; a first response receiving module 1030, which is used to receive a first response to the first message from the user; an association determination module 1040, which is used to determine whether the first response is associated with the at least one first topic; a second topic determination module 1050, which is used to determine at least one second topic based on the at least one first topic when it is determined that the first response is associated with the at least one first topic; and a second message providing module 1060, which is used to provide at least one second message based on at least the at least one second topic, wherein, if the at least one second topic is associated with a resource or service, the at least one second message may at least include the resource or service.
[0126] In one implementation, if the at least one second topic is not associated with a resource or service, the device may also include: a third topic determination module, which is used to determine at least one third topic based on the at least one second topic, and the at least one third topic is associated with the resource or service; and a third message providing module, which is used to provide at least one third message based at least on the at least third topic, wherein the at least third message may at least include the resource or service.
[0127] In one implementation, the at least one first topic can be determined based on at least one of the conversation context and the user profile, the at least one second topic can be determined based on at least one of the following: the conversation context, the user profile, and the correlation between the at least one second topic and the at least one first topic, and the at least one third topic can be determined based on at least one of the following: the conversation context, the user profile, and the correlation between the at least one third topic and the at least one second topic.
[0128] In one implementation, in the case where it is determined that the first response is not associated with the at least one first topic, the device may further include: a fourth topic determination module for determining at least one fourth topic; a fourth message providing module for providing a fourth message to the user based on the at least one fourth topic so as to guide the conversation from the at least one first topic to the at least one fourth topic; a fourth response receiving module for receiving a fourth response to the fourth message from the user. In one implementation, the association determination module 1040 may also be used to determine whether the fourth response is associated with the fourth topic. In one implementation, in the case where it is determined that the fourth response is associated with the fourth topic, the device may further include: a fifth topic determination module for determining at least one fifth topic based on the at least one fourth topic; and a fifth message providing module for providing at least one fifth message based at least on the at least one fifth topic, wherein if the at least one fifth topic is associated with a resource or service, the at least one fifth message includes the resource or service.
[0129] In one implementation, the at least one fourth topic can be determined based on at least one of the conversation context and the user profile, and the at least one fifth topic can also be determined based on at least one of the following: the conversation context, the user profile, and the correlation between the at least one fifth topic and the at least one fourth topic.
[0130] In one implementation, the apparatus 1000 may further include: a second response receiving module for receiving at least one second response to the at least one second message from a user; and a transmission determination module for determining whether to transmit the resource or service based on the at least one second response.
[0131] In one implementation, in the case where it is determined to transmit a resource or service, the apparatus may further include: a receiving module, configured to receive feedback on the resource or service from a user.
[0132] In addition, the apparatus 1000 may further include any other modules configured to guide a topic in a conversation between a user and a chat engine according to the embodiments of the present disclosure as described above.
[0133] Fig.11 A flow chart of another exemplary method 1100 for directing a topic in a conversation between a user and a chat engine is shown according to an embodiment.
[0134] At 1110, a first message may be provided to the user based at least on at least one first topic. In some implementations, the first message may be used to direct the conversation to the at least one first topic.
[0135] At 1120, a first response to the first message can be received from the user. In some implementations, the first response can be associated with the at least one first topic.
[0136] At 1130, in a case where the first response is associated with the at least one first topic, at least one second message may be provided to the user based at least on at least one second topic, wherein, if the at least one second topic is associated with a resource or service, the at least one second message may include at least the resource or service.
[0137] It should be understood that method 1100 may also include any steps / processes for guiding topics in a conversation between a user and a chat engine according to embodiments of the present disclosure as described above.
[0138] Fig.12 Another exemplary apparatus 1200 for directing a topic in a conversation between a user and a chat engine is shown according to an embodiment.
[0139] The device 1200 may include: a first message providing module 1210, which is used to provide a first message to a user based on at least one first topic; a first response receiving module 1220, which is used to receive a first response to the first message from the user; and a second message providing module 1230, which is used to: when the first response is associated with the at least one first topic, provide at least one second message based on at least one second topic, wherein if the at least one second topic is associated with a resource or service, the at least one second message includes at least the resource or service.
[0140] In addition, the apparatus 1200 may further include any other modules configured to guide a topic in a conversation between a user and a chat engine according to the embodiments of the present disclosure as described above.
[0141] Fig.13 According to an embodiment, an exemplary apparatus for guiding a topic in a conversation between a user and a chat engine is shown.
[0142] The apparatus 1300 may include one or more processors 1310 and a memory 1320 storing computer executable instructions.
[0143] In one implementation, when executing computer-executable instructions, one or more processors 1310 can be configured to: determine at least one first topic; provide a first message to a user based on the at least one first topic; receive a first response to the first message from the user; determine whether the first response is associated with the at least one first topic; and in the case of determining that the first response is associated with the at least one first topic, determine at least one second topic based on the at least one first topic; and if the at least one second topic is associated with a resource or service, provide at least one second message based at least on the at least one second topic.
[0144] In another implementation, when executing computer-executable instructions, one or more processors 1310 may also be configured to: provide a first message to a user, the first message being based on at least one first topic; receive a first response to the first message from the user; and provide at least one second message to the user based on at least one second topic when the first response is associated with the at least one first topic, wherein if the at least one second topic is associated with a resource or service, the at least one second message may include at least the resource or service.
[0145] Embodiments of the present disclosure may be embodied as non-transitory computer-readable media. The non-transitory computer-readable media may include instructions that, when executed, cause one or more processors to perform any operations of the method for providing responses to a user in a question-and-answer session according to embodiments of the present disclosure as described above.
[0146] It should be understood that all operations in the above methods are merely exemplary, and the present disclosure is not limited to any operations in these methods or the sequential order of these operations, and should cover all other equivalent items under the same or similar concepts.
[0147] It should also be understood that all modules in the above-mentioned device can be implemented in various ways. These modules can be implemented as hardware, software or a combination thereof. In addition, any one of these modules can be further divided into submodules or combined together in terms of function.
[0148] It should be understood that any reference to elements herein using designations such as "first," "second," and the like does not generally limit the number or order of those elements. Rather, these designations may be used herein as a convenient method of distinguishing between two or more elements or between some instances of an element. Thus, reference to a first element and a second element does not mean that only two elements are used herein, or that the first element must be placed before the second element in some manner.
[0149] Processors have been described in conjunction with various devices and methods. These processors can be implemented using electronic hardware, computer software, or any combination thereof. Whether these processors are implemented as hardware or software will depend on specific applications and the overall design constraints imposed on the system. By way of example, the processors provided in this disclosure, any part of the processors, or any combination of processors can be implemented using microprocessors, microcontrollers, digital signal processors (DSPs), field programmable gate arrays (FPGAs), programmable logic devices (PLDs), state machines, gated logic, discrete hardware circuits, and other suitable processing components configured to perform the various functions described throughout this disclosure. The functions of the processors provided in this disclosure, any part of the processors, or any combination of processors can be implemented using software executed by a microprocessor, microcontrollers, DSPs, or other suitable platforms.
[0150] Software should be broadly interpreted as meaning instructions, instruction sets, codes, code segments, program codes, programs, subroutines, software modules, applications, software applications, software packages, routines, subroutines, objects, execution threads, processes, functions, etc. Software can be located on a computer-readable medium. For example, a computer-readable medium can include a memory, such as a magnetic storage device (e.g., a hard disk, a floppy disk, a tape), an optical disk, a smart card, a flash memory device, a random access memory (RAM), a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), a register, or a removable disk. Although the memory is shown as being separated from the processor in various aspects provided throughout the present disclosure, the memory can be inside the processor, for example, a cache or a register.
[0151] The foregoing description is provided to enable any person skilled in the art to implement the various aspects described herein. Various modifications to these aspects will be apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. Therefore, the claims are not intended to be limited by the aspects shown herein. All structures and functions that are known or will be known to those of ordinary skill in the art and are equivalent to the elements of the various aspects described throughout this disclosure are expressly incorporated herein by reference and are intended to be included in the claims.
Claims
1. A method for directing a conversation between a user and a chat engine to a topic associated with a resource or service, the method comprising: determining at least one first topic for the conversation from a topic graph, wherein the topic graph includes a set of nodes for interconnected topics and reflects conversation topic distribution and transitions learned from a large corpus of chat conversations; providing a first message to the user based on the at least one first topic; receiving a first response to the first message from the user; determining whether the first response is associated with the at least one first topic; and In the event that it is determined that the first response is associated with the at least one first topic: determining the at least one second topic from the topic map based on a relevance weight between the at least one second topic and the at least one first topic; and At least one second message is provided based at least on the at least one second topic, wherein if the at least one second topic is associated with a resource or a service, the at least one second message includes at least the resource or the service.
2. The method according to claim 1, wherein: If the at least one second topic is not associated with the resource or service, the method further comprises: determining at least one third theme based on the at least one second theme, the at least one third theme being associated with the resource or service; and At least one third message is provided based at least on the at least one third topic, wherein the at least one third message includes at least the resource or the service.
3. The method according to claim 2, wherein: The at least one first topic is determined based on at least one of a conversation context and a user profile, The at least one second topic is further determined based on at least one of the following: a conversation context, a user profile, a relevance between the at least one second topic and the at least one first topic, and The at least one third topic is also determined based on at least one of the following: a conversation context, a user profile, a correlation between the at least one third topic and the at least one second topic.
4. The method according to claim 3, wherein: Each of the correlations between the at least one second theme and the at least one first theme and the correlations between the at least one third theme and the at least one second theme includes at least one of the following: a causal relationship, a coordinate relationship, a substitution relationship, a transition relationship, a progressive relationship, a top-bottom relationship, and a contrast relationship.
5. The method according to claim 1, wherein: The first message is provided further based on at least one of a conversation context and a user profile, and wherein the at least one second message is provided further based on at least one of the conversation context, the user profile, and the first response.
6. The method according to claim 1, wherein: The at least one first topic is indicated by a word or phrase in the first message, and the at least one second topic is indicated by a word or phrase in the at least one second message.
7. The method according to claim 1, further comprising: In the event that it is determined that the first response is not associated with the at least one first topic: Identify at least one fourth theme; providing a fourth message to the user based on the at least one fourth topic; receiving a fourth response to the fourth message from the user; determining whether the fourth response is associated with the fourth topic; as well as In the event that it is determined that the fourth response is associated with the fourth topic: determining at least one fifth theme based on the at least one fourth theme, and At least one fifth message is provided based at least on the at least one fifth topic, wherein if the at least one fifth topic is associated with a resource or a service, the at least one fifth message includes at least the resource or the service.
8. The method according to claim 7, wherein: The fourth message is provided further based on the first response, and the at least one fifth message is provided further based on the fourth response.
9. The method according to claim 7, wherein: The at least one fourth topic is indicated by a word or phrase in the fourth message, and the at least one fifth topic is indicated by a word or phrase in the at least one fifth message.
10. The method according to claim 7, wherein: The at least one fourth topic is determined based on at least one of the conversation context and the user profile, The at least one fifth topic is determined based on at least one of the following: a conversation context, a user profile, a correlation between the at least one fifth topic and the at least one fourth topic.
11. The method according to claim 1, further comprising: receiving at least one second response to the at least one second message from the user; as well as A determination is made whether to transfer the resource or service based on the at least one second response.
12. The method according to claim 11, wherein: In the case where it is determined to transmit the resource or service, the method further includes: receiving feedback on the resource or service from the user.
13. An apparatus for directing a conversation between a user and a chat engine to a topic associated with a resource or service, comprising: at least one processor; as well as a memory including instructions that, when executed by the at least one processor, cause the at least one processor to: determining at least one first topic for the conversation from a topic graph, wherein the topic graph includes a set of nodes for interconnected topics and reflects conversation topic distribution and transitions learned from a large corpus of chat conversations; providing a first message to the user based on the at least one first topic so as to direct the conversation to the at least one first topic; receiving a first response to the first message from the user; determining whether the first response is associated with the at least one first topic; In the event that it is determined that the first response is associated with the at least one first topic: determining the at least one second topic from the topic map based on a relevance weight between the at least one second topic and the at least one first topic; and At least one second message is provided based at least on the at least one second topic, wherein if the at least one second topic is associated with a resource or a service, the at least one second message includes at least the resource or the service.
14. The device according to claim 13, wherein: If the at least one second topic is not associated with the resource or service, the memory further includes the following instructions, which when executed by the at least one processor, cause the at least one processor to perform the following operations: determining at least one third theme based on the at least one second theme, the at least one third theme being associated with the resource or service; and At least one third message is provided based at least on the at least one third topic, wherein the at least one third message includes at least the resource or the service.
15. The device according to claim 14, wherein: The at least one first topic is determined based on at least one of a conversation context and a user profile, The at least one second topic is further determined based on at least one of the following: a conversation context, a user profile, a relevance between the at least one second topic and the at least one first topic, and The at least one third topic is further determined based on at least one of the following: a conversation context, a user profile, a correlation between the at least one third topic and the at least one second topic.
16. The apparatus according to claim 13, wherein, in the case where it is determined that the first response is not associated with the at least one first topic, the memory further comprises the following instructions, which when executed by the at least one processor, cause the at least one processor to perform the following operations: Identify at least one fourth theme; providing a fourth message to the user based on the at least one fourth topic so as to direct the conversation from the at least one first topic to the at least one fourth topic; receiving a fourth response to the fourth message from the user; determining whether the fourth response is associated with the at least one fourth topic; as well as In the event that it is determined that the fourth response is associated with the at least one fourth topic, the memory further includes instructions that, when executed by the at least one processor, cause the at least one processor to perform the following operations: determine at least one fifth topic based on the at least one fourth topic; as well as At least one fifth message is provided based at least on the at least one fifth topic, wherein if the at least one fifth topic is associated with a resource or a service, the at least one fifth message includes the resource or the service.
17. The device according to claim 16, wherein: The at least one fourth topic is determined based on at least one of the conversation context and the user profile, The at least one fifth topic is further determined based on at least one of the following: a conversation context, a user profile, a correlation between the at least one fifth topic and the at least one fourth topic.
18. The apparatus of claim 13, wherein the memory further comprises the following instructions, which when executed by the at least one processor, cause the at least one processor to perform the following operations: receiving at least one second response to the at least one second message from the user; and A determination is made whether to transfer the resource or service based on the at least one second response.
19. The device according to claim 18, wherein: In the case where it is determined to transmit the resource or service, the memory further includes the following instructions, which, when executed by the at least one processor, enable the at least one processor to perform the following operations: receiving feedback on the resource or service from the user.
20. A method for directing a conversation between a user and a chat engine to a topic associated with a resource or service, comprising: providing a first message to the user, the first message being based on at least one first topic for the conversation, the at least one first topic being determined from a topic graph, wherein the topic graph comprises a set of nodes for interconnected topics and reflects a distribution and transition of conversation topics learned from a large corpus of chat conversations; receiving a first response to the first message from the user; In a case where the first response is associated with the at least one first topic, at least one second message is provided to the user based on at least one second topic, wherein the at least one second topic is determined from the topic graph based on a correlation weight between the at least one second topic and the at least one first topic, wherein if the at least one second topic is associated with a resource or service, the at least one second message includes at least the resource or service.
