[go: up one dir, main page]

TWI838316B - Generative chatbot system for virtual community and method thereof - Google Patents

Generative chatbot system for virtual community and method thereof Download PDF

Info

Publication number
TWI838316B
TWI838316B TW112135680A TW112135680A TWI838316B TW I838316 B TWI838316 B TW I838316B TW 112135680 A TW112135680 A TW 112135680A TW 112135680 A TW112135680 A TW 112135680A TW I838316 B TWI838316 B TW I838316B
Authority
TW
Taiwan
Prior art keywords
message
response
chat
virtual community
host
Prior art date
Application number
TW112135680A
Other languages
Chinese (zh)
Other versions
TW202514430A (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
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW112135680A priority Critical patent/TWI838316B/en
Application granted granted Critical
Publication of TWI838316B publication Critical patent/TWI838316B/en
Publication of TW202514430A publication Critical patent/TW202514430A/en

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

A generative chatbot system for virtual community and method thereof is disclosed. By connecting to a virtual community through a client for receiving chat messages, and generating an operational interface for entering a custom command when detecting a trigger signal, and then transmitting the chat messages and the custom command to a server, so that the server to integrate the chat messages into a context message with temporal logic, and transmitting the context message along with the custom command from the server to an artificial intelligence (AI) device to generate at least one response message. Subsequently, the server stores the at least one response message from the AI device in a response list and filters them, and allowing the client to select one to output to the virtual community. The mechanism is help to reduce the impact of chat interaction due to personality, eloquence or unfamiliar topics.

Description

虛擬社群應答情境下的生成式聊天機器人之系統及其方法System and method for generative chatbot in virtual community response context

本發明涉及一種聊天機器人之系統及其方法,特別是虛擬社群應答情境下的生成式聊天機器人之系統及其方法。The present invention relates to a chatbot system and method, and in particular to a generative chatbot system and method in a virtual community response context.

近年來,隨著網際網路的普及與蓬勃發展,各種網際網路的應用便如雨後春筍般地湧現。其中,又以虛擬社群(Virtual Community)最為常見。In recent years, with the popularization and rapid development of the Internet, various Internet applications have sprung up like mushrooms after rain. Among them, virtual communities are the most common.

一般而言,傳統的虛擬社群通常是通過網際網路與其他使用者進行互動,例如:聊天、討論等等。然而,由於不同的使用者,其個性、口條及知識儲備等等皆不相同,所以在一開始參與聊天時,或者是在聊到不熟悉的主題時,可能會有參與聊天的障礙,導致無話可說或冷場的情況發生,也就是說,聊天容易因個性、口才或遭遇不熟悉的話題時,導致聊天互動性不佳的問題。Generally speaking, traditional virtual communities usually involve interactions with other users through the Internet, such as chatting, discussing, etc. However, since different users have different personalities, eloquence, and knowledge reserves, there may be obstacles to participating in the chat at the beginning, or when discussing unfamiliar topics, resulting in a lack of words or a dull chat. In other words, chats are prone to poor interactivity due to personality, eloquence, or unfamiliar topics.

有鑑於此,倘若能夠偵測虛擬社群的互動,並且根據互動內容主動給予合適的應答建議或提示,將可有效輔助使用者進行順暢的聊天。舉例來說,在虛擬社群的多人對話環境中,當大家的聊天主題切換到不是自己熟悉的知識領域時,倘若有一個作為聊天分身的聊天機器人,能夠主動且快速地給予使用者合適的對話建議。如此一來,將可有效改善使用者在虛擬社群的聊天互動性。In view of this, if the interaction in the virtual community can be detected and appropriate response suggestions or prompts can be given based on the content of the interaction, it will be able to effectively assist users in having a smooth chat. For example, in a multi-person conversation environment in a virtual community, when the topic of the chat changes to a knowledge field that they are not familiar with, if there is a chat robot that acts as a chat avatar, it can actively and quickly give users appropriate conversation suggestions. In this way, the chat interactivity of users in the virtual community can be effectively improved.

綜上所述,可知先前技術在長期以來一直存在聊天容易因個性、口才或遭遇不熟悉的話題時,導致聊天互動性不佳的問題,因此實有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the prior art has long had the problem that chat interaction is poor due to personality, eloquence or unfamiliar topics. Therefore, it is necessary to propose improved technical means to solve this problem.

本發明揭露一種虛擬社群應答情境下的生成式聊天機器人之系統及其方法。The present invention discloses a system and method for a generative chat robot in a virtual social group response context.

首先,本發明揭露一種虛擬社群應答情境下的生成式聊天機器人之系統,此系統包含:人工智慧裝置、客戶端主機及伺服端主機。其中,人工智慧裝置用以通過應用程式介面(Application Programming Interface, API)接收具有時序邏輯的上下文訊息,以及接收自訂指令,並且將上下文訊息及自訂指令一併輸入至大型語言模型(Large Language Model, LLM)以產生應答訊息,再通過應用程式介面傳送應答訊息。所述客戶端主機包含:第一非暫態電腦可讀儲存媒體及第一硬體處理器。其中,第一非暫態電腦可讀儲存媒體用以儲存多個第一電腦可讀指令;以及第一硬體處理器電性連接所述第一非暫態電腦可讀儲存媒體,用以執行第一電腦可讀指令,使客戶端主機執行:連接虛擬社群,並且持續在虛擬社群中擷取多個聊天訊息,每一所述聊天訊息包含時間訊息、使用者名稱及聊天字串;持續偵測觸發訊號,並且在偵測到觸發訊號時,產生操作介面以供鍵入自訂指令,並且傳送每一所述聊天訊息及自訂指令;以及當接收到應答提示訊息時,將所述應答提示訊息顯示於操作介面,並且允許在所述應答提示訊息中任選其一以輸出至虛擬社群。接著,在伺服端主機的部分,其連接人工智慧裝置及客戶端主機,所述伺服端主機包含:第二非暫態電腦可讀儲存媒體及第二硬體處理器。其中,第二非暫態電腦可讀儲存媒體用以儲存多個第二電腦可讀指令;以及第二硬體處理器電性連接第二非暫態電腦可讀儲存媒體,用以執行所述多個第二電腦可讀指令,使伺服端主機執行:當接收到來自客戶端主機的每一所述聊天訊息時,根據時間訊息判斷聊天字串的先後順序、根據使用者名稱判斷虛擬社群的聊天人數,以及根據聊天字串的關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將每一所述聊天訊息整合為具有時序邏輯的上下文訊息;將所述上下文訊息及接收到的自訂指令通過應用程式介面傳送至人工智慧裝置,並且自所述人工智慧裝置接收相應的應答訊息以儲存至應答清單;以及自動從應答清單中,選擇及載入應答訊息至少其中之一以作為應答提示訊息。First, the present invention discloses a system of a generative chatbot in a virtual social group response scenario, the system comprising: an artificial intelligence device, a client host and a server host. The artificial intelligence device is used to receive contextual information with timing logic and custom instructions through an application programming interface (API), and input the contextual information and custom instructions into a large language model (LLM) to generate a response message, and then transmit the response message through the application programming interface. The client host comprises: a first non-transient computer-readable storage medium and a first hardware processor. The first non-transitory computer-readable storage medium is used to store a plurality of first computer-readable instructions; and the first hardware processor is electrically connected to the first non-transitory computer-readable storage medium to execute the first computer-readable instructions, so that the client host executes: connecting to the virtual community and continuously capturing a plurality of chat messages in the virtual community, each of the chat messages including time information, The system comprises a user name and a chat string; continuously detecting a trigger signal, and when a trigger signal is detected, generating an operation interface for inputting a custom command, and transmitting each of the chat messages and the custom command; and when a response prompt message is received, displaying the response prompt message on the operation interface, and allowing the selection of any one of the response prompt messages to be output to the virtual community. Then, in the server host part, it is connected to the artificial intelligence device and the client host, and the server host includes: a second non-transient computer-readable storage medium and a second hardware processor. The second non-transitory computer-readable storage medium is used to store a plurality of second computer-readable instructions; and the second hardware processor is electrically connected to the second non-transitory computer-readable storage medium to execute the plurality of second computer-readable instructions, so that the server host executes: when receiving each chat message from the client host, determining the sequence of the chat string according to the time message, determining the number of chatters in the virtual community according to the user name, and determining the number of chatters according to the chat string. The method comprises the steps of: determining the current chat topic and logic based on the keywords of the chat string, and integrating each chat message into a context message with timing logic according to the determination result; transmitting the context message and the received customized command to the artificial intelligence device through the application program interface, and receiving the corresponding response message from the artificial intelligence device to store it in the response list; and automatically selecting and loading at least one of the response messages from the response list as a response prompt message.

另外,本發明還揭露一種虛擬社群應答情境下的生成式聊天機器人之方法,其步驟包括:將伺服端主機分別與人工智慧裝置及客戶端主機相互連接,其中,人工智慧裝置具有應用程式介面;當客戶端主機連接虛擬社群時,持續在此虛擬社群中擷取多個聊天訊息,每一所述聊天訊息包含時間訊息、使用者名稱及聊天字串;客戶端主機持續偵測觸發訊號,並且在偵測到觸發訊號時,產生操作介面以供鍵入自訂指令,並且將每一所述聊天訊息及自訂指令傳送至伺服端主機;伺服端主機接收到來自客戶端主機的每一所述聊天訊息時,根據時間訊息判斷聊天字串的先後順序、根據使用者名稱判斷虛擬社群的聊天人數,以及根據聊天字串的關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將每一所述聊天訊息整合為具有時序邏輯的上下文訊息;伺服端主機將上下文訊息及接收到的自訂指令通過應用程式介面傳送至人工智慧裝置;人工智慧裝置將接收到的上下文訊息及自訂指令一併輸入至大型語言模型以產生應答訊息,並且將所述應答訊息傳送至伺服端主機;伺服端主機將接收到的應答訊息儲存至應答清單,並且自動從所述應答清單中,選擇及載入所述應答訊息至少其中之一以作為應答提示訊息且顯示於操作介面;以及客戶端主機允許從載入的應答提示訊息中任選其一以輸出至虛擬社群。In addition, the present invention also discloses a method for generating a chatbot in a virtual social group response scenario, the steps of which include: connecting a server host to an artificial intelligence device and a client host respectively, wherein the artificial intelligence device has an application program interface; when the client host is connected to the virtual social group, continuously capturing multiple chat messages in the virtual social group, each of the chat messages including time information, user The client host continuously detects the trigger signal, and when the trigger signal is detected, generates an operation interface for inputting a custom command, and transmits each of the chat messages and the custom command to the server host; when the server host receives each of the chat messages from the client host, it determines the sequence of the chat strings according to the time information, determines the virtual community according to the user name, and determines the chat string sequence according to the user name. The number of chat participants in the group, and the current chat topic and logic are determined based on the keywords in the chat string, and each of the chat messages is then integrated into a context message with timing logic based on the determination result; the server host transmits the context message and the received custom command to the artificial intelligence device through the application program interface; the artificial intelligence device inputs the received context message and the custom command into the large language model to generate a response message, and transmits the response message to the server host; the server host stores the received response message in a response list, and automatically selects and loads at least one of the response messages from the response list as a response prompt message and displays it on the operation interface; and the client host allows any one of the loaded response prompt messages to be selected for output to the virtual community.

本發明所揭露之系統與方法如上,與先前技術的差異在於本發明是透過客戶端主機連接虛擬社群以接收聊天訊息,並且在偵測到觸發訊號時,產生操作介面以供鍵入自訂指令,再將聊天訊息及自訂指令傳送至伺服端主機,以便伺服端主機將聊天訊息整合為具有時序邏輯的上下文訊息,並且與自訂指令一併傳送至人工智慧裝置以生成應答訊息,接著,伺服端主機將來自人工智慧裝置的應答訊息儲存至應答清單中並進行篩選,以便客戶端主機從中任選其一以輸出至虛擬社群。The system and method disclosed in the present invention are as described above. The difference from the prior art is that the present invention connects to the virtual community through a client host to receive chat messages, and when a trigger signal is detected, an operation interface is generated for entering custom commands, and then the chat messages and custom commands are transmitted to the server host so that the server host integrates the chat messages into contextual messages with timing logic, and transmits them together with the custom commands to the artificial intelligence device to generate response messages. Then, the server host stores the response messages from the artificial intelligence device in a response list and filters them so that the client host can select any one of them to output to the virtual community.

透過上述的技術手段,本發明可以達成降低因個性、口才或遭遇不熟悉的話題而影響聊天互動性之技術功效。Through the above-mentioned technical means, the present invention can achieve the technical effect of reducing the impact of personality, eloquence or unfamiliar topics on chat interactivity.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。The following will be used in conjunction with drawings and embodiments to explain the implementation of the present invention in detail, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.

首先,請先參閱「第1圖」,「第1圖」為本發明虛擬社群應答情境下的生成式聊天機器人之系統的系統方塊圖,此系統包含:人工智慧裝置110、客戶端主機120及伺服端主機130。其中,人工智慧裝置110用以通過應用程式介面接收具有時序邏輯的上下文訊息,以及接收自訂指令,並且將上下文訊息及自訂指令一併輸入至大型語言模型以產生應答訊息,再通過應用程式介面傳送應答訊息。在實際實施上,所述人工智慧裝置110是使用大型語言模型的聊天機器人,所述大型語言模型如:生成型預訓練變換模型(Generative Pre-trained Transformer, GPT)、PaLM、Galactica、LLaMA、LaMDA或其相似物,並且能夠根據上下文訊息及其相應的時序邏輯,確定當前對話階段、主題演變及預測對話的發展,進而將預測對話作為應答訊息,甚至可根據使用者的自訂指令來調整預測對話或指定適用於某人的預測對話。First, please refer to "Figure 1", which is a system block diagram of the system of the generative chatbot in the virtual social response scenario of the present invention, and the system includes: an artificial intelligence device 110, a client host 120 and a server host 130. Among them, the artificial intelligence device 110 is used to receive context information with timing logic and custom instructions through the application program interface, and input the context information and the custom instructions into the large language model to generate a response message, and then send the response message through the application program interface. In actual implementation, the artificial intelligence device 110 is a chatbot that uses a large language model, such as a generative pre-trained transformer (GPT), PaLM, Galactica, LLaMA, LaMDA or the like, and is capable of determining the current dialogue stage, topic evolution and predicting the development of the dialogue based on context information and its corresponding timing logic, and then using the predicted dialogue as a response message, and even adjusting the predicted dialogue or specifying the predicted dialogue applicable to a certain person according to the user's customized instructions.

在客戶端主機120的部分,其包含:第一非暫態電腦可讀儲存媒體121及第一硬體處理器122。其中,第一非暫態電腦可讀儲存媒體121用以儲存多個第一電腦可讀指令。在實際實施上,所述第一非暫態電腦可讀儲存媒體121可包含硬碟、光碟、快閃記憶體或其相似物。The client host 120 includes a first non-transitory computer-readable storage medium 121 and a first hardware processor 122. The first non-transitory computer-readable storage medium 121 is used to store a plurality of first computer-readable instructions. In practical implementations, the first non-transitory computer-readable storage medium 121 may include a hard disk, an optical disk, a flash memory or the like.

第一硬體處理器122電性連接第一非暫態電腦可讀儲存媒體121,用以執行第一電腦可讀指令,使客戶端主機120執行:連接虛擬社群123,並且持續在虛擬社群123中擷取多個聊天訊息,每一所述聊天訊息包含時間訊息、使用者名稱及聊天字串;持續偵測觸發訊號,並且在偵測到觸發訊號時,產生操作介面124以供鍵入自訂指令,並且傳送每一所述聊天訊息及自訂指令;以及當接收到應答提示訊息時,將所述應答提示訊息顯示於操作介面124,並且允許在所述應答提示訊息中任選其一以輸出至虛擬社群123。在實際實施上,所述觸發訊號可通過按壓實體按鍵、點選觸控螢幕的軟體按鍵及偵測到出現在虛擬社群123的預設關鍵字或三者至少其中之一所產生,並且同步產生操作介面124。當使用者在操作介面124鍵入自訂指令時,客戶端主機120會將此自訂指令傳送至伺服端主機130,當使用者在操作介面124選擇應答提示訊息其中之一作為對話訊息時,允許使用者先編輯此對話訊息,再將編輯後的對話訊息傳送至虛擬社群123顯示。The first hardware processor 122 is electrically connected to the first non-transitory computer-readable storage medium 121 for executing the first computer-readable instruction to enable the client host 120 to execute: connect to the virtual community 123 and continuously capture multiple chat messages in the virtual community 123, each of the chat messages including a time message, a user name and a chat string; continuously detect trigger signals, and when the trigger signal is detected, generate an operation interface 124 for entering a custom instruction, and transmit each of the chat messages and custom instructions; and when a response prompt message is received, display the response prompt message on the operation interface 124, and allow any one of the response prompt messages to be selected for output to the virtual community 123. In actual implementation, the trigger signal can be generated by pressing a physical button, clicking a software button on a touch screen, detecting a default keyword appearing in the virtual community 123, or at least one of the three, and the operation interface 124 is generated simultaneously. When the user enters a custom command in the operation interface 124, the client host 120 transmits the custom command to the server host 130. When the user selects one of the response prompt messages as a dialogue message in the operation interface 124, the user is allowed to edit the dialogue message first, and then the edited dialogue message is transmitted to the virtual community 123 for display.

特別要說明的是,客戶端主機120還可連接感測器125,所述感測器125用以感測用戶的生理狀態、臉部表情及肢體動作至少其中之一以生成用戶行為訊息,並且將此用戶行為訊息傳送至伺服端主機130,由伺服端主機130判斷用戶的個性以設定個性參數。舉例來說,可以感測血壓、心跳、脈搏、血糖等生理特徵來判斷生理狀態,如:高興、興奮、沮喪等等;或是通過感測人臉、虹膜等等來判斷臉部表情及心情等等;或是通過感測語音的聲調、長短等等來判斷語音特徵,如:沉默寡言、侃侃而談等等。如此一來,便可根據感測結果來設定相應的個性參數,如:外向、內向、熱情、冷淡等等。It should be noted that the client host 120 can also be connected to the sensor 125, which is used to sense at least one of the user's physiological state, facial expression and body movement to generate user behavior information, and transmit the user behavior information to the server host 130, and the server host 130 determines the user's personality to set personality parameters. For example, physiological characteristics such as blood pressure, heartbeat, pulse, blood sugar can be sensed to determine physiological states, such as: happiness, excitement, frustration, etc.; or facial expressions and moods can be determined by sensing faces, irises, etc.; or voice characteristics can be determined by sensing the tone, length, etc. of the voice, such as: taciturn, talkative, etc. In this way, corresponding personality parameters can be set according to the sensing results, such as: extroversion, introversion, enthusiasm, coldness, etc.

接著,在伺服端主機130的部分,其連接人工智慧裝置110及客戶端主機120,所述伺服端主機130包含:第二非暫態電腦可讀儲存媒體131及第二硬體處理器132。其中,第二非暫態電腦可讀儲存媒體131用以儲存多個第二電腦可讀指令,在實際實施上,第二非暫態電腦可讀儲存媒體131與第一非暫態電腦可讀儲存媒體121的差異為前者設置於伺服端主機130,後者設置於客戶端主機120,以及兩者所儲存的電腦可讀指令不同。實際上,執行本發明操作的電腦可讀指令可以是組合語言指令、指令集架構指令、機器指令、機器相關指令、微指令、韌體指令、或者以一種或多種程式語言的任意組合編寫的原始碼或目的碼(Object Code),所述程式語言包括物件導向的程式語言,如:Common Lisp、Python、C++、Objective-C、Smalltalk、Delphi、Java、Swift、C#、Perl、Ruby與PHP等,以及常規的程序式(Procedural)程式語言,如:C語言或類似的程式語言。Next, the server host 130 is connected to the artificial intelligence device 110 and the client host 120. The server host 130 includes a second non-transitory computer-readable storage medium 131 and a second hardware processor 132. The second non-transitory computer-readable storage medium 131 is used to store a plurality of second computer-readable instructions. In actual implementation, the difference between the second non-transitory computer-readable storage medium 131 and the first non-transitory computer-readable storage medium 121 is that the former is set in the server host 130, the latter is set in the client host 120, and the computer-readable instructions stored in the two are different. In practice, the computer-readable instructions for executing the operations of the present invention may be assembly language instructions, instruction set architecture instructions, machine instructions, machine-related instructions, microinstructions, firmware instructions, or source code or object code written in any combination of one or more programming languages, wherein the programming languages include object-oriented programming languages, such as Common Lisp, Python, C++, Objective-C, Smalltalk, Delphi, Java, Swift, C#, Perl, Ruby and PHP, as well as conventional procedural programming languages, such as C language or similar programming languages.

第二硬體處理器132電性連接第二非暫態電腦可讀儲存媒體131,用以執行所述多個第二電腦可讀指令,使伺服端主機130執行:當接收到來自客戶端主機120的每一所述聊天訊息時,根據時間訊息判斷聊天字串的先後順序、根據使用者名稱判斷虛擬社群123的聊天人數,以及根據聊天字串的關鍵字判斷當前的聊天主題與邏輯(例如:假設重複出現詞彙「午餐」,可將其視為關鍵字並判斷聊天主題為討論午餐),再根據判斷結果將每一所述聊天訊息整合為具有時序邏輯的上下文訊息;將所述上下文訊息及接收到的自訂指令通過應用程式介面傳送至人工智慧裝置110,並且從人工智慧裝置110接收相應的應答訊息以儲存至應答清單;以及自動從應答清單中,選擇及載入應答訊息至少其中之一以作為應答提示訊息。在實際實施上,第二硬體處理器132與第一硬體處理器122的差異在於前者是設置在伺服端主機130,後者是設置在客戶端主機120,兩者都可以使用中央處理器、微處理器或其相似物來實現。另外,所述應答提示訊息可以從應答清單中隨機篩選出符合個性參數的應答訊息以作為應答提示訊息,所述個性參數允許由客戶端主機120連線至伺服端主機130進行設定。舉例來說,假設個性參數為「沉默寡言」,此時伺服端主機130可以從應答清單中篩選出字數較少的應答訊息作為應答提示訊息,避免用詞用語和使用者個性差異過大,使得熟知使用者個性的交談者感到突兀。除此之外,以具有時序邏輯的上下文訊息為例,其代表基於時間序列及語言邏輯來整合聊天訊息,並且將整合結果視為上下文訊息,實際上,可以從使用者名稱判斷人數、從時間訊息判斷對話的先後順序、從聊天字串判斷主題,舉例來說,假設某一字詞出現在聊天字串的次數相對較高,可以將此字詞視為主題,甚至還可搭配時間訊息進行判斷,例如:時間為中午,聊天字串出現「吃甚麼」,可以將主題判斷為「午餐討論」。The second hardware processor 132 is electrically connected to the second non-transitory computer-readable storage medium 131 to execute the plurality of second computer-readable instructions to enable the server host 130 to execute: when receiving each chat message from the client host 120, determine the order of the chat string according to the time message, determine the number of chatters in the virtual community 123 according to the user name, and determine the current chat topic and logic according to the keywords in the chat string (for example, assuming that the word " Lunch", which can be regarded as a keyword and the chat topic is judged to be discussing lunch), and then each of the chat messages is integrated into a context message with timing logic according to the judgment result; the context message and the received custom command are transmitted to the artificial intelligence device 110 through the application program interface, and the corresponding response message is received from the artificial intelligence device 110 to be stored in the response list; and at least one of the response messages is automatically selected and loaded from the response list as a response prompt message. In actual implementation, the difference between the second hardware processor 132 and the first hardware processor 122 is that the former is set in the server host 130, and the latter is set in the client host 120, and both can be implemented using a central processing unit, a microprocessor or the like. In addition, the response prompt message can randomly select a response message that meets the personality parameter from the response list as the response prompt message, and the personality parameter allows the client host 120 to connect to the server host 130 for setting. For example, assuming that the personality parameter is "quiet", the server host 130 can select a response message with fewer words from the response list as the response prompt message to avoid the wording and the user's personality being too different, which makes the interlocutor who is familiar with the user's personality feel abrupt. In addition, taking contextual information with temporal logic as an example, it represents the integration of chat messages based on time sequence and language logic, and the integration results are regarded as contextual information. In fact, the number of people can be judged from the user name, the order of conversations can be judged from the time message, and the topic can be judged from the chat string. For example, if a certain word appears in the chat string relatively frequently, this word can be regarded as the topic, and it can even be judged in combination with the time message. For example: the time is noon, and the chat string appears "what to eat", the topic can be judged as "lunch discussion".

特別要說明的是,在實際實施上,本發明可部分地或完全地基於硬體來實現,例如,系統中的一個或多個元件可以透過積體電路晶片、系統單晶片(System on Chip, SoC)、複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)、現場可程式邏輯閘陣列(Field Programmable Gate Array, FPGA)等硬體處理器(Hardware Processor)來實現。本發明所述的非暫態電腦可讀儲存媒體,其上載有用於使處理器實現本發明的各個方面的電腦可讀指令(或稱為電腦程式指令),非暫態電腦可讀儲存媒體可以是可以保持和儲存由指令執行設備使用的指令的有形設備。非暫態電腦可讀儲存媒體可以是但不限於電儲存設備、磁儲存設備、光儲存設備、電磁儲存設備、半導體儲存設備或上述的任意合適的組合。電腦可讀儲存媒體的更具體的例子(非窮舉的列表)包括:硬碟、隨機存取記憶體、唯讀記憶體、快閃記憶體、光碟、軟碟以及上述的任意合適的組合。此處所使用的非暫態電腦可讀儲存媒體不被解釋爲瞬時訊號本身,諸如無線電波或者其它自由傳播的電磁波、通過波導或其它傳輸媒介傳播的電磁波(例如,通過光纖電纜的光訊號)、或者通過電線傳輸的電訊號。另外,此處所描述的電腦可讀指令可以從非暫態電腦可讀儲存媒體下載到各個計算/處理設備,或者通過網路,例如:網際網路、區域網路、廣域網路及/或無線網路下載到外部電腦設備或外部儲存設備。所述網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換器、集線器及/或閘道器。每一個計算/處理設備中的網路卡或者網路介面從網路接收電腦可讀指令,並轉發此電腦可讀指令,以供儲存在各個計算/處理設備中的非暫態電腦可讀儲存媒體中。It should be particularly noted that, in actual implementation, the present invention may be partially or completely implemented based on hardware. For example, one or more components in the system may be implemented through hardware processors such as integrated circuit chips, system on chip (SoC), complex programmable logic devices (CPLD), field programmable gate arrays (FPGA), etc. The non-transitory computer-readable storage medium described in the present invention is loaded with computer-readable instructions (or computer program instructions) that are useful for the processor to implement various aspects of the present invention. The non-transitory computer-readable storage medium may be a tangible device that can retain and store instructions used by an instruction execution device. A non-transitory computer-readable storage medium may be, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: a hard drive, a random access memory, a read-only memory, a flash memory, an optical disk, a floppy disk, and any suitable combination of the above. As used herein, a non-transitory computer-readable storage medium is not to be construed as a transient signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical signals through optical fiber cables), or electrical signals transmitted through wires. In addition, the computer-readable instructions described herein may be downloaded from a non-transitory computer-readable storage medium to each computing/processing device, or downloaded to an external computer device or external storage device via a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, hubs, and/or gateways. The network card or network interface in each computing/processing device receives the computer-readable instructions from the network and forwards the computer-readable instructions for storage in a non-transitory computer-readable storage medium in each computing/processing device.

