Skip to content

Commit

Permalink
add ask_isbot
Browse files Browse the repository at this point in the history
  • Loading branch information
akelad committed Sep 5, 2018
1 parent c6d0527 commit aeae932
Show file tree
Hide file tree
Showing 12 changed files with 12,554 additions and 12,066 deletions.
73 changes: 51 additions & 22 deletions data/core/chitchat.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,49 @@
## chitchat
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat

## deny ask_whatspossible
* ask_whatspossible
- action_chitchat
* deny
- utter_nohelp

## more chitchat
* greet
- utter_greet
- utter_inform_privacypolicy
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal

## ask_whatspossible
* greet
- utter_greet
- utter_inform_privacypolicy
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_whatspossible
- action_chitchat

## ask_whatspossible more
* greet
- utter_greet
- utter_inform_privacypolicy
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_whatspossible
- action_chitchat
* ask_whatspossible
- action_chitchat


## just newsletter + confirm
* greet
Expand All @@ -23,7 +52,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter
Expand All @@ -50,7 +79,7 @@
* signup_newsletter
- utter_great
- utter_ask_email
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_email
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
Expand All @@ -71,7 +100,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter{"email": "maxmeier@firma.de"}
Expand All @@ -92,7 +121,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter{"email": "maxmeier@firma.de"}
Expand All @@ -111,7 +140,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter{"email": "maxmeier@firma.de"}
Expand All @@ -131,7 +160,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter{"email": "maxmeier@firma.de"}
Expand All @@ -149,7 +178,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter
Expand All @@ -175,7 +204,7 @@
* signup_newsletter
- utter_great
- utter_ask_email
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_email
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
Expand All @@ -195,7 +224,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter
Expand All @@ -220,7 +249,7 @@
* signup_newsletter
- utter_great
- utter_ask_email
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_email
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
Expand All @@ -239,7 +268,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* signup_newsletter
Expand All @@ -263,7 +292,7 @@
* signup_newsletter
- utter_great
- utter_ask_email
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_email
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
Expand All @@ -281,7 +310,7 @@
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_goal
* contact_sales
Expand Down Expand Up @@ -326,7 +355,7 @@
* contact_sales
- utter_moreinformation
- utter_ask_jobfunction
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_jobfunction
* enter_data{"jobfunction": "Product Manager"}
Expand Down Expand Up @@ -372,7 +401,7 @@
- action_store_job
- slot{"job_function": "Product Manager"}
- utter_ask_usecase
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_usecase
* enter_data
Expand Down Expand Up @@ -420,7 +449,7 @@
- slot{"use_case": "bots"}
- utter_thank_usecase
- utter_ask_budget
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_thank_usecase
- utter_ask_budget
Expand Down Expand Up @@ -470,7 +499,7 @@
- slot{"budget": "100k"}
- utter_sales_contact
- utter_ask_name
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_name
* enter_data{"name": "Max Meier"}
Expand Down Expand Up @@ -516,7 +545,7 @@
- action_store_name
- slot{"person_name": "Max Meier"}
- utter_ask_company
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_company
* enter_data{"company": "Allianz"}
Expand Down Expand Up @@ -562,7 +591,7 @@
- action_store_company
- slot{"company_name": "Allianz"}
- utter_ask_businessmail
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa
* ask_weather OR ask_builder OR ask_whatspossible OR ask_howdoing OR ask_whoisit OR ask_whatisrasa OR ask_isbot
- action_chitchat
- utter_ask_businessmail
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
Expand Down
13 changes: 13 additions & 0 deletions data/core/closetheloop.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,16 @@
* out_of_scope
- utter_out_of_scope
- utter_possibilities

# story number 6
* greet
- utter_greet
- utter_inform_privacypolicy
* mood_confirm
- utter_awesome
- utter_ask_goal
* ask_whoisit
- action_chitchat
- utter_ask_goal
* ask_whatspossible
- action_chitchat
5 changes: 0 additions & 5 deletions data/core/stories.md
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@
- utter_ask_goal
* deny
- utter_nohelp
- utter_possibilities

## deny, then accept privacy policy - neither options
* greet
Expand All @@ -948,8 +947,6 @@
- utter_ask_goal
* deny
- utter_nohelp
- utter_possibilities


## neither --> newsletter
* greet
Expand All @@ -960,7 +957,6 @@
- utter_ask_goal
* deny
- utter_nohelp
- utter_possibilities
* signup_newsletter
- utter_great
- utter_ask_email
Expand All @@ -982,7 +978,6 @@
- utter_ask_goal
* deny
- utter_nohelp
- utter_possibilities
* contact_sales
- utter_moreinformation
- utter_ask_jobfunction
Expand Down
3 changes: 2 additions & 1 deletion demo/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def run(self, dispatcher, tracker, domain):

# retrieve the correct chitchat utterance dependent on the intent
if intent in ['ask_builder', 'ask_howdoing', 'ask_weather',
'ask_whatspossible', 'ask_whoisit', 'ask_whatisrasa']:
'ask_whatspossible', 'ask_whoisit', 'ask_whatisrasa',
'ask_isbot']:
dispatcher.utter_template('utter_' + intent, tracker)
return []

Expand Down
5 changes: 4 additions & 1 deletion domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ intents:
- ask_howdoing
- ask_whatspossible
- ask_whatisrasa
- ask_isbot
- out_of_scope
- thank
- ask_whoisit
Expand Down Expand Up @@ -148,11 +149,13 @@ templates:
utter_canthelp:
- text: "I'm sorry I couldn't help you. If you have general questions about the Stack, please head to https://forum.rasa.com/, otherwise contact us at hi@rasa.com for anything else."
utter_nohelp:
- text: "I'm afraid I can't help you then! For now I only have two skills:"
- text: "For now that's all I can do, so feel free to try it out. If you have any suggestions for what I should learn, let me know!"
utter_thumbsup:
- text: "👍"
utter_cantsignup:
- text: "I can't sign you up if you don't provide your email 😉"
utter_ask_isbot:
- text: "Yep I'm a bot!"

actions:
- utter_greet
Expand Down
1 change: 1 addition & 0 deletions models/dialogue/domain.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"states": [
"intent_ask_builder",
"intent_ask_howdoing",
"intent_ask_isbot",
"intent_ask_weather",
"intent_ask_whatisrasa",
"intent_ask_whatspossible",
Expand Down
5 changes: 4 additions & 1 deletion models/dialogue/domain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ intents:
use_entities: true
- ask_whatisrasa:
use_entities: true
- ask_isbot:
use_entities: true
- out_of_scope:
use_entities: true
- thank:
Expand Down Expand Up @@ -251,7 +253,8 @@ templates:
utter_no_speak:
- text: I'm afraid we can't chat then 😢
utter_nohelp:
- text: "I'm afraid I can't help you then! For now I only have two skills:"
- text: For now that's all I can do, so feel free to try it out. If you have any
suggestions for what I should learn, let me know!
utter_noworries:
- text: No worries!
- text: You're welcome!
Expand Down

0 comments on commit aeae932

Please sign in to comment.