From 8c9f769b6d50db2be31717debcb585f2cdc587dc Mon Sep 17 00:00:00 2001
From: Dominic Kraemer
 <Dominic_Daniel.Kraemer@Student.Reutlingen-University.de>
Date: Thu, 13 Jun 2024 16:19:18 +0200
Subject: [PATCH] add basic conversation elements for the rasa chatbot

---
 .gitignore          |  1 +
 rasa/data/nlu.yml   | 58 +++++++++++++++++++++++++++++++++++++++++++++
 rasa/data/rules.yml | 20 ++++++++++++++++
 rasa/domain.yml     | 15 ++++++++++++
 4 files changed, 94 insertions(+)

diff --git a/.gitignore b/.gitignore
index d516084..03d1757 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
 .vscode
 
 /rasa-example
+notes.txt
 
 .rasa
 */models
diff --git a/rasa/data/nlu.yml b/rasa/data/nlu.yml
index f5ff2a6..ede5754 100644
--- a/rasa/data/nlu.yml
+++ b/rasa/data/nlu.yml
@@ -1,3 +1,61 @@
 version: "3.1"
 
 nlu:
+- intent: greet
+  examples: |
+    - hello
+    - hi
+    - hey
+    - howdy
+    - greetings
+    - yo
+    - good morning
+    - good evening
+    - good afternoon
+    - good day
+    - goodmorning
+    - goodevening
+    - goodafternoon
+    - hey there
+    - howdy partner
+    - what's up
+    - nice seeing you
+    - cheers mate
+  
+- intent: goodbye
+  examples: |
+    - bye
+    - later
+    - peace
+    - farewell
+    - bye bye
+    - good bye
+    - goodbye
+    - good night
+    - goodnight
+    - see you
+    - see you soon
+    - see you later
+    - so long
+    - until next time
+    - have a nice day
+
+- intent: hello_there
+  examples: |
+    - hello there
+
+- intent: what_are_you
+  examples: |
+    - what are you?
+    - what exactly are you?
+    - are you a bot?
+    - are you a robot?
+    - are you human?
+    - are you a person
+    - are you a robot or human?
+    - are you an AI?
+    - who are you?
+    - explain what you are
+    - tell me about yourself
+    - what is your purpose
+
diff --git a/rasa/data/rules.yml b/rasa/data/rules.yml
index 825bea2..d4342de 100644
--- a/rasa/data/rules.yml
+++ b/rasa/data/rules.yml
@@ -1,3 +1,23 @@
 version: "3.1"
 
 rules:
+
+- rule: Greet the user
+  steps:
+  - intent: greet
+  - action: utter_greet
+
+- rule: Say goodbye to the user
+  steps:
+  - intent: goodbye
+  - action: utter_goodbye
+
+- rule: Easter Egg
+  steps:
+  - intent: hello_there
+  - action: utter_easter_egg
+
+- rule: Explain what you are
+  steps:
+  - intent: what_are_you
+  - action: utter_what_i_am
\ No newline at end of file
diff --git a/rasa/domain.yml b/rasa/domain.yml
index eec4120..a3b878c 100644
--- a/rasa/domain.yml
+++ b/rasa/domain.yml
@@ -1,8 +1,23 @@
 version: "3.1"
 
 intents:
+  - greet
+  - goodbye
+  - hello_there
+  - what_are_you
 
 responses:
+  utter_greet:
+  - text: "Hello and welcome aboard! I am Spacemate, your dedicated guide to share insights about the wonders of space stations. How can I assist you today?"
+
+  utter_goodbye:
+  - text: "Farewell! It was a pleasure assisting you. Safe travels through the cosmos!"
+
+  utter_what_i_am:
+  - text: "I am Spacemate, an AI-powered chatbot, designed to be your guide and assistant in exploring all things space stations. I provide information, fun facts, and much more!"
+
+  utter_easter_egg:
+  - text: "General Kenobi! You are a bold one."
 
 session_config:
   session_expiration_time: 60
-- 
GitLab