請參閱「第2A圖」及「第2B圖」,「第2A圖」及「第2B圖」為本發明虛擬社群應答情境下的生成式聊天機器人之方法的方法流程圖,其步驟包括:將伺服端主機130分別與人工智慧裝置110及客戶端主機120相互連接,其中,人工智慧裝置110具有應用程式介面(步驟210);當客戶端主機120連接虛擬社群123時,持續在此虛擬社群123中擷取多個聊天訊息,每一所述聊天訊息包含時間訊息、使用者名稱及聊天字串(步驟220);客戶端主機120持續偵測觸發訊號,並且在偵測到觸發訊號時,產生操作介面124以供鍵入自訂指令,並且將每一所述聊天訊息及自訂指令傳送至伺服端主機130(步驟230);伺服端主機130接收到來自客戶端主機120的每一所述聊天訊息時,根據時間訊息判斷聊天字串的先後順序、根據使用者名稱判斷虛擬社群123的聊天人數,以及根據聊天字串的關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將每一所述聊天訊息整合為具有時序邏輯的上下文訊息(步驟240);伺服端主機130將上下文訊息及接收到的自訂指令通過應用程式介面傳送至人工智慧裝置110(步驟250);人工智慧裝置110將接收到的上下文訊息及自訂指令一併輸入至大型語言模型以產生應答訊息,並且將所述應答訊息傳送至伺服端主機130(步驟260);伺服端主機130將接收到的應答訊息儲存至應答清單,並且自動從所述應答清單中,選擇及載入所述應答訊息至少其中之一以作為應答提示訊息且顯示於操作介面124(步驟270);以及客戶端主機120允許從載入的應答提示訊息中任選其一以輸出至虛擬社群123(步驟280)。透過上述步驟,即可透過客戶端主機120連接虛擬社群123以接收聊天訊息,並且在偵測到觸發訊號時,產生操作介面124以供鍵入自訂指令,再將聊天訊息及自訂指令傳送至伺服端主機130,以便伺服端主機130將聊天訊息整合為具有時序邏輯的上下文訊息,並且與自訂指令一併傳送至人工智慧裝置110以生成應答訊息,接著,伺服端主機130將來自人工智慧裝置110的應答訊息儲存至應答清單中並進行篩選,以便客戶端主機120從中任選其一以輸出至虛擬社群123。Please refer to "FIG. 2A" and "FIG. 2B", which are flow charts of the method of the generative chatbot in the virtual community response scenario of the present invention, and the steps include: connecting the server host 130 to the artificial intelligence device 110 and the client host 120 respectively, wherein the artificial intelligence device 110 has an application program interface (step 210); when the client host 120 is connected to the virtual community 123, continuously capturing multiple chats in the virtual community 123; The client host 120 continuously detects the trigger signal, and when the trigger signal is detected, generates an operation interface 124 for inputting a custom command, and transmits each of the chat messages and the custom command to the server host 130 (step 230). When the server host 130 receives each of the chat messages from the client host 120, it determines the order of the chat strings according to the time information, The number of chat participants in the virtual community 123 is determined based on the user name, and the current chat topic and logic are determined based on the keywords in the chat string, and then each of the chat messages is integrated into a context message with a timing logic based on the determination result (step 240); the server host 130 transmits the context message and the received custom command to the artificial intelligence device 110 through the application programming interface (step 250); the artificial intelligence device 110 inputs the received context message and the custom command into a large The language model is used to generate a response message, and the response message is transmitted to the server host 130 (step 260); the server host 130 stores the received response message in a response list, and automatically selects and loads at least one of the response messages from the response list as a response prompt message and displays it on the operation interface 124 (step 270); and the client host 120 allows any one of the loaded response prompt messages to be selected for output to the virtual community 123 (step 280). Through the above steps, the virtual community 123 can be connected to the client host 120 to receive chat messages, and when a trigger signal is detected, an operation interface 124 is generated for entering custom commands, and then the chat messages and custom commands are transmitted to the server host 130, so that the server host 130 can integrate the chat messages into contextual messages with timing logic, and transmit them together with the custom commands to the artificial intelligence device 110 to generate response messages. Then, the server host 130 stores the response messages from the artificial intelligence device 110 in the response list and filters them, so that the client host 120 can select any one of them to output to the virtual community 123.

