[go: up one dir, main page]

TWI851306B - Active chatbot system with behavioral awareness and on-demand conversational and method thereof - Google Patents

Active chatbot system with behavioral awareness and on-demand conversational and method thereof Download PDF

Info

Publication number
TWI851306B
TWI851306B TW112124258A TW112124258A TWI851306B TW I851306 B TWI851306 B TW I851306B TW 112124258 A TW112124258 A TW 112124258A TW 112124258 A TW112124258 A TW 112124258A TW I851306 B TWI851306 B TW I851306B
Authority
TW
Taiwan
Prior art keywords
message
demand
answer
question
dialogue
Prior art date
Application number
TW112124258A
Other languages
Chinese (zh)
Other versions
TW202501308A (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 TW112124258A priority Critical patent/TWI851306B/en
Application granted granted Critical
Publication of TWI851306B publication Critical patent/TWI851306B/en
Publication of TW202501308A publication Critical patent/TW202501308A/en

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

An active chatbot system with behavioral awareness and on-demand conversational and method thereof is disclosed. By continuous sensing a user behavior state thought a client, and transmitting the user behavior state and an on-demand conversation setting to a server for generating a rough question message with natural language structure, and then inputting the rough question message into a finite state machine to generate a precise question message, and then the server sends the precise question message to an AI platform to obtain a corresponding answer message and storing into an answer list, and filtering the answer message from the answer list according to the on-demand conversation setting as an on-demand conversation messages and transmitting to the client for output. The mechanism is help to improve the human-computer interaction and initiative of chatbot.

Description

具行為感知與隨選對話之主動聊天機器人之系統及其方法System and method for active chat robot with behavior perception and on-demand dialogue

本發明涉及一種聊天機器人之系統及其方法,特別是具行為感知與隨選對話之主動聊天機器人之系統及其方法。The present invention relates to a chatbot system and method, and in particular to an active chatbot system and method with behavior perception and on-demand dialogue.

近年來,隨著人工智慧的普及與蓬勃發展,各種人工智慧的應用便如雨後春筍般地湧現。其中,又以聊天機器人最受矚目。In recent years, with the popularization and rapid development of artificial intelligence, various applications of artificial intelligence have emerged like mushrooms after rain. Among them, chatbots have attracted the most attention.

一般而言,傳統的聊天機器人均使用被動式聊天方式進行人機對話,也就是說,當使用者傳送問題時,聊天機器人才根據問題回覆答案,倘若使用者不進行提問,聊天機器人也不會作任何回應,頂多只有在初始時才會主動回覆歡迎訊息或是引導訊息,故具有無法主動提供人機互動聊天的問題。Generally speaking, traditional chatbots use a passive chat method for human-computer dialogue. That is, when the user sends a question, the chatbot will reply with an answer based on the question. If the user does not ask a question, the chatbot will not make any response. At most, it will actively reply with a welcome message or a guidance message at the beginning. Therefore, it has the problem of being unable to actively provide human-computer interactive chat.

有鑑於此,便有廠商提出根據使用者瀏覽紀錄作為主動詢問的技術手段,舉例來說,當使用者在網頁瀏覽某物品時,聊天機器人主動詢問是否想要購買此物品或是詳細介紹此物品。然而,此方式雖然能夠主動回覆訊息,但是互動方式生硬且呆板,更不具有人性化,無法稱之為聊天,故仍然無法有效解決主動提供人機互動聊天的問題。In view of this, some manufacturers have proposed a technical means of actively asking questions based on user browsing records. For example, when a user browses an item on a web page, a chatbot actively asks whether the user wants to buy the item or introduces the item in detail. However, although this method can actively reply to messages, the interaction is stiff and rigid, and it is not humane. It cannot be called a chat, so it still cannot effectively solve the problem of actively providing human-computer interactive chat.

綜上所述,可知先前技術在長期以來一直存在無法主動提供人機互動聊天的問題,因此實有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that the previous technology has long been unable to actively provide human-computer interactive chat, so it is necessary to propose improved technical means to solve this problem.

本發明揭露一種具行為感知與隨選對話之主動聊天機器人之系統及其方法。The present invention discloses a system and method for an active chat robot with behavior perception and on-demand dialogue.

首先,本發明揭露一種具行為感知與隨選對話之主動聊天機器人之系統,此系統包含:人工智慧平台、客戶端主機及伺服端主機。其中,人工智慧平台用以通過應用程式介面(Application Programming Interface, API)接收精確提問訊息,並且將此精確提問訊息輸入至大型語言模型(Large Language Model, LLM)以產生回答訊息,再通過應用程式介面傳送回答訊息至伺服端主機。接著,在客戶端主機的部分,其包含:傳感器、第一非暫態計算機可讀儲存媒體及第一硬體處理器。其中,傳感器用以持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成用戶行為狀態;第一非暫態計算機可讀儲存媒體用以儲存多個第一計算機可讀指令;第一硬體處理器電性連接第一非暫態計算機可讀儲存媒體及傳感器,用以執行所述多個第一計算機可讀指令,使客戶端主機持續傳送用戶行為狀態及多個隨選對話設定,其中,所述隨選對話設定包含時間訊息及篩選參數。另外,在伺服端主機的部分,其連接客戶端主機以接收用戶行為狀態及隨選對話設定,所述伺服端主機包含:有限狀態機控制器、第二非暫態計算機可讀儲存媒體及第二硬體處理器。其中,有限狀態機控制器整合多個有限狀態機;第二非暫態計算機可讀儲存媒體用以儲存多個第二計算機可讀指令;第二硬體處理器電性連接第二非暫態計算機可讀儲存媒體及該有限狀態機控制器,用以執行多個第二計算機可讀指令,使伺服端主機執行:根據接收到的用戶行為狀態及隨選對話設定生成具有自然語言結構的粗略提問訊息;將粗略提問訊息輸入有限狀態機進行解析及轉換有限狀態機的狀態,用以生成精確提問訊息且傳送至人工智慧平台;自人工智慧平台接收與精確提問訊息相應的回答訊息,並且將回答訊息儲存至回答清單;以及自動從回答清單中,篩選出符合時間訊息及篩選參數的回答訊息以作為依據隨選對話設定所生成的隨選對話訊息,並且將隨選對話訊息傳送至客戶端主機進行輸出。First, the present invention discloses a system of an active chat robot with behavior perception and on-demand dialogue, which includes: an artificial intelligence platform, a client host and a server host. The artificial intelligence platform is used to receive a precise question message through an application programming interface (API), and input the precise question message into a large language model (LLM) to generate an answer message, and then transmit the answer message to the server host through the application programming interface. Then, the client host includes: a sensor, a first non-transient computer-readable storage medium and a first hardware processor. The sensor is used to continuously sense at least one of physiological state, facial expression and body movement to generate user behavior state; the first non-transitory computer-readable storage medium is used to store multiple first computer-readable instructions; the first hardware processor is electrically connected to the first non-transitory computer-readable storage medium and the sensor to execute the multiple first computer-readable instructions, so that the client host continuously transmits the user behavior state and multiple on-demand dialogue settings, wherein the on-demand dialogue settings include time information and filtering parameters. In addition, in the part of the server host, it is connected to the client host to receive the user behavior status and the on-demand dialogue setting, and the server host includes: a finite state machine controller, a second non-transient computer-readable storage medium and a second hardware processor. Among them, the finite state machine controller integrates multiple finite state machines; the second non-transient computer-readable storage medium is used to store multiple second computer-readable instructions; the second hardware processor is electrically connected to the second non-transient computer-readable storage medium and the finite state machine controller to execute multiple second computer-readable instructions, so that the server host executes: generating a rough question message with a natural language structure according to the received user behavior status and on-demand dialogue setting; transmitting the rough question message to the client host; The finite state machine is input for parsing and converting the state of the finite state machine to generate a precise question message and transmit it to the artificial intelligence platform; an answer message corresponding to the precise question message is received from the artificial intelligence platform, and the answer message is stored in an answer list; and an answer message that meets the time message and the filter parameter is automatically selected from the answer list as an on-demand dialogue message generated according to the on-demand dialogue setting, and the on-demand dialogue message is transmitted to the client host for output.

另外,本發明還揭露一種具行為感知與隨選對話之主動聊天機器人之方法,其步驟包括:將伺服端主機分別與人工智慧平台及客戶端主機相互連接;客戶端主機通過傳感器持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成用戶行為狀態;客戶端主機持續將用戶行為狀態及多個隨選對話設定傳送至伺服端主機,其中,所述隨選對話設定包含時間訊息及篩選參數;伺服端主機根據接收到的用戶行為狀態及隨選對話設定生成具有自然語言結構的粗略提問訊息,並且將粗略提問訊息輸入多個有限狀態機進行解析及轉換有限狀態機的狀態以生成精確提問訊息;伺服端主機通過人工智慧平台的應用程式介面傳送精確提問訊息至人工智慧平台;人工智慧平台將精確提問訊息輸入至大型語言模型以產生回答訊息,再通過應用程式介面將回答訊息傳送至伺服端主機;伺服端主機自人工智慧平台接收與精確提問訊息相應的回答訊息,並且將所述回答訊息儲存至回答清單,以及自動從回答清單中,篩選出符合時間訊息及篩選參數的回答訊息以作為隨選對話訊息,並且將隨選對話訊息傳送至客戶端主機進行輸出。In addition, the present invention also discloses a method for an active chat robot with behavior perception and on-demand dialogue, the steps of which include: connecting a server host to an artificial intelligence platform and a client host respectively; the client host continuously senses at least one of physiological state, facial expression and body movement through a sensor to generate a user behavior state; the client host continuously transmits the user behavior state and a plurality of on-demand dialogue settings to the server host, wherein the on-demand dialogue settings include a time message and a filtering parameter; the server host generates a rough question message with a natural language structure according to the received user behavior state and on-demand dialogue settings, and inputs the rough question message into a plurality of finite state The server-side host parses and transforms the state of the finite state machine to generate a precise question message; the server-side host transmits the precise question message to the artificial intelligence platform through the application programming interface of the artificial intelligence platform; the artificial intelligence platform inputs the precise question message into the large language model to generate an answer message, and then transmits the answer message to the server-side host through the application programming interface; the server-side host receives the answer message corresponding to the precise question message from the artificial intelligence platform, and stores the answer message in an answer list, and automatically filters out the answer message that meets the time message and the filtering parameter from the answer list as an on-demand dialogue message, and transmits the on-demand dialogue message to the client-side host for output.

本發明所揭露之系統與方法如上,與先前技術的差異在於本發明是透過客戶端主機持續感測用戶行為狀態,並且將其與隨選對話設定傳送至伺服端主機以生成具有自然語言結構的粗略提問訊息,再將此粗略提問訊息輸入至有限狀態機以生成精確提問訊息,接著,伺服端主機將此精確提問訊息傳送至人工智慧平台並獲得相應的回答訊息,以及將獲得的回答訊息儲存至回答清單中,再從中篩選出符合隨選對話設定的回答訊息以作為隨選對話訊息且傳送至客戶端主機進行輸出。The system and method disclosed in the present invention are as described above. The difference from the prior art is that the present invention continuously senses the user's behavior status through the client host, and transmits it and the on-demand dialogue setting to the server host to generate a rough question message with a natural language structure, and then inputs this rough question message into the finite state machine to generate a precise question message. Then, the server host transmits this precise question message to the artificial intelligence platform and obtains the corresponding answer message, and stores the obtained answer message in the answer list, and then selects the answer message that meets the on-demand dialogue setting as the on-demand dialogue message and transmits it to the client host for output.

透過上述的技術手段,本發明可以達成提高聊天機器人的人機互動性與主動性之技術功效。Through the above-mentioned technical means, the present invention can achieve the technical effect of improving the human-machine interactivity and initiative of the chat robot.

以下將配合圖式及實施例來詳細說明本發明之實施方式,藉此對本發明如何應用技術手段來解決技術問題並達成技術功效的實現過程能充分理解並據以實施。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用以通過應用程式介面接收精確提問訊息,並且將此精確提問訊息輸入至大型語言模型以產生回答訊息,再通過應用程式介面傳送回答訊息至伺服端主機130。在實際實施上,所述人工智慧平台110是使用大型語言模型的聊天機器人,所述大型語言模型如:生成型預訓練變換模型(Generative Pre-trained Transformer, GPT)、PaLM、Galactica、LLaMA、LaMDA或其相似物。First, please refer to "Figure 1", which is a system block diagram of the active chatbot system with behavior perception and on-demand dialogue of the present invention, and the system includes: an artificial intelligence platform 110, a client host 120 and a server host 130. Among them, the artificial intelligence platform 110 is used to receive precise question messages through an application program interface, and input the precise question messages into a large language model to generate answer messages, and then send the answer messages to the server host 130 through the application program interface. In actual implementation, the artificial intelligence platform 110 is a chatbot using a large language model, such as a generative pre-trained transformer model (GPT), PaLM, Galactica, LLaMA, LaMDA or the like.

在客戶端主機120的部分,其包含:傳感器121、第一非暫態計算機可讀儲存媒體122及第一硬體處理器123。其中,傳感器121用以持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成用戶行為狀態。在實際實施上,傳感器121可感測血壓、心跳、脈搏、血糖等生理特徵來判斷生理狀態,如:高興、興奮、沮喪等等;或是通過感測人臉、虹膜等等來判斷臉部表情及心情;或是通過配戴在人體四肢的傳感器,如:三軸加速度感應器、陀螺儀等等來感測使用者的肢體動作。如:行走、跑步、跳舞等等。The client host 120 includes: a sensor 121, a first non-transitory computer-readable storage medium 122 and a first hardware processor 123. The sensor 121 is used to continuously sense at least one of physiological state, facial expression and body movement to generate user behavior state. In actual implementation, the sensor 121 can sense physiological characteristics such as blood pressure, heartbeat, pulse, blood sugar, etc. to determine physiological state, such as: happiness, excitement, frustration, etc.; or by sensing the face, iris, etc. to determine facial expression and mood; or by wearing sensors on the limbs of the human body, such as: three-axis acceleration sensor, gyroscope, etc. to sense the user's body movement. For example: walking, running, dancing, etc.

第一非暫態計算機可讀儲存媒體122用以儲存多個第一計算機可讀指令。在實際實施上,所述第一非暫態計算機可讀儲存媒體122可包含硬碟、光碟、快閃記憶體或其相似物。另外,所述第一計算機可讀指令是指可被客戶端主機120,如:客戶端的計算機(或稱之為電腦)解讀和執行的指令。The first non-transitory computer-readable storage medium 122 is used to store a plurality of first computer-readable instructions. In practical implementation, the first non-transitory computer-readable storage medium 122 may include a hard disk, an optical disk, a flash memory or the like. In addition, the first computer-readable instructions refer to instructions that can be interpreted and executed by the client host 120, such as a client computer (or computer).

第一硬體處理器123電性連接第一非暫態計算機可讀儲存媒體122及傳感器121,用以執行所述多個第一計算機可讀指令,使客戶端主機120持續傳送用戶行為狀態及多個隨選對話設定,其中,所述隨選對話設定包含時間訊息及篩選參數。以時間訊息為例,其可包含年、月、日、時、分、秒,甚至是時間區段等等,用以作為判斷回答訊息與時間相關聯的依據,舉例來說,判斷回答訊息是否已過期、設定定時反饋(如:每天上午十二點傳送提醒用餐的隨選對話訊息),或是其它與時間相關聯的情況,例如:早晨與早餐相關聯、凌晨0點至凌晨4點與睡眠相關聯、國定假日與固定的日期相關聯、生日與指定的日期相關聯等等,所以當時間落在早晨的範圍內時,可篩選出與早餐相關的回答訊息、當時間落在凌晨0點至凌晨4點時,可篩選出與睡眠相關的回答訊息,以及當時間為國定假日時,可篩選出包含此國定假日的回答訊息。另外,以篩選參數為例,所述篩選參數係用以設定同意接收的回答訊息,以及拒絕接收的回答訊息,換句話說,可由使用者根據自己的喜好所設定,例如:設定過濾掉包含政治、宗教類的聊天內容、設定僅接收娛樂類的聊天內容等等。The first hardware processor 123 is electrically connected to the first non-transitory computer-readable storage medium 122 and the sensor 121 to execute the plurality of first computer-readable instructions so that the client host 120 continuously transmits the user behavior state and a plurality of on-demand session settings, wherein the on-demand session settings include time information and filtering parameters. Taking time messages as an example, they may include year, month, day, hour, minute, second, or even time range, etc., which are used as the basis for determining whether the answer message is related to time, for example, to determine whether the answer message has expired, set timed feedback (such as sending an on-demand dialogue message to remind you to eat at 12:00 a.m. every day), or other situations related to time, such as: morning is related to breakfast, 00:00 to 4:00 a.m. is related to sleep, national holidays are related to fixed dates, birthdays are related to specified dates, etc. Therefore, when the time falls within the morning range, answer messages related to breakfast can be filtered out, when the time falls between 00:00 and 4:00 a.m., answer messages related to sleep can be filtered out, and when the time is a national holiday, answer messages containing this national holiday can be filtered out. In addition, taking the filtering parameters as an example, the filtering parameters are used to set the reply messages that are agreed to be received and the reply messages that are refused to be received. In other words, the user can set it according to his or her own preferences, for example: set to filter out chat content containing politics and religion, set to receive only entertainment chat content, etc.

接著,在伺服端主機130的部分,其連接客戶端主機120以接收用戶行為狀態及隨選對話設定,所述伺服端主機130包含:有限狀態機控制器131、第二非暫態計算機可讀儲存媒體132及第二硬體處理器133。其中,有限狀態機控制器131整合多個有限狀態機,例如:有限狀態機可包含米利型有限狀態機(Mealy Machine)及摩爾型有限狀態機(Moore Machine)狀態機,並且可根據隨選對話設定的不同需求選擇使用至少其中一種以產生比粗略提問訊息更為精確的精確提問訊息。實際上,可以先將各個隨選對話設定轉成狀態表,然後依照正反器激勵表(Excitation Table)設定正反器之轉態表(Transition Table),接著再利用卡諾圖(Karnaugh Map)求出各正反器的輸入方程式,即可生成最後的有限狀態機之電路圖,並且基於此電路圖封裝成積體電路(Integrated Circuit, IC)後實現有限狀態機控制器131。Next, in the part of the server host 130, it is connected to the client host 120 to receive the user behavior state and the on-demand dialogue setting, and the server host 130 includes: a finite state machine controller 131, a second non-transient computer-readable storage medium 132 and a second hardware processor 133. Among them, the finite state machine controller 131 integrates multiple finite state machines, for example: the finite state machine can include a Mealy Machine and a Moore Machine state machine, and at least one of them can be selected to generate a more accurate question message than a rough question message according to different requirements of the on-demand dialogue setting. In practice, each on-demand dialogue setting can be converted into a state table first, and then the transition table of the flip-flop can be set according to the excitation table of the flip-flop. Then, the input equation of each flip-flop can be obtained using the Karnaugh Map to generate the final circuit diagram of the finite state machine. The circuit diagram can then be packaged into an integrated circuit (IC) to implement the finite state machine controller 131.

第二非暫態計算機可讀儲存媒體132用以儲存多個第二計算機可讀指令。在實際實施上,所述第二非暫態計算機可讀儲存媒體132與第一非暫態計算機可讀儲存媒體122大同小異,差別僅在於前者是伺服端主機130的非暫態計算機可讀儲存媒體,儲存供伺服端主機130執行的計算機可讀指令(即:第二計算機可讀指令),後者是客戶端主機120的非暫態計算機可讀儲存媒體,儲存供客戶端主機120執行的計算機可讀指令(即:第一計算機可讀指令)。The second non-transitory computer-readable storage medium 132 is used to store a plurality of second computer-readable instructions. In actual implementation, the second non-transitory computer-readable storage medium 132 is similar to the first non-transitory computer-readable storage medium 122, the only difference being that the former is a non-transitory computer-readable storage medium of the server host 130, storing computer-readable instructions (i.e., second computer-readable instructions) for execution by the server host 130, while the latter is a non-transitory computer-readable storage medium of the client host 120, storing computer-readable instructions (i.e., first computer-readable instructions) for execution by the client host 120.

第二硬體處理器133電性連接第二非暫態計算機可讀儲存媒體132及有限狀態機控制器131,用以執行多個第二計算機可讀指令,使伺服端主機130執行:根據接收到的用戶行為狀態及隨選對話設定生成具有自然語言結構的粗略提問訊息;將粗略提問訊息輸入有限狀態機進行解析及轉換有限狀態機的狀態,用以生成精確提問訊息且傳送至人工智慧平台110;自人工智慧平台110接收與精確提問訊息相應的回答訊息,並且將回答訊息儲存至回答清單;以及自動從回答清單中,篩選出符合時間訊息及篩選參數的回答訊息以作為依據隨選對話設定所生成的隨選對話訊息,並且將隨選對話訊息傳送至客戶端主機120進行輸出。舉例來說,假設伺服端主機130接收到的用戶行為狀態為「運動」、隨選對話設定包含時間訊息「AM 08:00」及篩選參數「僅接受實現難度低的建議」,此時,第二硬體處理器133會根據「運動」、「AM 08:00」及「難度低」產生相應的粗略提問訊息,如:「運動、AM 08:00、難度低」,接著,將此粗略提問訊息輸入至有限狀態機進行解析及轉換有限狀態機的狀態,例如:根據「運動」定義問題類型,根據「AM 08:00」定義問題的具體時間狀態,以及根據「難度低」定義問題的範圍,然後使用預定義的模板或語法規則生成精確提問訊息,例如:「請列出可以在早上八點進行且難度低的運動」、「現在是早上八點,正在進行難度低的運動,請問有何建議?」。接下來,將精確提問訊息傳送至人工智慧平台110以獲得相應的回答訊息,然後將所有回答訊息儲存至回答清單,以便第二硬體處理器133自動從回答清單中,篩選出符合時間訊息及篩選參數的回答訊息以作為隨選對話訊息,舉例來說,假設在早上八點及晚上六點皆有感測到使用者運動,並且皆獲得相應的回答訊息儲存至回答清單中,倘若當前的時間為晚上,將排除與早上相關的回答訊息,僅選出與晚上相關的回答訊息作為隨選對話訊息。最後,第二硬體處理器133會驅動傳輸元件,以便主動將隨選對話訊息傳送至客戶端主機120進行輸出。換句話說,當伺服端主機130接收到用戶行為狀態時,將觸發主動隨選對話,並且根據隨選對話設定來篩選出符合的回答訊息作為隨選對話訊息。The second hardware processor 133 is electrically connected to the second non-transitory computer-readable storage medium 132 and the finite state machine controller 131, and is used to execute a plurality of second computer-readable instructions to enable the server host 130 to execute: generating a rough question message with a natural language structure according to the received user behavior state and the on-demand dialogue setting; inputting the rough question message into the finite state machine for parsing and converting the state of the finite state machine, so as to Generate a precise question message and transmit it to the artificial intelligence platform 110; receive an answer message corresponding to the precise question message from the artificial intelligence platform 110, and store the answer message in an answer list; and automatically filter out answer messages that meet the time message and the filter parameters from the answer list as on-demand dialogue messages generated according to on-demand dialogue settings, and transmit the on-demand dialogue messages to the client host 120 for output. For example, assuming that the user behavior state received by the server host 130 is "exercise", the on-demand dialogue setting includes the time message "AM 08:00" and the filter parameter "only accept suggestions with low difficulty to implement", then the second hardware processor 133 will generate a corresponding rough question message according to "exercise", "AM 08:00" and "low difficulty", such as: "exercise, AM 08:00, low difficulty", and then input this rough question message into the finite state machine for parsing and converting the state of the finite state machine, for example: define the question type according to "exercise", and select "AM 08:00" according to "low difficulty". 08:00” and the scope of the question according to “low difficulty”, and then use predefined templates or grammatical rules to generate precise question messages, such as “Please list exercises that can be done at 8 a.m. and are easy to do”, “It is 8 a.m. now and I am doing exercises that are easy to do. Do you have any suggestions?”. Next, the precise question message is sent to the artificial intelligence platform 110 to obtain the corresponding answer message, and then all the answer messages are stored in the answer list, so that the second hardware processor 133 automatically selects the answer message that meets the time message and the filter parameter from the answer list as the on-demand dialogue message. For example, if the user's movement is sensed at 8 am and 6 pm, and the corresponding answer message is obtained and stored in the answer list, if the current time is evening, the answer message related to the morning will be excluded, and only the answer message related to the evening will be selected as the on-demand dialogue message. Finally, the second hardware processor 133 will drive the transmission element to actively transmit the on-demand dialogue message to the client host 120 for output. In other words, when the server host 130 receives the user's behavior status, it will trigger an active on-demand dialogue, and filter out the matching answer message as the on-demand dialogue message according to the on-demand dialogue setting.

特別要說明的是,在實際實施上,本發明可部分地或完全地基於硬體來實現,例如,系統中的一個或多個元件可以透過積體電路晶片、系統單晶片(System on Chip, SoC)、複雜可程式邏輯裝置(Complex Programmable Logic Device, CPLD)、現場可程式邏輯閘陣列(Field Programmable Gate Array, FPGA)等硬體處理器(Hardware Processor)來實現。本發明所述的非暫態計算機可讀儲存媒體,其上載有用於使處理器實現本發明的各個方面的計算機可讀指令(或稱為電腦程式指令),非暫態計算機可讀儲存媒體可以是可以保持和儲存由指令執行設備使用的指令的有形設備。非暫態計算機可讀儲存媒體可以是但不限於電儲存設備、磁儲存設備、光儲存設備、電磁儲存設備、半導體儲存設備或上述的任意合適的組合。計算機可讀儲存媒體的更具體的例子(非窮舉的列表)包括:硬碟、隨機存取記憶體、唯讀記憶體、快閃記憶體、光碟、軟碟以及上述的任意合適的組合。此處所使用的非暫態計算機可讀儲存媒體不被解釋爲瞬時訊號本身,諸如無線電波或者其它自由傳播的電磁波、通過波導或其它傳輸媒介傳播的電磁波(例如,通過光纖電纜的光訊號)、或者通過電線傳輸的電訊號。另外,此處所描述的計算機可讀指令可以從非暫態計算機可讀儲存媒體下載到各個計算/處理設備,或者通過網路,例如:網際網路、區域網路、廣域網路及/或無線網路下載到外部電腦設備或外部儲存設備。所述網路可以包括銅傳輸電纜、光纖傳輸、無線傳輸、路由器、防火牆、交換器、集線器及/或閘道器。每一個計算/處理設備中的網路卡或者網路介面從網路接收計算機可讀指令,並轉發此計算機可讀指令,以供儲存在各個計算/處理設備中的非暫態計算機可讀儲存媒體中。執行本發明操作的計算機可讀指令可以是組合語言指令、指令集架構指令、機器指令、機器相關指令、微指令、韌體指令、或者以一種或多種程式語言的任意組合編寫的原始碼或目的碼(Object Code),所述程式語言包括物件導向的程式語言,如:Common Lisp、Python、C++、Objective-C、Smalltalk、Delphi、Java、Swift、C#、Perl、Ruby與PHP等,以及常規的程序式(Procedural)程式語言,如:C語言或類似的程式語言。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. The 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 (non-exhaustive list) of computer-readable storage media include: hard drives, random access memory, read-only memory, flash memory, optical disks, floppy disks, and any suitable combination of the foregoing. As used herein, non-transitory computer-readable storage media 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 various computing/processing devices, or downloaded to an external computer device or external storage device through 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 the non-transitory computer readable storage medium in each computing/processing device. 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 or similar programming languages.

請參閱「第2A圖」及「第2B圖」,「第2A圖」及「第2B圖」為本發明具行為感知與隨選對話之主動聊天機器人之方法的方法流程圖,其步驟包括:將伺服端主機130分別與人工智慧平台110及客戶端主機120相互連接(步驟210);客戶端主機120通過傳感器121持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成用戶行為狀態(步驟220);客戶端主機120持續將用戶行為狀態及多個隨選對話設定傳送至伺服端主機130,其中,所述隨選對話設定包含時間訊息及篩選參數(步驟230);伺服端主機130根據接收到的用戶行為狀態及隨選對話設定生成具有自然語言結構的粗略提問訊息,並且將粗略提問訊息輸入多個有限狀態機進行解析及轉換有限狀態機的狀態以生成精確提問訊息(步驟240);伺服端主機130通過人工智慧平台110的應用程式介面傳送精確提問訊息至人工智慧平台110(步驟250);人工智慧平台110將精確提問訊息輸入至大型語言模型以產生回答訊息,再通過應用程式介面將回答訊息傳送至伺服端主機130(步驟260);伺服端主機130自人工智慧平台110接收與精確提問訊息相應的回答訊息,並且將所述回答訊息儲存至回答清單,以及自動從回答清單中,篩選出符合時間訊息及篩選參數的回答訊息以作為隨選對話訊息,並且將隨選對話訊息傳送至客戶端主機120進行輸出(步驟270)。透過上述步驟,即可透過客戶端主機持續感測用戶行為狀態,並且將其與隨選對話設定傳送至伺服端主機以生成具有自然語言結構的粗略提問訊息,再將此粗略提問訊息輸入至有限狀態機以生成精確提問訊息,接著,伺服端主機將此精確提問訊息傳送至人工智慧平台並獲得相應的回答訊息,以及將獲得的回答訊息儲存至回答清單中,再從中篩選出符合隨選對話設定的回答訊息以作為隨選對話訊息且傳送至客戶端主機進行輸出。Please refer to "FIG. 2A" and "FIG. 2B", which are the method flow charts of the method of the active chat robot with behavior perception and on-demand dialogue of the present invention, and the steps include: connecting the server host 130 to the artificial intelligence platform 110 and the client host 120 respectively (step 210); the client host 120 continuously senses the physiological state, facial expression and body movement through the sensor 121 The client host 120 continuously transmits the user behavior state and a plurality of on-demand dialogue settings to the server host 130, wherein the on-demand dialogue settings include a time message and a filter parameter (step 230); the server host 130 generates a rough question message with a natural language structure according to the received user behavior state and on-demand dialogue settings, and sends the rough question message to the server host 130. The question message is input into a plurality of finite state machines for parsing and converting the states of the finite state machines to generate an accurate question message (step 240); the server host 130 transmits the accurate question message to the artificial intelligence platform 110 through the application programming interface of the artificial intelligence platform 110 (step 250); the artificial intelligence platform 110 inputs the accurate question message into the large language model to generate an answer message, and then transmits the answer message through the application programming interface The server host 130 receives the answer message corresponding to the precise question message from the artificial intelligence platform 110, stores the answer message in the answer list, and automatically selects the answer message that meets the time message and the filter parameter from the answer list as the on-demand dialogue message, and transmits the on-demand dialogue message to the client host 120 for output (step 270). Through the above steps, the user's behavior status can be continuously sensed through the client host, and it can be transmitted to the server host together with the on-demand dialogue setting to generate a rough question message with a natural language structure, and then the rough question message is input into the finite state machine to generate a precise question message. Then, the server host transmits the precise question message to the artificial intelligence platform and obtains the corresponding answer message, and stores the obtained answer message in the answer list, and then filters out the answer message that meets the on-demand dialogue setting as the on-demand dialogue message and transmits it to the client host for output.

以下配合「第3圖」至「第5圖」以實施例的方式進行如下說明,如「第3圖」所示意,「第3圖」為應用本發明的主動聊天機器人之示意圖。首先,伺服端主機130分別與人工智慧平台110及客戶端主機120相互連接。客戶端主機120通過傳感器持續感測使用者的生理狀態、臉部表情及肢體動作至少其中之一以生成用戶行為狀態,並且通過輸入介面持續將用戶行為狀態及多個隨選對話設定傳送至伺服端主機130,其中,隨選對話設定包含時間訊息及篩選參數。伺服端主機130的狀態管理模組會根據接收到的用戶行為狀態及隨選對話設定生成具有自然語言結構的粗略提問訊息,並且將已生成的粗略提問訊息輸入有限狀態機進行解析及轉換有限狀態機的狀態以生成精確提問訊息。接著,伺服端主機130通過人工智慧平台110的 API 傳送精確提問訊息至人工智慧平台110。此時,人工智慧平台110會將精確提問訊息輸入至大型語言模型以產生回答訊息,再通過 API 將回答訊息傳送至伺服端主機130。當伺服端主機130從人工智慧平台110接收到與精確提問訊息相應的回答訊息後,會將回答訊息儲存至回答清單中,並且主動從回答清單中,篩選出符合隨選對話設定(即:時間訊息及篩選參數)的回答訊息作為隨選對話訊息,再將篩選出的隨選對話訊息傳送至客戶端主機120,以便通過顯示介面進行輸出。至此,聊天機器人即完成根據感測到的用戶行為狀態主動傳送隨選對話訊息以與使用者進行主動式的人機互動。特別要說明的是,所述狀態管理模組及主動隨選對話模組是通過硬體處理器執行計算機可讀指令來實現。The following is explained in the form of an embodiment in conjunction with "Figures 3" to "Figure 5". As shown in "Figure 3", "Figure 3" is a schematic diagram of an active chat robot using the present invention. First, the server host 130 is connected to the artificial intelligence platform 110 and the client host 120 respectively. The client host 120 continuously senses at least one of the user's physiological state, facial expression and body movement through a sensor to generate a user behavior state, and continuously transmits the user behavior state and multiple on-demand dialogue settings to the server host 130 through an input interface, wherein the on-demand dialogue setting includes a time message and a filtering parameter. The state management module of the server host 130 generates a rough question message with a natural language structure according to the received user behavior state and the on-demand dialogue setting, and inputs the generated rough question message into the finite state machine for parsing and converting the state of the finite state machine to generate a precise question message. Then, the server host 130 transmits the precise question message to the artificial intelligence platform 110 through the API of the artificial intelligence platform 110. At this time, the artificial intelligence platform 110 inputs the precise question message into the large language model to generate an answer message, and then transmits the answer message to the server host 130 through the API. When the server host 130 receives the answer message corresponding to the precise question message from the artificial intelligence platform 110, the answer message will be stored in the answer list, and the answer message that meets the on-demand dialogue setting (i.e., time message and filter parameter) will be actively selected from the answer list as the on-demand dialogue message, and the selected on-demand dialogue message will be transmitted to the client host 120 for output through the display interface. At this point, the chatbot has completed the active transmission of the on-demand dialogue message according to the sensed user behavior state to conduct active human-computer interaction with the user. It should be particularly noted that the state management module and the active on-demand dialogue module are implemented by the hardware processor executing computer-readable instructions.

如「第4圖」所示意,「第4圖」為應用本發明的有限狀態機之示意圖。在實際實施上,將粗略提問訊息輸入至有限狀態機400時,可先從粗略提問訊息判斷問題中是否存在用戶行為狀態(簡稱為狀態,如:運動),接著判斷是否存在時間(例如:早上八點),然後判斷是否存在範圍(例如:難易度低),最後根據存在的狀態、時間及範圍選擇適合套用的預定義模板進行輸出。其中,所述預定義模板是指尚未嵌入狀態、時間、範圍或其組合的自然語言架構之提問語句模板,例如:「現在是[時間],正在進行[範圍]的[狀態],請問有何建議」,其中,中括號內分別代表要嵌入的詞彙類型。以上例而言,嵌入後的提問語句為「現在是早上八點,正在進行難易度低的運動,請問有何建議」,最後將此提問語句作為精確提問訊息。特別要說明的是,除了可以同時包含狀態、時間及範圍之外,也可僅包含其中任意一種,如:「我正在[狀態],請在此基礎上條列需要注意的事項」、「請條列五種與[狀態]有關的建議」等等。As shown in "Figure 4", "Figure 4" is a schematic diagram of the finite state machine to which the present invention is applied. In actual implementation, when a rough question message is input into the finite state machine 400, it is first possible to determine from the rough question message whether there is a user behavior state (abbreviated as state, such as: movement) in the question, then determine whether there is a time (for example: eight o'clock in the morning), and then determine whether there is a range (for example: low difficulty), and finally select a suitable predefined template for application based on the existing state, time and range for output. Among them, the predefined template refers to a question sentence template of a natural language structure that has not yet embedded a state, time, range or a combination thereof, for example: "Now is [time], and [state] of [range] is in progress. Do you have any suggestions?", wherein the brackets represent the types of vocabulary to be embedded. In the above example, the embedded question sentence is "It is 8 o'clock in the morning, and I am doing a low-difficulty exercise. Do you have any suggestions?" This question sentence is finally used as a precise question message. It should be noted that in addition to including status, time and range at the same time, it can also include only any one of them, such as: "I am in [status], please list the things I need to pay attention to based on this", "Please list five suggestions related to [status]", etc.

如「第5圖」所示意,「第5圖」為應用本發明在回答清單中主動篩選出回答訊息之示意圖。假設回答清單500中已存在多筆回答訊息,當隨選對話設定的篩選參數新增「難度低」時,伺服端主機130在進行主動隨選對話時,將篩選出上方第一筆的回答訊息作為隨選對話訊息,因為該筆回答訊息限制了難度低的範圍。另外,假設隨選對話設定的時間訊息係設定定時反饋,時間為「中午十二點」,那麼,當時間為中午十二點時,伺服端主機130進行主動隨選對話會從回答清單500中篩選出包含相似關鍵字(如:中午十二點)的回答訊息作為隨選對話訊息。如此一來,即使使用者沒有詢問問題,應用本發明的聊天機器人也會根據用戶行為狀態、定時反饋等等,主動提供隨選對話訊息給使用者,有效提高聊天機器人的人機互動性與主動性。要補充說明的是,在實際實施上,伺服端主機130亦可直接從客戶端主機120接收使用者輸入的訊息作為精確提問訊息(例如:請列出三種適合在中午食用的餐飲),並且通過 API 傳送至人工智慧平台110以獲得相應的回答訊息(例如:雞排飯、雞腿飯及火鍋),然後再將此回答訊息傳送至客戶端主機120以通過顯示介面510進行輸出。As shown in FIG. 5 , FIG. 5 is a schematic diagram of applying the present invention to actively filter out answer messages in an answer list. Assuming that there are multiple answer messages in the answer list 500 , when the filter parameter of the on-demand dialogue setting is newly added with “low difficulty”, the server host 130 will filter out the first answer message from the top as the on-demand dialogue message when performing the active on-demand dialogue, because the answer message limits the range of low difficulty. In addition, assuming that the time message of the on-demand dialogue setting is to set the timed feedback, and the time is "12 noon", then when the time is 12 noon, the server host 130 will filter out the answer message containing similar keywords (such as: 12 noon) from the answer list 500 as the on-demand dialogue message when actively conducting the on-demand dialogue. In this way, even if the user does not ask a question, the chatbot using the present invention will actively provide the user with the on-demand dialogue message based on the user's behavior status, timed feedback, etc., effectively improving the human-machine interaction and initiative of the chatbot. It should be noted that, in actual implementation, the server host 130 can also directly receive the user input message from the client host 120 as a precise question message (for example: please list three meals suitable for lunch), and transmit it to the artificial intelligence platform 110 through the API to obtain the corresponding answer message (for example: chicken fillet rice, chicken drumstick rice and hot pot), and then transmit this answer message to the client host 120 for output through the display interface 510.

綜上所述,可知本發明與先前技術之間的差異在於透過客戶端主機持續感測用戶行為狀態,並且將其與隨選對話設定傳送至伺服端主機以生成具有自然語言結構的粗略提問訊息,再將此粗略提問訊息輸入至有限狀態機以生成精確提問訊息,接著,伺服端主機將此精確提問訊息傳送至人工智慧平台並獲得相應的回答訊息,以及將獲得的回答訊息儲存至回答清單中,再從中篩選出符合隨選對話設定的回答訊息以作為隨選對話訊息且傳送至客戶端主機進行輸出,藉由此一技術手段可以解決先前技術所存在的問題,進而達成提高聊天機器人的人機互動性與主動性之技術功效。In summary, the difference between the present invention and the prior art lies in that the client host continuously senses the user's behavior status, and transmits it and the on-demand dialogue setting to the server host to generate a rough question message with a natural language structure, and then inputs the rough question message into the finite state machine to generate a precise question message. Then, the server host transmits the precise question message to the artificial intelligence platform and obtains the corresponding answer message, and stores the obtained answer message in the answer list, and then selects the answer message that meets the on-demand dialogue setting as the on-demand dialogue message and transmits it to the client host for output. This technical means can solve the problems existing in the prior art, and thus achieve the technical effect of improving the human-computer interactivity and initiative of the chatbot.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明,任何熟習相像技藝者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。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:第一硬體處理器 130:伺服端主機 131:有限狀態機控制器 132:第二非暫態計算機可讀儲存媒體 133:第二硬體處理器 400:有限狀態機 500:回答清單 510:顯示介面 步驟210:將一伺服端主機分別與一人工智慧平台及一客戶端主機相互連接 步驟220:該客戶端主機通過至少一傳感器持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成一用戶行為狀態 步驟230:該客戶端主機持續將該用戶行為狀態及多個隨選對話設定傳送至該伺服端主機,其中,所述隨選對話設定包含一時間訊息及一篩選參數 步驟240:該伺服端主機根據接收到的所述用戶行為狀態及所述隨選對話設定生成具有自然語言結構的一粗略提問訊息,並且將該粗略提問訊息輸入多個有限狀態機進行解析及轉換所述有限狀態機的狀態以生成一精確提問訊息 步驟250:該伺服端主機通過該人工智慧平台的一應用程式介面(Application Programming Interface, API)傳送該精確提問訊息至該人工智慧平台 步驟260:該人工智慧平台將該精確提問訊息輸入至大型語言模型(Large Language Model, LLM)以產生一回答訊息,再通過該應用程式介面將該回答訊息傳送至該伺服端主機 步驟270:該伺服端主機自該人工智慧平台接收與所述精確提問訊息相應的所述回答訊息,並且將所述回答訊息儲存至一回答清單,以及自動從該回答清單中,篩選出符合該時間訊息及該篩選參數的所述回答訊息以作為一隨選對話訊息,並且將該隨選對話訊息傳送至該客戶端主機進行輸出110: artificial intelligence platform 120: client host 121: sensor 122: first non-transient computer-readable storage medium 123: first hardware processor 130: server host 131: finite state machine controller 132: second non-transient computer-readable storage medium 133: second hardware processor 400: finite state machine 500: answer list 510: display interface Step 210: connect a server host to an artificial intelligence platform and a client host respectively Step 220: the client host continuously senses at least one of physiological state, facial expression and body movement through at least one sensor to generate a user behavior state Step 230: The client host continuously transmits the user behavior state and multiple on-demand dialogue settings to the server host, wherein the on-demand dialogue setting includes a time message and a filtering parameter Step 240: The server host generates a rough question message with a natural language structure according to the received user behavior state and the on-demand dialogue setting, and inputs the rough question message into multiple finite state machines for parsing and converting the states of the finite state machines to generate a precise question message Step 250: The server host transmits the precise question message to the artificial intelligence platform through an application programming interface (API) of the artificial intelligence platform Step 260: The artificial intelligence platform inputs the precise question message into the Large Language Model (LLM) to generate an answer message, and then transmits the answer message to the server host through the application program interface. Step 270: The server host receives the answer message corresponding to the precise question message from the artificial intelligence platform, and stores the answer message in an answer list, and automatically selects the answer message that meets the time message and the filter parameter from the answer list as an on-demand dialogue message, and transmits the on-demand dialogue message to the client host for output.

第1圖為本發明具行為感知與隨選對話之主動聊天機器人之系統的系統方塊圖。 第2A圖及第2B圖為本發明具行為感知與隨選對話之主動聊天機器人之方法的方法流程圖。 第3圖為應用本發明的主動聊天機器人之示意圖。 第4圖為應用本發明的有限狀態機之示意圖。 第5圖為應用本發明在回答清單中主動篩選出回答訊息之示意圖。 Figure 1 is a system block diagram of the system of the active chat robot with behavior perception and on-demand dialogue of the present invention. Figure 2A and Figure 2B are method flow charts of the method of the active chat robot with behavior perception and on-demand dialogue of the present invention. Figure 3 is a schematic diagram of the active chat robot using the present invention. Figure 4 is a schematic diagram of the finite state machine using the present invention. Figure 5 is a schematic diagram of actively filtering out answer messages in the answer list using the present invention.

110:人工智慧平台 110: Artificial Intelligence Platform

120:客戶端主機 120: Client host

121:傳感器 121:Sensor

122:第一非暫態計算機可讀儲存媒體 122: First non-transitory computer-readable storage medium

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

130:伺服端主機 130: Server host

131:有限狀態機控制器 131: Finite state machine controller

132:第二非暫態計算機可讀儲存媒體 132: Second non-transitory computer-readable storage medium

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

Claims (10)

一種具行為感知與隨選對話之主動聊天機器人之系統,該系統包含: 一人工智慧平台,用以通過一應用程式介面(Application Programming Interface, API)接收一精確提問訊息,並且將該精確提問訊息輸入至大型語言模型(Large Language Model, LLM)以產生一回答訊息,再通過該應用程式介面傳送該回答訊息; 一客戶端主機,該客戶端主機包含: 至少一傳感器,用以持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成一用戶行為狀態; 一第一非暫態計算機可讀儲存媒體,用以儲存多個第一計算機可讀指令;以及 一第一硬體處理器,電性連接所述第一非暫態計算機可讀儲存媒體及所述傳感器,用以執行所述多個第一計算機可讀指令,使該客戶端主機持續傳送該用戶行為狀態及多個隨選對話設定,其中,所述隨選對話設定包含一時間訊息及一篩選參數;以及 一伺服端主機,連接該客戶端主機以接收所述用戶行為狀態及所述隨選對話設定,該伺服端主機包含: 一有限狀態機控制器,整合多個有限狀態機(Finite State Machine, FSM); 一第二非暫態計算機可讀儲存媒體,用以儲存多個第二計算機可讀指令;以及 一第二硬體處理器,電性連接所述第二非暫態計算機可讀儲存媒體及該有限狀態機控制器,用以執行所述多個第二計算機可讀指令,使該伺服端主機執行: 根據接收到的所述用戶行為狀態及所述隨選對話設定生成具有自然語言結構的一粗略提問訊息; 將該粗略提問訊息輸入所述有限狀態機進行解析及轉換所述有限狀態機的狀態,用以生成所述精確提問訊息且傳送至該人工智慧平台; 自該人工智慧平台接收與所述精確提問訊息相應的所述回答訊息,並且將所述回答訊息儲存至一回答清單;以及 自動從該回答清單中,篩選出符合該時間訊息及該篩選參數的所述回答訊息以作為依據該隨選對話設定所生成的該隨選對話訊息,並且將該隨選對話訊息傳送至該客戶端主機進行輸出。 A system of an active chatbot with behavior perception and on-demand dialogue, the system comprising: An artificial intelligence platform, for receiving a precise question message through an application programming interface (API), and inputting the precise question message into a large language model (LLM) to generate an answer message, and then transmitting the answer message through the application programming interface; A client host, the client host comprising: At least one sensor, for continuously sensing at least one of physiological state, facial expression and body movement to generate a user behavior state; A first non-transient computer-readable storage medium, for storing a plurality of first computer-readable instructions; and A first hardware processor, electrically connected to the first non-transient computer-readable storage medium and the sensor, for executing the plurality of first computer-readable instructions, so that the client host continuously transmits the user behavior state and a plurality of on-demand dialogue settings, wherein the on-demand dialogue settings include a time message and a filter parameter; and A server host, connected to the client host to receive the user behavior state and the on-demand dialogue settings, the server host including: A finite state machine controller, integrating a plurality of finite state machines (FSM); 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-transitory computer-readable storage medium and the finite state machine controller, for executing the plurality of second computer-readable instructions to enable the server host to execute: Generate a rough question message with a natural language structure according to the received user behavior state and the on-demand dialogue setting; Input the rough question message into the finite state machine for parsing and converting the state of the finite state machine to generate the precise question message and transmit it to the artificial intelligence platform; Receive the answer message corresponding to the precise question message from the artificial intelligence platform, and store the answer message in an answer list; and Automatically filter the answer message that matches the time message and the filter parameter from the answer list as the on-demand dialogue message generated according to the on-demand dialogue setting, and transmit the on-demand dialogue message to the client host for output. 如請求項1之具行為感知與隨選對話之主動聊天機器人之系統,其中該伺服端主機係在自然語言處理(Natural Language Processing, NLP)、生成式模型(Generative Model)及模板匹配中選擇至少其中之一以生成具有自然語言結構的所述粗略提問訊息。A system of an active chatbot with behavior perception and on-demand dialogue as in claim 1, wherein the server host selects at least one of natural language processing (NLP), generative model and template matching to generate the rough question message having a natural language structure. 如請求項1之具行為感知與隨選對話之主動聊天機器人之系統,其中所述有限狀態機根據該粗略提問訊息解析關鍵字及語法結構,並且根據解析結果轉換所述有限狀態機的狀態以確定提問類型,再搭配使用預先定義的模板或語法規則生成比該粗略提問訊息具體明確的所述精確提問訊息。A system of an active chatbot with behavior perception and on-demand dialogue as in claim 1, wherein the finite state machine parses keywords and grammatical structures based on the rough question message, and transforms the state of the finite state machine based on the parsing result to determine the question type, and then uses a predefined template or grammatical rule to generate the precise question message that is more specific and clear than the rough question message. 如請求項1之具行為感知與隨選對話之主動聊天機器人之系統,其中所述有限狀態機包含米利型有限狀態機(Mealy Machine)及摩爾型有限狀態機(Moore Machine)狀態機。A system of an active chatbot with behavior perception and on-demand dialogue as claimed in claim 1, wherein the finite state machine includes a Mealy Machine and a Moore Machine state machine. 如請求項1之具行為感知與隨選對話之主動聊天機器人之系統,其中所述篩選參數係用以設定同意接收的所述回答訊息,以及拒絕接收的所述回答訊息,所述時間訊息用以作為判斷所述回答訊息與時間相關聯的依據。A system of an active chatbot with behavior perception and on-demand dialogue as in claim 1, wherein the screening parameter is used to set the reply message that is agreed to be received and the reply message that is refused to be received, and the time message is used as a basis for determining whether the reply message is related to time. 一種具行為感知與隨選對話之主動聊天機器人之方法,其步驟包括: 將一伺服端主機分別與一人工智慧平台及一客戶端主機相互連接; 該客戶端主機通過至少一傳感器持續感測生理狀態、臉部表情及肢體動作至少其中之一以生成一用戶行為狀態; 該客戶端主機持續將該用戶行為狀態及多個隨選對話設定傳送至該伺服端主機,其中,所述隨選對話設定包含一時間訊息及一篩選參數; 該伺服端主機根據接收到的所述用戶行為狀態及所述隨選對話設定生成具有自然語言結構的一粗略提問訊息,並且將該粗略提問訊息輸入多個有限狀態機進行解析及轉換所述有限狀態機的狀態以生成一精確提問訊息; 該伺服端主機通過該人工智慧平台的一應用程式介面(Application Programming Interface, API)傳送該精確提問訊息至該人工智慧平台; 該人工智慧平台將該精確提問訊息輸入至大型語言模型(Large Language Model, LLM)以產生一回答訊息,再通過該應用程式介面將該回答訊息傳送至該伺服端主機;以及 該伺服端主機自該人工智慧平台接收與所述精確提問訊息相應的所述回答訊息,並且將所述回答訊息儲存至一回答清單,以及自動從該回答清單中,篩選出符合該時間訊息及該篩選參數的所述回答訊息以作為一隨選對話訊息,並且將該隨選對話訊息傳送至該客戶端主機進行輸出。 A method for an active chat robot with behavior perception and on-demand dialogue, the steps of which include: Connecting a server host to an artificial intelligence platform and a client host respectively; The client host continuously senses at least one of physiological state, facial expression and body movement through at least one sensor to generate a user behavior state; The client host continuously transmits the user behavior state and multiple on-demand dialogue settings to the server host, wherein the on-demand dialogue setting includes a time message and a filtering parameter; The server host generates a rough question message with a natural language structure according to the received user behavior state and the on-demand dialogue setting, and inputs the rough question message into a plurality of finite state machines for parsing and converting the states of the finite state machines to generate a precise question message; The server host transmits the precise question message to the artificial intelligence platform through an application programming interface (API) of the artificial intelligence platform; The artificial intelligence platform inputs the precise question message into a large language model (LLM) to generate an answer message, and then transmits the answer message to the server host through the application programming interface; and The server host receives the answer message corresponding to the precise question message from the artificial intelligence platform, and stores the answer message in an answer list, and automatically selects the answer message that meets the time message and the filter parameter from the answer list as an on-demand dialogue message, and transmits the on-demand dialogue message to the client host for output. 如請求項6之具行為感知與隨選對話之主動聊天機器人之方法,其中該伺服端主機係在自然語言處理(Natural Language Processing, NLP)、生成式模型(Generative Model)及模板匹配中選擇至少其中之一以生成具有自然語言結構的所述粗略提問訊息。A method for an active chatbot with behavior perception and on-demand dialogue as in claim 6, wherein the server host selects at least one of natural language processing (NLP), generative model and template matching to generate the rough question message having a natural language structure. 如請求項6之具行為感知與隨選對話之主動聊天機器人之方法,其中所述有限狀態機根據該粗略提問訊息解析關鍵字及語法結構,並且根據解析結果轉換所述有限狀態機的狀態以確定提問類型,再搭配使用預先定義的模板或語法規則生成比該粗略提問訊息具體明確的所述精確提問訊息。A method for an active chatbot with behavior perception and on-demand dialogue as in claim 6, wherein the finite state machine parses keywords and grammatical structures based on the rough question message, and transforms the state of the finite state machine based on the parsing result to determine the question type, and then uses a predefined template or grammatical rule to generate the precise question message that is more specific and clear than the rough question message. 如請求項6之具行為感知與隨選對話之主動聊天機器人之方法,其中所述有限狀態機包含米利型有限狀態機(Mealy Machine)及摩爾型有限狀態機(Moore Machine)狀態機。A method for an active chatbot with behavior perception and on-demand dialogue as in claim 6, wherein the finite state machine comprises a Mealy Machine and a Moore Machine state machine. 如請求項6之具行為感知與隨選對話之主動聊天機器人之方法,其中所述篩選參數係用以設定同意接收的所述回答訊息,以及拒絕接收的所述回答訊息,所述時間訊息用以作為判斷所述回答訊息與時間相關聯的依據。A method for an active chatbot with behavior perception and on-demand dialogue as in claim 6, wherein the screening parameter is used to set the reply message that is agreed to be received and the reply message that is refused to be received, and the time message is used as a basis for determining whether the reply message is related to time.
TW112124258A 2023-06-29 2023-06-29 Active chatbot system with behavioral awareness and on-demand conversational and method thereof TWI851306B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112124258A TWI851306B (en) 2023-06-29 2023-06-29 Active chatbot system with behavioral awareness and on-demand conversational and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112124258A TWI851306B (en) 2023-06-29 2023-06-29 Active chatbot system with behavioral awareness and on-demand conversational and method thereof

Publications (2)

Publication Number Publication Date
TWI851306B true TWI851306B (en) 2024-08-01
TW202501308A TW202501308A (en) 2025-01-01

Family

ID=93283803

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112124258A TWI851306B (en) 2023-06-29 2023-06-29 Active chatbot system with behavioral awareness and on-demand conversational and method thereof

Country Status (1)

Country Link
TW (1) TWI851306B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170206064A1 (en) * 2013-03-15 2017-07-20 JIBO, Inc. Persistent companion device configuration and deployment platform
TW201826814A (en) * 2016-12-21 2018-07-16 大陸商北京嘀嘀無限科技發展有限公司 System and method for displaying vehicle information of an on-demand service
TW201830328A (en) * 2017-01-19 2018-08-16 大陸商北京嘀嘀無限科技發展有限公司 System and method for monitoring on-demand services
TW201901185A (en) * 2017-05-22 2019-01-01 大陸商北京嘀嘀無限科技發展有限公司 System and method for determining estimated arrival time

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170206064A1 (en) * 2013-03-15 2017-07-20 JIBO, Inc. Persistent companion device configuration and deployment platform
TW201826814A (en) * 2016-12-21 2018-07-16 大陸商北京嘀嘀無限科技發展有限公司 System and method for displaying vehicle information of an on-demand service
TW201830328A (en) * 2017-01-19 2018-08-16 大陸商北京嘀嘀無限科技發展有限公司 System and method for monitoring on-demand services
TW201901185A (en) * 2017-05-22 2019-01-01 大陸商北京嘀嘀無限科技發展有限公司 System and method for determining estimated arrival time

Also Published As

Publication number Publication date
TW202501308A (en) 2025-01-01

Similar Documents

Publication Publication Date Title
CN106462254A (en) Method, system and robot for generating interactive content of a robot
WO2018192567A1 (en) Method for determining emotional threshold and artificial intelligence device
CN106462255A (en) Method, system and robot for generating interactive content of a robot
US20240428042A1 (en) Active Chatbot System with Composite Finite State Machine and Method Thereof
TWI846528B (en) Customizing setting and updating download system with proactive chat response mode and method thereof
TWI851306B (en) Active chatbot system with behavioral awareness and on-demand conversational and method thereof
TWI884472B (en) Active chatbot system with composite finite state machines and method thereof
CN117043834A (en) Computer-implemented system for storing and processing negotiated automatically collected data and computer-assisted method for conducting training
US20240428043A1 (en) Active Chatbot System with Customized Setting and Updating Download and Method Thereof
US12493637B2 (en) Active chatbot system with behavioral awareness and on-demand conversation and method thereof
CN117421399A (en) Dialogue method, dialogue device, dialogue equipment and storage medium
TWI838316B (en) Generative chatbot system for virtual community and method thereof
JP2025071788A (en) system
JP2026023448A (en) system
JP2025048522A (en) system
JP2026019033A (en) system
JP2025051463A (en) system
JP2026018051A (en) system
CN117240731A (en) Generative chat robot system and method in virtual community response situation
US20220191159A1 (en) Device and method for generating an electronic card
JP2026022424A (en) system
JP2025072320A (en) system
JP2025051231A (en) system
JP2025051526A (en) system
JP2025047525A (en) system