Skip to content

Stage 3 - Implementing a Emotional State Machine

Compare
Choose a tag to compare
@spydaz spydaz released this 09 Jun 16:03
· 29 commits to master since this release

STAGE 3: EMOTIONIAL STATE MACHINE

Here an emotional State machine has been added;
An Inteface is used to create and Emotion With Detectors(indicators) which is used by the handler to detect which emotion has been triggered;
The Intesity of the emotion has also been considered ; As making the chatbot happer will also make it happier.. as it redetects neutrality the emotional state intensity is reduced; until finally returning to neutral; Unles triggered by another emotional trigger as defined in the states;

IF a response is not triggered by a previous Function An Attempt to find an emotional response is enacted; IF an emotion is detected then a Generic response containing the emotion is returned ; if a response has been previoulsy triggered the logical Check IF/Then Will adjust the state of the emotional state machine acordingly without response; it may be that an emotion is being experienced by another function is responding before the emotional response; as in this example responses are not chained;