以下配合「第3圖」及「第4圖」以實施例的方式進行如下說明,如「第3圖」所示意,「第3圖」為應用本發明連接虛擬社群接收聊天訊息之示意圖。在實際實施上,假設使用者通過客戶端主機120連線至虛擬社群123,如:網路聊天室、網路會議室等等。此時,客戶端主機120會從虛擬社群123的視窗介面300中接收多個聊天訊息301。其中,每一個聊天訊息皆包含時間訊息(如:AM 11:30:10)、使用者名稱(如:A)及聊天字串(如:大家中午想吃甚麼?)。接著,客戶端主機120會持續將接收到的聊天訊息傳送至伺服端主機130,以便伺服端主機130根據時間訊息判斷聊天字串的先後順序、根據使用者名稱判斷虛擬社群123的聊天人數,以及根據聊天字串的關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將所有聊天訊息整合為具有時序邏輯的上下文訊息。舉例來說,可根據時間順序及聊天字串的自然語言邏輯進行排序及整合,如:保持順序及參考先前的聊天字串以維持上下文訊息的連貫性,並且維持在相同主題,剃除無意義的聊天字串,如:表情字串、語氣字串(例如:「嗯嗯」、「哈哈」、「呵呵」)。 此時,使用者同樣可以在輸入區塊310中直接輸入字串進行聊天,而使用者輸入的字串除了會顯示在聊天訊息301,也會被客戶端主機120接收為聊天字串。The following is explained in the form of an embodiment with reference to FIG. 3 and FIG. 4. As shown in FIG. 3, FIG. 3 is a schematic diagram of the present invention for connecting to a virtual community to receive chat messages. In actual implementation, it is assumed that a user connects to a virtual community 123, such as an online chat room, an online conference room, etc., through a client host 120. At this time, the client host 120 receives a plurality of chat messages 301 from a window interface 300 of the virtual community 123. Each chat message includes a time message (such as AM 11:30:10), a user name (such as A), and a chat string (such as what do you want to eat for lunch?). Then, the client host 120 will continue to transmit the received chat messages to the server host 130, so that the server host 130 can determine the order of the chat strings according to the time message, determine the number of chatters in the virtual community 123 according to the user name, and determine the current chat topic and logic according to the keywords in the chat strings, and then integrate all the chat messages into contextual messages with time sequence logic according to the determination results. For example, the chat strings can be sorted and integrated according to the time sequence and the natural language logic of the chat string, such as maintaining the sequence and referring to the previous chat string to maintain the coherence of the context message, and maintaining the same topic, removing meaningless chat strings, such as expression strings, tone strings (for example: "hmm", "haha", "haha"). At this time, the user can also directly enter the string in the input block 310 to chat, and the string entered by the user will not only be displayed in the chat message 301, but will also be received by the client host 120 as a chat string.

如「第4圖」所示意,「第4圖」為應用本發明在操作介面鍵入自訂指令及顯示應答提示訊息之示意圖。在實際實施上,客戶端主機120還會持續偵測觸發訊號,並且在偵測到觸發訊號時,產生操作介面410以提供使用者鍵入自訂指令,舉例來說,使用者可以在輸入框411中鍵入「回答A的問題」作為自訂指令。接著,使用者在點選確定按鍵412後,客戶端主機120會將所有聊天訊息及鍵入的自訂指令傳送至伺服端主機130。實際上,使用者也可以在自訂指令中加入時間,用以使自訂指令更為明確,例如:「回答A在AM 11:30:10的問題」。在實際實施上,使用者可以通過按壓實體按鍵、點選觸控螢幕的軟體按鍵及偵測到出現在虛擬社群123的預設關鍵字(例如:使用者名稱、暱稱等等),或是三者至少其中之一來產生觸發訊號。As shown in "Figure 4", "Figure 4" is a schematic diagram of applying the present invention to input custom commands in the operation interface and displaying response prompt messages. In actual implementation, the client host 120 will continue to detect trigger signals, and when the trigger signal is detected, an operation interface 410 is generated to provide the user with the opportunity to input custom commands. For example, the user can input "Answer A's question" in the input box 411 as a custom command. Then, after the user clicks the OK button 412, the client host 120 will transmit all chat messages and the input custom commands to the server host 130. In practice, the user can also add time to the custom command to make the custom command more specific, for example: "Answer A's question at 11:30:10 AM". In actual implementation, the user can generate a trigger signal by pressing a physical button, clicking a software button on a touch screen, detecting a default keyword (such as a user name, nickname, etc.) appearing in the virtual community 123, or at least one of the three.

除此之外,當伺服端主機130接收到來自人工智慧裝置110所產生的應答訊息且儲存至應答清單時,會自動從中選擇及載入至少一個應答提示訊息,以便傳送至客戶端主機120,進而顯示在如「第4圖」所示意的操作介面410的選擇區塊413中。如此一來,使用者無須經過過多的思考,可以直接根據自身的喜好,通過游標從中任選其一,再點選發送按鍵414輸出至虛擬社群123,有效降低因為個性、口才或遭遇不熟悉的話題而影響聊天互動性。特別要說明的是,伺服端主機130自動從中選擇及載入至少一個應答提示訊息的方式可以全部選擇、隨機選擇或是根據個性參數進行篩選,以根據個性參數為例,假設個性參數為「沉默寡言」,伺服端主機130可以選擇字數最少或不具有引申意圖的應答訊息,舉例來說,假設有兩個應答訊息如下:In addition, when the server host 130 receives the response message generated by the artificial intelligence device 110 and stores it in the response list, it will automatically select and load at least one response prompt message from it to be transmitted to the client host 120, and then displayed in the selection area 413 of the operation interface 410 as shown in "Figure 4". In this way, the user does not need to think too much, and can directly select one of them according to his own preferences through the cursor, and then click the send button 414 to output it to the virtual community 123, effectively reducing the chat interactivity affected by personality, eloquence or unfamiliar topics. It should be particularly noted that the server host 130 can automatically select and load at least one response prompt message by selecting all, randomly selecting, or filtering according to personality parameters. For example, based on personality parameters, assuming that the personality parameter is "quiet", the server host 130 can select a response message with the least number of words or without extended meaning. For example, assuming that there are two response messages as follows:

1. 我想吃咖哩飯,有人願意一起嗎?1. I want to eat curry rice. Is anyone willing to join me?

2. 我想吃雞排飯。2. I want to eat chicken chop rice.

此時,伺服端主機130可以選擇第二個應答訊息作為應答提示訊息,因為其符合字數最少或不具有引申意圖的條件。要補充說明的是,所述個性參數允許由客戶端主機120連線至伺服端主機130進行設定,舉例來說,在輸入框411中鍵入「個性參數設為沉默寡言」,並且點選確定按鍵412傳送給伺服端主機130以完成設定。At this time, the server host 130 can select the second response message as the response prompt message because it meets the condition of having the least number of words or having no extended meaning. It should be added that the personality parameter allows the client host 120 to connect to the server host 130 for setting. For example, in the input box 411, type "Personal parameter is set to be taciturn" and click the confirmation button 412 to send it to the server host 130 to complete the setting.

綜上所述,可知本發明與先前技術之間的差異在於透過客戶端主機連接虛擬社群以接收聊天訊息,並且在偵測到觸發訊號時,產生操作介面以供鍵入自訂指令,再將聊天訊息及自訂指令傳送至伺服端主機,以便伺服端主機將聊天訊息整合為具有時序邏輯的上下文訊息,並且與自訂指令一併傳送至人工智慧裝置以生成應答訊息,接著,伺服端主機將來自人工智慧裝置的應答訊息儲存至應答清單中並進行篩選,以便客戶端主機從中任選其一以輸出至虛擬社群,藉由此一技術手段可以解決先前技術所存在的問題,進而達成降低因個性、口才或遭遇不熟悉的話題而影響聊天互動性之技術功效。In summary, the difference between the present invention and the prior art is that the present invention connects to the virtual community through the client host to receive chat messages, and when a trigger signal is detected, an operation interface is generated for typing custom commands, and then the chat messages and custom commands are transmitted to the server host, so that the server host integrates the chat messages into contextual messages with timing logic, and transmits them together with the custom commands to the server host. The artificial intelligence device generates a response message, and then the server host stores the response message from the artificial intelligence device in a response list and filters it so that the client host can select any one of them to output to the virtual community. This technical means can solve the problems existing in previous technologies, thereby achieving the technical effect of reducing the impact of personality, eloquence or unfamiliar topics on chat interactivity.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。Although the present invention is disclosed as above by the aforementioned embodiments, they are not used to limit the present invention. Anyone skilled in similar techniques can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of patent protection of the present invention shall be subject to the scope of the patent application attached to this specification.

110:人工智慧裝置 120:客戶端主機 121:第一非暫態電腦可讀儲存媒體 122:第一硬體處理器 123:虛擬社群 124:操作介面 125:感測器 130:伺服端主機 131:第二非暫態電腦可讀儲存媒體 132:第二硬體處理器 300:視窗介面 301:聊天訊息 310:輸入區塊 410:操作介面 411:輸入框 412:確定按鍵 413:選擇區塊 414:發送按鍵 步驟210:將一伺服端主機分別與一人工智慧裝置及一客戶端主機相互連接,其中,該人工智慧裝置具有一應用程式介面(Application Programming Interface, API) 步驟220:當該客戶端主機連接一虛擬社群時,持續在該虛擬社群中擷取多個聊天訊息,每一所述聊天訊息包含一時間訊息、一使用者名稱及一聊天字串 步驟230:該客戶端主機持續偵測一觸發訊號,並且在偵測到該觸發訊號時,產生一操作介面以供鍵入一自訂指令,並且將每一所述聊天訊息及該自訂指令傳送至該伺服端主機 步驟240:該伺服端主機接收到來自該客戶端主機的每一所述聊天訊息時,根據該時間訊息判斷所述聊天字串的先後順序、根據該使用者名稱判斷該虛擬社群的聊天人數,以及根據該聊天字串的至少一關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將每一所述聊天訊息整合為具有一時序邏輯的一上下文訊息 步驟250:該伺服端主機將所述上下文訊息及接收到的該自訂指令通過該應用程式介面傳送至該人工智慧裝置 步驟260:該人工智慧裝置將接收到的該上下文訊息及該自訂指令一併輸入至大型語言模型(Large Language Model, LLM)以產生至少一應答訊息,並且將所述應答訊息傳送至該伺服端主機 步驟270:該伺服端主機將接收到的所述應答訊息儲存至一應答清單,並且自動從該應答清單中,選擇及載入所述應答訊息至少其中之一以作為至少一應答提示訊息且顯示於該操作介面 步驟280:該客戶端主機允許從載入的所述應答提示訊息中任選其一以輸出至該虛擬社群110: artificial intelligence device 120: client host 121: first non-transient computer-readable storage medium 122: first hardware processor 123: virtual community 124: operation interface 125: sensor 130: server host 131: second non-transient computer-readable storage medium 132: second hardware processor 300: window interface 301: chat message 310: input block 410: operation interface 411: input box 412: confirm button 413: select block 414: send button Step 210: Connect a server host to an artificial intelligence device and a client host respectively, wherein the artificial intelligence device has an application programming interface (API) Step 220: When the client host is connected to a virtual community, it continuously captures multiple chat messages in the virtual community, each of which includes a time message, a user name, and a chat string Step 230: The client host continuously detects a trigger signal, and when the trigger signal is detected, generates an operation interface for entering a custom command, and transmits each of the chat messages and the custom command to the server host Step 240: When the server host receives each chat message from the client host, it determines the order of the chat string according to the time message, determines the number of chatters in the virtual community according to the user name, and determines the current chat topic and logic according to at least one keyword in the chat string, and then integrates each chat message into a context message with a timing logic according to the determination result. Step 250: The server host transmits the context message and the received custom command to the artificial intelligence device through the application program interface Step 260: The artificial intelligence device inputs the received context message and the custom command into a large language model (Large Language Model, LLM) to generate at least one response message, and transmit the response message to the server host Step 270: The server host stores the received response message in a response list, and automatically selects and loads at least one of the response messages from the response list as at least one response prompt message and displays it on the operation interface Step 280: The client host allows any one of the loaded response prompt messages to be selected and output to the virtual community

第1圖為本發明虛擬社群應答情境下的生成式聊天機器人之系統的系統方塊圖。 第2A圖及第2B圖為本發明虛擬社群應答情境下的生成式聊天機器人之方法的方法流程圖。 第3圖為應用本發明連接虛擬社群接收聊天訊息之示意圖。 第4圖為應用本發明在操作介面鍵入自訂指令及顯示應答提示訊息之示意圖。 Figure 1 is a system block diagram of the system of the generative chatbot in the virtual community response scenario of the present invention. Figure 2A and Figure 2B are method flow charts of the method of the generative chatbot in the virtual community response scenario of the present invention. Figure 3 is a schematic diagram of the application of the present invention to connect to the virtual community to receive chat messages. Figure 4 is a schematic diagram of the application of the present invention to enter a custom command in the operation interface and display the response prompt message.

110:人工智慧裝置 110: Artificial intelligence device

120:客戶端主機 120: Client host

121:第一非暫態電腦可讀儲存媒體 121: The first non-transient computer-readable storage medium

122:第一硬體處理器 122: First hardware processor

123:虛擬社群 123: Virtual community

124:操作介面 124: Operation interface

125:感測器 125:Sensor

130:伺服端主機 130: Server host

131:第二非暫態電腦可讀儲存媒體 131: Second non-transitory computer-readable storage medium

132:第二硬體處理器 132: Second hardware processor

Claims (10)

一種虛擬社群應答情境下的生成式聊天機器人之系統,該系統包含: 一人工智慧裝置,用以通過一應用程式介面(Application Programming Interface, API)接收具有一時序邏輯的一上下文訊息,以及接收一自訂指令,並且將該上下文訊息及該自訂指令一併輸入至大型語言模型(Large Language Model, LLM)以產生至少一應答訊息,再通過該應用程式介面傳送所述應答訊息; 一客戶端主機,該客戶端主機包含: 一第一非暫態電腦可讀儲存媒體,用以儲存多個第一電腦可讀指令;以及 一第一硬體處理器,電性連接所述第一非暫態電腦可讀儲存媒體,用以執行所述第一電腦可讀指令,使該客戶端主機執行: 連接一虛擬社群,並且持續在該虛擬社群中擷取多個聊天訊息,每一所述聊天訊息包含一時間訊息、一使用者名稱及一聊天字串; 持續偵測一觸發訊號,並且在偵測到該觸發訊號時,產生一操作介面以供鍵入該自訂指令,並且傳送每一所述聊天訊息及該自訂指令;以及 當接收到至少一應答提示訊息時,將所述應答提示訊息顯示於該操作介面,並且允許在所述應答提示訊息中任選其一以輸出至該虛擬社群;以及 一伺服端主機,連接該人工智慧裝置及該客戶端主機,該伺服端主機包含: 一第二非暫態電腦可讀儲存媒體,用以儲存多個第二電腦可讀指令;以及 一第二硬體處理器,電性連接所述第二非暫態電腦可讀儲存媒體,用以執行所述多個第二電腦可讀指令,使該伺服端主機執行: 當接收到來自該客戶端主機的每一所述聊天訊息時,根據該時間訊息判斷所述聊天字串的先後順序、根據該使用者名稱判斷該虛擬社群的聊天人數,以及根據該聊天字串的至少一關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將每一所述聊天訊息整合為具有所述時序邏輯的所述上下文訊息; 將所述上下文訊息及接收到的該自訂指令通過該應用程式介面傳送至該人工智慧裝置,並且自該人工智慧裝置接收相應的所述應答訊息以儲存至一應答清單;以及 自動從該應答清單中,選擇及載入所述應答訊息至少其中之一以作為所述應答提示訊息。 A system of a generative chatbot in a virtual social response context, the system comprising: an artificial intelligence device, for receiving a context message with a timing logic and a custom instruction through an application programming interface (API), and inputting the context message and the custom instruction into a large language model (LLM) to generate at least one response message, and then transmitting the response message through the application programming interface; a client host, the client host comprising: a first non-transitory computer-readable storage medium, for storing a plurality of first computer-readable instructions; and A first hardware processor, electrically connected to the first non-transitory computer-readable storage medium, for executing the first computer-readable instruction, so that the client host executes: Connecting to a virtual community and continuously capturing multiple chat messages in the virtual community, each of the chat messages comprising a time message, a user name, and a chat string; Continuously detecting a trigger signal, and when the trigger signal is detected, generating an operation interface for entering the custom instruction, and transmitting each of the chat messages and the custom instruction; and When receiving at least one response prompt message, displaying the response prompt message on the operation interface, and allowing any one of the response prompt messages to be selected for output to the virtual community; and A server host, connected to the artificial intelligence device and the client host, the server host comprising: A second non-transient computer-readable storage medium, for storing a plurality of second computer-readable instructions; and A second hardware processor, electrically connected to the second non-transient computer-readable storage medium, for executing the plurality of second computer-readable instructions, so that the server host executes: When each chat message is received from the client host, the order of the chat string is determined according to the time message, the number of chatters in the virtual community is determined according to the user name, and the current chat topic and logic are determined according to at least one keyword in the chat string, and each chat message is then integrated into the context message with the timing logic according to the determination result; The context message and the received custom command are transmitted to the artificial intelligence device through the application program interface, and the corresponding response message is received from the artificial intelligence device to be stored in a response list; and At least one of the response messages is automatically selected and loaded from the response list as the response prompt message. 如請求項1之虛擬社群應答情境下的生成式聊天機器人之系統,其中所述應答提示訊息係自該應答清單中隨機篩選出符合一個性參數的所述應答訊息以作為所述應答提示訊息,所述個性參數允許由該客戶端主機連線至該伺服端主機進行設定。A system of a generative chatbot in a virtual community response scenario as in claim 1, wherein the response prompt message is randomly selected from the response list to select the response message that meets a personality parameter as the response prompt message, and the personality parameter allows the client host to connect to the server host for setting. 如請求項2之虛擬社群應答情境下的生成式聊天機器人之系統,其中該客戶端主機連接至少一感測器,用以感測用戶的生理狀態、臉部表情及肢體動作至少其中之一以生成一用戶行為訊息,並且將該用戶行為訊息傳送至該伺服端主機,由該伺服端主機基於該用戶行為訊息設定所述個性參數。A system of a generative chatbot in a virtual social response scenario as in claim 2, wherein the client host is connected to at least one sensor for sensing at least one of the user's physiological state, facial expression and body movement to generate a user behavior message, and the user behavior message is transmitted to the server host, and the server host sets the personality parameters based on the user behavior message. 如請求項1之虛擬社群應答情境下的生成式聊天機器人之系統,其中該觸發訊號係通過按壓實體按鍵、點選觸控螢幕的軟體按鍵及偵測到出現在該虛擬社群的預設關鍵字或三者至少其中之一所產生,並且同步產生該操作介面。A system of a generative chatbot in a virtual community response scenario as in claim 1, wherein the trigger signal is generated by pressing a physical button, clicking a software button on a touch screen, detecting a default keyword appearing in the virtual community, or at least one of the three, and the operation interface is generated simultaneously. 如請求項4之虛擬社群應答情境下的生成式聊天機器人之系統,其中在該操作介面鍵入該自訂指令時,將該自訂指令傳送至該伺服端主機,當在該操作介面選擇所述應答提示訊息其中之一作為一對話訊息時,允許先編輯該對話訊息,再將編輯後的該對話訊息傳送至該虛擬社群顯示。A system of a generative chatbot in a virtual community response scenario as in claim 4, wherein when the custom command is typed in the operating interface, the custom command is transmitted to the server host, and when one of the response prompt messages is selected as a dialogue message in the operating interface, the dialogue message is allowed to be edited first, and then the edited dialogue message is transmitted to the virtual community for display. 一種虛擬社群應答情境下的生成式聊天機器人之方法,其步驟包括: 將一伺服端主機分別與一人工智慧裝置及一客戶端主機相互連接,其中,該人工智慧裝置具有一應用程式介面(Application Programming Interface, API); 當該客戶端主機連接一虛擬社群時,持續在該虛擬社群中擷取多個聊天訊息,每一所述聊天訊息包含一時間訊息、一使用者名稱及一聊天字串; 該客戶端主機持續偵測一觸發訊號,並且在偵測到該觸發訊號時,產生一操作介面以供鍵入一自訂指令,並且將每一所述聊天訊息及該自訂指令傳送至該伺服端主機; 該伺服端主機接收到來自該客戶端主機的每一所述聊天訊息時,根據該時間訊息判斷所述聊天字串的先後順序、根據該使用者名稱判斷該虛擬社群的聊天人數,以及根據該聊天字串的至少一關鍵字判斷當前的聊天主題與邏輯,再根據判斷結果將每一所述聊天訊息整合為具有一時序邏輯的一上下文訊息; 該伺服端主機將所述上下文訊息及接收到的該自訂指令通過該應用程式介面傳送至該人工智慧裝置; 該人工智慧裝置將接收到的該上下文訊息及該自訂指令一併輸入至大型語言模型(Large Language Model, LLM)以產生至少一應答訊息,並且將所述應答訊息傳送至該伺服端主機; 該伺服端主機將接收到的所述應答訊息儲存至一應答清單,並且自動從該應答清單中,選擇及載入所述應答訊息至少其中之一以作為至少一應答提示訊息且顯示於該操作介面;以及 該客戶端主機允許從載入的所述應答提示訊息中任選其一以輸出至該虛擬社群。 A method for generating a chatbot in a virtual community response scenario, the steps of which include: Connecting a server host to an artificial intelligence device and a client host respectively, wherein the artificial intelligence device has an application programming interface (API); When the client host is connected to a virtual community, it continuously captures multiple chat messages in the virtual community, each of which includes a time message, a user name, and a chat string; The client host continuously detects a trigger signal, and when the trigger signal is detected, generates an operation interface for entering a custom command, and transmits each of the chat messages and the custom command to the server host; When the server host receives each chat message from the client host, it determines the order of the chat string according to the time message, determines the number of chatters in the virtual community according to the user name, and determines the current chat topic and logic according to at least one keyword in the chat string, and then integrates each chat message into a context message with a timing logic according to the determination result; The server host transmits the context message and the received custom command to the artificial intelligence device through the application program interface; The artificial intelligence device inputs the received context message and the custom command into a large language model (LLM) to generate at least one response message, and transmits the response message to the server host; The server host stores the received response message in a response list, and automatically selects and loads at least one of the response messages from the response list as at least one response prompt message and displays it on the operation interface; and the client host allows any one of the loaded response prompt messages to be selected and output to the virtual community. 如請求項6之虛擬社群應答情境下的生成式聊天機器人之方法,其中所述應答提示訊息係自該應答清單中隨機篩選出符合一個性參數的所述應答訊息以作為所述應答提示訊息,所述個性參數允許由該客戶端主機連線至該伺服端主機進行設定。A method for generating a chatbot in a virtual community response scenario as in claim 6, wherein the response prompt message is randomly selected from the response list to select the response message that meets a personality parameter as the response prompt message, and the personality parameter allows the client host to connect to the server host for setting. 如請求項7之虛擬社群應答情境下的生成式聊天機器人之方法,其中該客戶端主機連接至少一感測器,用以感測用戶的生理狀態、臉部表情及肢體動作至少其中之一以生成一用戶行為訊息,並且將該用戶行為訊息傳送至該伺服端主機,由該伺服端主機基於該用戶行為訊息設定所述個性參數。A method for generating a chatbot in a virtual social response scenario as in claim 7, wherein the client host is connected to at least one sensor for sensing at least one of the user's physiological state, facial expression and body movement to generate a user behavior message, and the user behavior message is transmitted to the server host, and the server host sets the personality parameters based on the user behavior message. 如請求項6之虛擬社群應答情境下的生成式聊天機器人之方法,其中該觸發訊號係通過按壓實體按鍵、點選觸控螢幕的軟體按鍵及偵測到出現在該虛擬社群的預設關鍵字或三者至少其中之一所產生,並且同步產生該操作介面。A method for generating a chatbot in a virtual community response scenario as in claim 6, wherein the trigger signal is generated by pressing a physical button, clicking a software button on a touch screen, detecting a default keyword appearing in the virtual community, or at least one of the three, and the operation interface is generated simultaneously. 如請求項9之虛擬社群應答情境下的生成式聊天機器人之方法,其中在該操作介面鍵入該自訂指令時,將該自訂指令傳送至該伺服端主機,當在該操作介面選擇所述應答提示訊息其中之一作為一對話訊息時,允許先編輯該對話訊息,再將編輯後的該對話訊息傳送至該虛擬社群顯示。A method for generating a chatbot in a virtual community response scenario as in claim 9, wherein when the custom command is typed in the operating interface, the custom command is transmitted to the server host, and when one of the response prompt messages is selected as a dialogue message in the operating interface, the dialogue message is allowed to be edited first, and then the edited dialogue message is transmitted to the virtual community for display.
TW112135680A 2023-09-19 2023-09-19 Generative chatbot system for virtual community and method thereof TWI838316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112135680A TWI838316B (en) 2023-09-19 2023-09-19 Generative chatbot system for virtual community and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112135680A TWI838316B (en) 2023-09-19 2023-09-19 Generative chatbot system for virtual community and method thereof

Publications (2)

Publication Number Publication Date
TWI838316B true TWI838316B (en) 2024-04-01
TW202514430A TW202514430A (en) 2025-04-01

Family

ID=91618450

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112135680A TWI838316B (en) 2023-09-19 2023-09-19 Generative chatbot system for virtual community and method thereof

Country Status (1)

Country Link
TW (1) TWI838316B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200939714A (en) * 2008-03-14 2009-09-16 Ind Tech Res Inst Method and apparatuses for network society associating
TW201001179A (en) * 2008-06-27 2010-01-01 Ind Tech Res Inst System and method for establishing personal social network, trusted network and social networking system
CN114710342A (en) * 2022-03-29 2022-07-05 上海掌门科技有限公司 A community management method, apparatus, medium and program product
US11431660B1 (en) * 2020-09-25 2022-08-30 Conversation Processing Intelligence Corp. System and method for collaborative conversational AI

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200939714A (en) * 2008-03-14 2009-09-16 Ind Tech Res Inst Method and apparatuses for network society associating
TW201001179A (en) * 2008-06-27 2010-01-01 Ind Tech Res Inst System and method for establishing personal social network, trusted network and social networking system
US11431660B1 (en) * 2020-09-25 2022-08-30 Conversation Processing Intelligence Corp. System and method for collaborative conversational AI
CN114710342A (en) * 2022-03-29 2022-07-05 上海掌门科技有限公司 A community management method, apparatus, medium and program product

Also Published As

Publication number Publication date
TW202514430A (en) 2025-04-01

Similar Documents

Publication Publication Date Title
KR102448382B1 (en) Electronic device for providing an image associated with text and method for operating the same
US7065711B2 (en) Information processing device and method, and recording medium
CN112000781B (en) Information processing method, device, electronic device and storage medium in user dialogue
US6522333B1 (en) Remote communication through visual representations
US20100153095A1 (en) Virtual Pet Chatting System, Method, and Virtual Pet Question and Answer Server
CN112528004B (en) Voice interaction method, voice interaction device, electronic equipment, medium and computer program product
US20190248001A1 (en) Conversation output system, conversation output method, and non-transitory recording medium
TW201947427A (en) Man-machine dialog method, client, electronic device and storage medium
CN117033587B (en) Human-computer interaction method, device, electronic device and medium
CN114115533A (en) Intelligent interaction method and device
WO2018000267A1 (en) Method for generating robot interaction content, system, and robot
CN117850596A (en) Interaction method, device, equipment and storage medium based on virtual reality
TWI838316B (en) Generative chatbot system for virtual community and method thereof
WO2018000266A1 (en) Method and system for generating robot interaction content, and robot
KR20190094080A (en) Interactive ai agent system and method for actively providing an order or reservation service based on monitoring of a dialogue session among users, computer readable recording medium
US20240428042A1 (en) Active Chatbot System with Composite Finite State Machine and Method Thereof
Rach et al. Emotion recognition based preference modelling in argumentative dialogue systems
US12335206B2 (en) Generative chatbot system for virtual community and method thereof
JP2023123999A (en) Method and computer program for promoting relationship construction between people
TWI833678B (en) Generative chatbot system for real multiplayer conversational and method thereof
TWI884472B (en) Active chatbot system with composite finite state machines and method thereof
TWI851306B (en) Active chatbot system with behavioral awareness and on-demand conversational and method thereof
US12112747B2 (en) Method for controlling external device based on voice and electronic device thereof
US10984796B2 (en) Optimized interactive communications timing
Gallo et al. End-User Personalisation of Humanoid Robot Behaviour Through Vocal Interaction